summaryrefslogtreecommitdiffstats
path: root/sys/net/route.h
diff options
context:
space:
mode:
authorqingli <qingli@FreeBSD.org>2009-01-12 11:24:32 +0000
committerqingli <qingli@FreeBSD.org>2009-01-12 11:24:32 +0000
commit751dff36104851edee18dc55bd333b085a912d68 (patch)
treed82dbdbb0112cce72e73dff9f89fa6d0429199e8 /sys/net/route.h
parentc9e59ec6fa825d5d93c9929e20f76b414e42e005 (diff)
downloadFreeBSD-src-751dff36104851edee18dc55bd333b085a912d68.zip
FreeBSD-src-751dff36104851edee18dc55bd333b085a912d68.tar.gz
Revive the RTF_LLINFO flag in route.h. The kernel code is guarded
by the new kernel option COMPAT_ROUTE_FLAGS for binary backward compatibility. The RTF_LLDATA flag maps to the same value as RTF_LLINFO. RTF_LLDATA is used by the arp and ndp utilities. The RTF_LLDATA flag is always returned to the userland regardless whether the COMPAT_ROUTE_FLAGS is defined.
Diffstat (limited to 'sys/net/route.h')
-rw-r--r--sys/net/route.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/route.h b/sys/net/route.h
index ed43496..44b04ac 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -173,7 +173,8 @@ struct ortentry {
/* 0x80 unused, was RTF_DELCLONE */
/* 0x100 unused, was RTF_CLONING */
#define RTF_XRESOLVE 0x200 /* external daemon resolves name */
-/* 0x400 unused, was RTF_LLINFO */
+#define RTF_LLINFO 0x400 /* DEPRECATED - exists ONLY for backward
+ compatibility */
#define RTF_LLDATA 0x400 /* used by apps to add/del L2 entries */
#define RTF_STATIC 0x800 /* manually added */
#define RTF_BLACKHOLE 0x1000 /* just discard pkts (during updates) */
OpenPOWER on IntegriCloud