summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2013-08-26 18:16:05 +0000
committerjhb <jhb@FreeBSD.org>2013-08-26 18:16:05 +0000
commita437be72574480c1aedb04a776cc369e323fba4a (patch)
tree68b45bffbfe1373db4468cd797da2aac8d561353 /sys/netinet
parent66bd119888d232b2e3772b0d878b29513cf4c63e (diff)
downloadFreeBSD-src-a437be72574480c1aedb04a776cc369e323fba4a.zip
FreeBSD-src-a437be72574480c1aedb04a776cc369e323fba4a.tar.gz
Remove most of the remaining sysctl name list macros. They were only
ever intended for use in sysctl(8) and it has not used them for many years. Reviewed by: bde Tested by: exp-run by bdrewery
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/icmp_var.h7
-rw-r--r--sys/netinet/igmp_var.h4
-rw-r--r--sys/netinet/in.h18
-rw-r--r--sys/netinet/pim_var.h5
-rw-r--r--sys/netinet/tcp_var.h18
-rw-r--r--sys/netinet/udp_var.h9
6 files changed, 0 insertions, 61 deletions
diff --git a/sys/netinet/icmp_var.h b/sys/netinet/icmp_var.h
index 809879d..ae869e6 100644
--- a/sys/netinet/icmp_var.h
+++ b/sys/netinet/icmp_var.h
@@ -85,13 +85,6 @@ void kmod_icmpstat_inc(int statnum);
#define ICMPCTL_ICMPLIM 3
#define ICMPCTL_MAXID 4
-#define ICMPCTL_NAMES { \
- { 0, 0 }, \
- { "maskrepl", CTLTYPE_INT }, \
- { "stats", CTLTYPE_STRUCT }, \
- { "icmplim", CTLTYPE_INT }, \
-}
-
#ifdef _KERNEL
SYSCTL_DECL(_net_inet_icmp);
diff --git a/sys/netinet/igmp_var.h b/sys/netinet/igmp_var.h
index ca17158..cd10d7f 100644
--- a/sys/netinet/igmp_var.h
+++ b/sys/netinet/igmp_var.h
@@ -218,8 +218,4 @@ SYSCTL_DECL(_net_inet_igmp);
#define IGMPCTL_STATS 1 /* statistics (read-only) */
#define IGMPCTL_MAXID 2
-#define IGMPCTL_NAMES { \
- { 0, 0 }, \
- { "stats", CTLTYPE_STRUCT } \
-}
#endif
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index 9f3b294..db9a590 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -699,24 +699,6 @@ int getsourcefilter(int, uint32_t, struct sockaddr *, socklen_t,
#define IPCTL_GIF_TTL 16 /* default TTL for gif encap packet */
#define IPCTL_MAXID 17
-#define IPCTL_NAMES { \
- { 0, 0 }, \
- { "forwarding", CTLTYPE_INT }, \
- { "redirect", CTLTYPE_INT }, \
- { "ttl", CTLTYPE_INT }, \
- { "mtu", CTLTYPE_INT }, \
- { "rtexpire", CTLTYPE_INT }, \
- { "rtminexpire", CTLTYPE_INT }, \
- { "rtmaxcache", CTLTYPE_INT }, \
- { "sourceroute", CTLTYPE_INT }, \
- { "directed-broadcast", CTLTYPE_INT }, \
- { "intr-queue-maxlen", CTLTYPE_INT }, \
- { "intr-queue-drops", CTLTYPE_INT }, \
- { "stats", CTLTYPE_STRUCT }, \
- { "accept_sourceroute", CTLTYPE_INT }, \
- { "fastforwarding", CTLTYPE_INT }, \
-}
-
#endif /* __BSD_VISIBLE */
#ifdef _KERNEL
diff --git a/sys/netinet/pim_var.h b/sys/netinet/pim_var.h
index 1fdfb10..d082d9a 100644
--- a/sys/netinet/pim_var.h
+++ b/sys/netinet/pim_var.h
@@ -71,11 +71,6 @@ struct pimstat {
#define PIMCTL_STATS 1 /* statistics (read-only) */
#define PIMCTL_MAXID 2
-#define PIMCTL_NAMES { \
- { 0, 0 }, \
- { "stats", CTLTYPE_STRUCT }, \
-}
-
#ifdef _KERNEL
void pim_input(struct mbuf *, int);
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index b22713f..aaaa4a4 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -593,24 +593,6 @@ struct xtcpcb {
#define TCPCTL_MAXID 16
#define TCPCTL_FINWAIT2_TIMEOUT 17
-#define TCPCTL_NAMES { \
- { 0, 0 }, \
- { "rfc1323", CTLTYPE_INT }, \
- { "mssdflt", CTLTYPE_INT }, \
- { "stats", CTLTYPE_STRUCT }, \
- { "rttdflt", CTLTYPE_INT }, \
- { "keepidle", CTLTYPE_INT }, \
- { "keepintvl", CTLTYPE_INT }, \
- { "sendspace", CTLTYPE_INT }, \
- { "recvspace", CTLTYPE_INT }, \
- { "keepinit", CTLTYPE_INT }, \
- { "pcblist", CTLTYPE_STRUCT }, \
- { "delacktime", CTLTYPE_INT }, \
- { "v6mssdflt", CTLTYPE_INT }, \
- { "maxid", CTLTYPE_INT }, \
-}
-
-
#ifdef _KERNEL
#ifdef SYSCTL_DECL
SYSCTL_DECL(_net_inet_tcp);
diff --git a/sys/netinet/udp_var.h b/sys/netinet/udp_var.h
index 461c986..91a98f6 100644
--- a/sys/netinet/udp_var.h
+++ b/sys/netinet/udp_var.h
@@ -124,15 +124,6 @@ void kmod_udpstat_inc(int statnum);
#define UDPCTL_PCBLIST 5 /* list of PCBs for UDP sockets */
#define UDPCTL_MAXID 6
-#define UDPCTL_NAMES { \
- { 0, 0 }, \
- { "checksum", CTLTYPE_INT }, \
- { "stats", CTLTYPE_STRUCT }, \
- { "maxdgram", CTLTYPE_INT }, \
- { "recvspace", CTLTYPE_INT }, \
- { "pcblist", CTLTYPE_STRUCT }, \
-}
-
#ifdef _KERNEL
SYSCTL_DECL(_net_inet_udp);
OpenPOWER on IntegriCloud