netinet*: remove unneeded headers from files that just declare domains
This commit is contained in:
parent
eda633455a
commit
92e190f11f
@ -51,6 +51,8 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/queue.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
#include <netinet/in.h>
|
||||
|
||||
/*
|
||||
* While this file provides the domain and protocol switch tables for IPv4, it
|
||||
* also provides the sysctl node declarations for net.inet.* often shared with
|
||||
@ -58,33 +60,6 @@ __FBSDID("$FreeBSD$");
|
||||
* support compile out everything but these sysctl nodes.
|
||||
*/
|
||||
#ifdef INET
|
||||
#include <net/if.h>
|
||||
#include <net/if_var.h>
|
||||
#include <net/route.h>
|
||||
#include <net/vnet.h>
|
||||
#endif /* INET */
|
||||
|
||||
#if defined(INET) || defined(INET6)
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
#ifdef INET
|
||||
#include <netinet/in_systm.h>
|
||||
#include <netinet/in_var.h>
|
||||
#include <netinet/ip.h>
|
||||
#include <netinet/ip_var.h>
|
||||
#include <netinet/ip_icmp.h>
|
||||
#include <netinet/igmp_var.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <netinet/tcp_timer.h>
|
||||
#include <netinet/tcp_var.h>
|
||||
#include <netinet/udp.h>
|
||||
#include <netinet/udp_var.h>
|
||||
#include <netinet/ip_encap.h>
|
||||
|
||||
/*
|
||||
* TCP/IP protocol family: IP, ICMP, UDP, TCP.
|
||||
*/
|
||||
|
||||
#ifdef SCTP
|
||||
#include <netinet/in_pcb.h>
|
||||
@ -97,6 +72,8 @@ __FBSDID("$FreeBSD$");
|
||||
extern struct protosw rip_protosw;
|
||||
/* netinet/udp_usrreq.c */
|
||||
extern struct protosw udp_protosw, udplite_protosw;
|
||||
/* netinet/tcp_usrreq.c */
|
||||
extern struct protosw tcp_protosw;
|
||||
|
||||
FEATURE(inet, "Internet Protocol version 4");
|
||||
|
||||
|
@ -85,31 +85,9 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/systm.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
#include <net/if.h>
|
||||
#include <net/if_var.h>
|
||||
#include <net/radix.h>
|
||||
#include <net/route.h>
|
||||
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/in_systm.h>
|
||||
#include <netinet/in_var.h>
|
||||
#include <netinet/ip_encap.h>
|
||||
#include <netinet/ip.h>
|
||||
#include <netinet/ip_var.h>
|
||||
#include <netinet/ip6.h>
|
||||
#include <netinet6/ip6_var.h>
|
||||
#include <netinet/icmp6.h>
|
||||
|
||||
#include <netinet/tcp.h>
|
||||
#include <netinet/tcp_timer.h>
|
||||
#include <netinet/tcp_var.h>
|
||||
#include <netinet/udp.h>
|
||||
#include <netinet/udp_var.h>
|
||||
#include <netinet6/tcp6_var.h>
|
||||
#include <netinet6/raw_ip6.h>
|
||||
#include <netinet6/udp6_var.h>
|
||||
#include <netinet6/pim6_var.h>
|
||||
#include <netinet6/nd6.h>
|
||||
|
||||
#ifdef SCTP
|
||||
#include <netinet/in_pcb.h>
|
||||
@ -123,6 +101,8 @@ __FBSDID("$FreeBSD$");
|
||||
extern struct protosw rip6_protosw;
|
||||
/* netinet6/udp6_usrreq.c */
|
||||
extern struct protosw udp6_protosw, udplite6_protosw;
|
||||
/* netinet/tcp_usrreq.c */
|
||||
extern struct protosw tcp6_protosw;
|
||||
|
||||
/*
|
||||
* TCP/IP protocol family: IP6, ICMP6, UDP, TCP.
|
||||
|
Loading…
Reference in New Issue
Block a user