Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions check_all_options.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#include "common.h"
#include "check_all_options.h"

Expand Down Expand Up @@ -132,3 +134,4 @@ void check_options_psp_common(struct options *opts, struct callbacks *cb)
"PSP server requires server IP (-H) for device lookup.");
}
}
/* clang-format on */
3 changes: 3 additions & 0 deletions check_all_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#ifndef THIRD_PARTY_NEPER_CHECK_ALL_OPTIONS_H_
#define THIRD_PARTY_NEPER_CHECK_ALL_OPTIONS_H_

Expand All @@ -34,3 +36,4 @@ void check_options_psp_common(struct options *opts, struct callbacks *cb);

#endif // THIRD_PARTY_NEPER_CHECK_ALL_OPTIONS_H_

/* clang-format on */
3 changes: 3 additions & 0 deletions coef.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#include "coef.h"
#include "common.h"

Expand Down Expand Up @@ -102,3 +104,4 @@ struct neper_coef *neper_coef(void)

return coef;
}
/* clang-format on */
3 changes: 3 additions & 0 deletions coef.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#ifndef THIRD_PARTY_NEPER_COEF_H
#define THIRD_PARTY_NEPER_COEF_H

Expand Down Expand Up @@ -44,3 +46,4 @@ struct neper_coef {
struct neper_coef *neper_coef(void);

#endif
/* clang-format on */
3 changes: 3 additions & 0 deletions common.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#include <fcntl.h>
#include <netinet/tcp.h>
#include <stddef.h>
Expand Down Expand Up @@ -346,3 +348,4 @@ int create_suicide_timeout(int sec_to_suicide)
}
return 0;
}
/* clang-format on */
3 changes: 3 additions & 0 deletions common.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#ifndef THIRD_PARTY_NEPER_COMMON_H
#define THIRD_PARTY_NEPER_COMMON_H

Expand Down Expand Up @@ -169,3 +171,4 @@ const struct rate_conversion *auto_unit(const double throughput,
const struct rate_conversion *opt,
struct callbacks *);
#endif
/* clang-format on */
3 changes: 3 additions & 0 deletions control_plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#include "control_plane.h"
#include <netinet/tcp.h>
#include <inttypes.h>
Expand Down Expand Up @@ -514,3 +516,4 @@ void control_plane_destroy(struct control_plane *cp)
{
free(cp);
}
/* clang-format on */
3 changes: 3 additions & 0 deletions control_plane.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#ifndef THIRD_PARTY_NEPER_CONTROL_PLANE_H
#define THIRD_PARTY_NEPER_CONTROL_PLANE_H

Expand All @@ -36,3 +38,4 @@ int control_plane_incidents(struct control_plane *cp);
void control_plane_destroy(struct control_plane *cp);

#endif
/* clang-format on */
3 changes: 3 additions & 0 deletions countdown_cond.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#ifndef _COUNTDOWN_COND_H
#define _COUNTDOWN_COND_H

Expand Down Expand Up @@ -92,3 +94,4 @@ static inline void countdown_cond_wait(struct countdown_cond *cc)
}

#endif
/* clang-format on */
3 changes: 3 additions & 0 deletions cpuinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -87,3 +89,4 @@ int get_cpuinfo(struct cpuinfo *cpus, int max_cpus, struct callbacks *cb)
fclose(f);
return n;
}
/* clang-format on */
3 changes: 3 additions & 0 deletions cpuinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/* clang-format off */
#include "lib.h"

#ifndef THIRD_PARTY_NEPER_CPUINFO_H
Expand All @@ -35,3 +37,4 @@ struct cpuinfo {
int get_cpuinfo(struct cpuinfo *cpus, int max_cpus, struct callbacks *cb);

#endif
/* clang-format on */
3 changes: 3 additions & 0 deletions define_all_flags.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#include "common.h"
#include "flags.h"
#include "lib.h"
Expand Down Expand Up @@ -183,3 +185,4 @@ struct flags_parser *add_flags_udp_stream(struct flags_parser *fp)
return (fp);
}

/* clang-format on */
3 changes: 3 additions & 0 deletions define_all_flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#ifndef THIRD_PARTY_NEPER_DEFINE_ALL_FLAGS_H
#define THIRD_PARTY_NEPER_DEFINE_ALL_FLAGS_H

Expand All @@ -32,3 +34,4 @@ struct flags_parser *add_flags_udp_rr(struct flags_parser *fp);
struct flags_parser *add_flags_udp_stream(struct flags_parser *fp);

#endif
/* clang-format on */
3 changes: 3 additions & 0 deletions flags.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#include "flags.h"

#include <ctype.h>
Expand Down Expand Up @@ -369,3 +371,4 @@ void flags_parser_dump(struct flags_parser *fp)
print_flag(flag, fp->cb);
}
}
/* clang-format on */
3 changes: 3 additions & 0 deletions flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#ifndef THIRD_PARTY_NEPER_FLAGS_H
#define THIRD_PARTY_NEPER_FLAGS_H

Expand Down Expand Up @@ -85,3 +87,4 @@ void flags_parser_destroy(struct flags_parser *fp);
} while (0)

#endif
/* clang-format on */
3 changes: 3 additions & 0 deletions flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#include <linux/tcp.h>
#include <linux/version.h>
#include <stdint.h>
Expand Down Expand Up @@ -394,3 +396,4 @@ ssize_t flow_recv_zerocopy(struct flow *f, void *copybuf, size_t copybuf_len) {
#endif
return n_read;
}
/* clang-format on */
3 changes: 3 additions & 0 deletions flow.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#ifndef THIRD_PARTY_NEPER_FLOW_H
#define THIRD_PARTY_NEPER_FLOW_H

Expand Down Expand Up @@ -77,3 +79,4 @@ void flow_init_rx_zerocopy(struct flow *f, int buffer_size,
ssize_t flow_recv_zerocopy(struct flow *f, void *copybuf, size_t copybuf_len);

#endif
/* clang-format on */
3 changes: 3 additions & 0 deletions hexdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#include "hexdump.h"
#include <ctype.h>
#include <string.h>
Expand Down Expand Up @@ -51,3 +53,4 @@ char *hexdump(const char *in, size_t in_len, char *out, size_t out_len)
out[sizeof(row_buf) * num_rows] = '\0';
return out;
}
/* clang-format on */
3 changes: 3 additions & 0 deletions hexdump.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#ifndef THIRD_PARTY_NEPER_HEXDUMP_H
#define THIRD_PARTY_NEPER_HEXDUMP_H

Expand All @@ -22,3 +24,4 @@
char *hexdump(const char *in, size_t in_len, char *out, size_t out_len);

#endif
/* clang-format on */
3 changes: 3 additions & 0 deletions histo.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#include "histo.h"
#include "common.h"
#include "logging.h"
Expand Down Expand Up @@ -319,3 +321,4 @@ struct neper_histo *neper_histo_new(const struct thread *t, uint8_t k_bits)

return ret;
}
/* clang-format on */
3 changes: 3 additions & 0 deletions histo.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#ifndef THIRD_PARTY_NEPER_HISTO_H
#define THIRD_PARTY_NEPER_HISTO_H

Expand Down Expand Up @@ -74,3 +76,4 @@ void neper_histo_print(struct neper_histo *);
void neper_histo_delete(struct neper_histo *);

#endif
/* clang-format on */
3 changes: 3 additions & 0 deletions lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#ifndef THIRD_PARTY_NEPER_LIB_H
#define THIRD_PARTY_NEPER_LIB_H

Expand Down Expand Up @@ -156,3 +158,4 @@ int psp_crr(struct options *, struct callbacks *);
#endif

#endif
/* clang-format on */
3 changes: 3 additions & 0 deletions logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#include "logging.h"
#include <errno.h>
#include <libgen.h>
Expand Down Expand Up @@ -246,3 +248,4 @@ void logging_exit(struct callbacks *cb)
{
close_log();
}
/* clang-format on */
3 changes: 3 additions & 0 deletions logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#ifndef THIRD_PARTY_NEPER_LOGGING_H
#define THIRD_PARTY_NEPER_LOGGING_H

Expand Down Expand Up @@ -41,3 +43,4 @@ void logging_exit(struct callbacks *);
LOG_FATAL(cb, fmt, ##args)

#endif
/* clang-format on */
3 changes: 3 additions & 0 deletions loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#include <time.h>

#include "common.h"
Expand Down Expand Up @@ -100,3 +102,4 @@ void *loop(struct thread *t)
/* This is technically a thread callback so it must return a (void *) */
return NULL;
}
/* clang-format on */
3 changes: 3 additions & 0 deletions loop.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#ifndef THIRD_PARTY_NEPER_LOOP_H
#define THIRD_PARTY_NEPER_LOOP_H

Expand All @@ -22,3 +24,4 @@ struct thread;
void *loop(struct thread *);

#endif
/* clang-format on */
3 changes: 3 additions & 0 deletions or_die.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#include "common.h"
#include "or_die.h"

Expand Down Expand Up @@ -104,3 +106,4 @@ int socket_or_die(int domain, int type, int protocol, struct callbacks *cb)
PLOG_FATAL(cb, "socket");
return s;
}
/* clang-format on */
3 changes: 3 additions & 0 deletions or_die.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

/* clang-format off */

#ifndef THIRD_PARTY_NEPER_OR_DIE_H
#define THIRD_PARTY_NEPER_OR_DIE_H

Expand All @@ -36,3 +38,4 @@ void *realloc_or_die(void *ptr, size_t, struct callbacks *);
int socket_or_die(int domain, int type, int protocol, struct callbacks *);

#endif
/* clang-format on */
Loading
Loading