diff options
author | qingli <qingli@FreeBSD.org> | 2009-01-16 09:01:45 +0000 |
---|---|---|
committer | qingli <qingli@FreeBSD.org> | 2009-01-16 09:01:45 +0000 |
commit | 80a44f5821e2850a2a5db5360f7e46d155516c59 (patch) | |
tree | 77b3b135cf1e16d0cfecc4c0cb420d08f8a1c833 /sys/net/rtsock.c | |
parent | d7ec48b242ec611a192e25a4e436c56a9a8c45bd (diff) | |
download | FreeBSD-src-80a44f5821e2850a2a5db5360f7e46d155516c59.zip FreeBSD-src-80a44f5821e2850a2a5db5360f7e46d155516c59.tar.gz |
The RTF_LLINFO was revived unconditionally, but within the kernel the
check on the sysctl argument value being RTF_LLINFO is conditioned on
the COMPAT_ROUTE_FLAGS kernel option. This mismatch caused the L2
table retrieval failure, and the arp/ndp -an command displays empty L2
tables.
Reviewed by: pjd
Diffstat (limited to 'sys/net/rtsock.c')
-rw-r--r-- | sys/net/rtsock.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 8c5499c..033f226 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1448,11 +1448,7 @@ sysctl_rtsock(SYSCTL_HANDLER_ARGS) * specify an AF */ if (w.w_op == NET_RT_FLAGS && -#if defined(COMPAT_ROUTE_FLAGS) - (w.w_arg & RTF_LLINFO)) { -#else - w.w_arg == 0) { -#endif + (w.w_arg == 0 || w.w_arg & RTF_LLINFO)) { if (af != 0) error = lltable_sysctl_dumparp(af, w.w_req); else |