summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-10-05 09:10:42 +0200
committerRoy Marples <roy@marples.name>2020-10-05 09:10:42 +0200
commit355c74b7e96730873d51145b63fed2b8d39e3db2 (patch)
tree5fc9db846c97b8185b9edf6e708f563965e4a4bd /zebra
parentBSD: Detect route(4) overflows (diff)
downloadfrr-355c74b7e96730873d51145b63fed2b8d39e3db2.tar.xz
frr-355c74b7e96730873d51145b63fed2b8d39e3db2.zip
BSD: Add whitespace between declaration and code
Signed-off-by: Roy Marples <roy@marples.name>
Diffstat (limited to 'zebra')
-rw-r--r--zebra/kernel_socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c
index 16a9669e8..8fd0c96bd 100644
--- a/zebra/kernel_socket.c
+++ b/zebra/kernel_socket.c
@@ -1429,6 +1429,7 @@ static void routing_socket(struct zebra_ns *zns)
#ifdef SO_RERROR
/* Allow reporting of route(4) buffer overflow errors */
int n = 1;
+
if (setsockopt(routing_sock, SOL_SOCKET, SO_RERROR, &n, sizeof(n)) < 0)
flog_err_sys(EC_LIB_SOCKET,
"Can't set SO_RERROR on routing socket");