diff options
| author | Daniel Borkmann <daniel@iogearbox.net> | 2015-12-14 16:57:32 +0100 |
|---|---|---|
| committer | Stephen Hemminger <shemming@brocade.com> | 2015-12-17 17:22:25 -0800 |
| commit | fd7f9c7fd11fa926bda2edc8bc492e7515753a32 (patch) | |
| tree | cd89d1ab7f02f35e01aa461062a086cfc104c6d0 | |
| parent | 741c20b024f5f51bf194435fc4d79f34ae5c5481 (diff) | |
| download | android_external_iproute2-fd7f9c7fd11fa926bda2edc8bc492e7515753a32.tar.gz android_external_iproute2-fd7f9c7fd11fa926bda2edc8bc492e7515753a32.tar.bz2 android_external_iproute2-fd7f9c7fd11fa926bda2edc8bc492e7515753a32.zip | |
bpf: minor fix in api and bpf_dump_error() usage
Fix a whitespace in bpf_dump_error() usage, and also a missing closing
bracket in ntohl() macro for eBPF programs.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
| -rw-r--r-- | include/bpf_api.h | 2 | ||||
| -rw-r--r-- | tc/tc_bpf.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/bpf_api.h b/include/bpf_api.h index 8503b9a..0666a31 100644 --- a/include/bpf_api.h +++ b/include/bpf_api.h @@ -53,7 +53,7 @@ #endif #ifndef ntohl -# define ntohl(X) __constant_ntohl((X) +# define ntohl(X) __constant_ntohl((X)) #endif /** Section helper macros. */ diff --git a/tc/tc_bpf.c b/tc/tc_bpf.c index beb74be..f9b2b00 100644 --- a/tc/tc_bpf.c +++ b/tc/tc_bpf.c @@ -1042,7 +1042,7 @@ static int bpf_prog_attach(const char *section, "license:\'%s\') %s%s (%d)!\n\n", section, prog->type, prog->size / sizeof(struct bpf_insn), - prog->license, fd < 0 ? "rejected :" : + prog->license, fd < 0 ? "rejected: " : "loaded", fd < 0 ? strerror(errno) : "", fd < 0 ? errno : fd); } |
