NetBSD/sbin/route/keywords.h
gdt c9bfbf1142 Move RTF_ANNOUNCE flag so that it no longer conflicts with RTF_PROTO2.
RTF_ANNOUNCE was defined as RTF_PROTO2.  The flag is used to indicated
that host should act as a proxy for a link level arp or ndp request.
(If RTF_PROTO2 is used as an experimental flag (as advertised),
various problems can occur.)

This commit provides a first-class definition with its own bit for
RTF_ANNOUNCE, removes the old aliasing definitions, and adds support
for the new RTF_ANNOUNCE flag to netstat(8) and route(8).,

Also, remove unused RTF_ flags that collide with RTF_PROTO1:
  netinet/icmp6.h defined RTF_PROBEMTU as RTF_PROTO1
  netinet/if_inarp.h defined RTF_USETRAILERS as RTF_PROTO1
  (Neither of these flags are used anywhere.  Both have been removed
  to reduce chances of collision with RTF_PROTO1.)

Figuring this out and the diff are the work of Beverly Schwartz of
BBN.

(Passed release build, boot in VM, with no apparently related atf
failures.)

Approved for Public Release, Distribution Unlimited
This material is based upon work supported by the Defense Advanced
Research Projects Agency and Space and Naval Warfare Systems Center,
Pacific, under Contract No. N66001-09-C-2073.
2011-11-11 15:09:32 +00:00

67 lines
1.3 KiB
C

/* $NetBSD: keywords.h,v 1.12 2011/11/11 15:09:32 gdt Exp $ */
/* WARNING! This file was generated by keywords.sh */
extern struct keytab {
const char *kt_cp;
int kt_i;
} keywords[];
#define K_ADD 1
#define K_ATALK 2
#define K_BLACKHOLE 3
#define K_CHANGE 4
#define K_CLONED 5
#define K_CLONING 6
#define K_DELETE 7
#define K_DST 8
#define K_EXPIRE 9
#define K_FLUSH 10
#define K_GATEWAY 11
#define K_GENMASK 12
#define K_GET 13
#define K_HOST 14
#define K_HOPCOUNT 15
#define K_IFACE 16
#define K_INTERFACE 17
#define K_IFA 18
#define K_IFP 19
#define K_INET 20
#define K_INET6 21
#define K_ISO 22
#define K_LINK 23
#define K_LLINFO 24
#define K_LOCK 25
#define K_LOCKREST 26
#define K_MASK 27
#define K_MONITOR 28
#define K_MTU 29
#define K_NET 30
#define K_NETMASK 31
#define K_NOSTATIC 32
#define K_OSI 33
#define K_PREFIXLEN 34
#define K_PROTO1 35
#define K_PROTO2 36
#define K_RECVPIPE 37
#define K_REJECT 38
#define K_RTT 39
#define K_RTTVAR 40
#define K_SA 41
#define K_SENDPIPE 42
#define K_SHOW 43
#define K_SSTHRESH 44
#define K_STATIC 45
#define K_X25 46
#define K_XNS 47
#define K_XRESOLVE 48
#define K_FLUSHALL 49
#define K_NOCLONED 50
#define K_NOCLONING 51
#define K_NOBLACKHOLE 52
#define K_NOREJECT 53
#define K_MPLS 54
#define K_TAG 55
#define K_PROXY 56