lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <6598a3bfadced14239ea333155eb7fb9aaceccda.1450108152.git.daniel@iogearbox.net>
Date:	Mon, 14 Dec 2015 16:57:32 +0100
From:	Daniel Borkmann <daniel@...earbox.net>
To:	stephen@...workplumber.org
Cc:	ast@...nel.org, netdev@...r.kernel.org,
	Daniel Borkmann <daniel@...earbox.net>
Subject: [PATCH iproute2 -next] 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@...earbox.net>
---
 include/bpf_api.h | 2 +-
 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);
 	}
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ