xref: /xnu-11417.140.69/bsd/netinet/netinet.modulemap (revision 43a90889846e00bfb5cf1d255cdc0a701a1e05a4)
1*43a90889SApple OSS Distributionsmodule Darwin.POSIX.netinet [system] {
2*43a90889SApple OSS Distributions  module in {
3*43a90889SApple OSS Distributions    header "netinet/in.h"
4*43a90889SApple OSS Distributions    export *
5*43a90889SApple OSS Distributions
6*43a90889SApple OSS Distributions    #ifdef XNU_KERNEL_PRIVATE
7*43a90889SApple OSS Distributions    // netinet6/in6.h is conceptually a part of netinet/in.h, and so
8*43a90889SApple OSS Distributions    // belongs to this module, but needs to be excluded or else clang
9*43a90889SApple OSS Distributions    // will attempt to compile in6.h independently. And that fails
10*43a90889SApple OSS Distributions    // because in6.h can only be included from in.h, it cannot be used
11*43a90889SApple OSS Distributions    // in any other context.
12*43a90889SApple OSS Distributions    #endif
13*43a90889SApple OSS Distributions    exclude header "netinet6/in6.h"
14*43a90889SApple OSS Distributions  }
15*43a90889SApple OSS Distributions
16*43a90889SApple OSS Distributions  module tcp {
17*43a90889SApple OSS Distributions    header "netinet/tcp.h"
18*43a90889SApple OSS Distributions    export *
19*43a90889SApple OSS Distributions  }
20*43a90889SApple OSS Distributions}
21*43a90889SApple OSS Distributions
22*43a90889SApple OSS Distributionsmodule Darwin.netinet [system] {
23*43a90889SApple OSS Distributions  #ifdef XNU_KERNEL_PRIVATE
24*43a90889SApple OSS Distributions  // The XNU_PLATFORM_MacOSX headers are in the public SDK for macOS,
25*43a90889SApple OSS Distributions  // but mastered out of the public SDK for the other OSes.
26*43a90889SApple OSS Distributions  #endif
27*43a90889SApple OSS Distributions  #ifdef XNU_PLATFORM_MacOSX
28*43a90889SApple OSS Distributions  module bootp {
29*43a90889SApple OSS Distributions    header "netinet/bootp.h"
30*43a90889SApple OSS Distributions    export *
31*43a90889SApple OSS Distributions  }
32*43a90889SApple OSS Distributions
33*43a90889SApple OSS Distributions  #endif
34*43a90889SApple OSS Distributions  module icmp6 {
35*43a90889SApple OSS Distributions    header "netinet/icmp6.h"
36*43a90889SApple OSS Distributions    export *
37*43a90889SApple OSS Distributions  }
38*43a90889SApple OSS Distributions
39*43a90889SApple OSS Distributions  #ifdef XNU_PLATFORM_MacOSX
40*43a90889SApple OSS Distributions  module icmp_var {
41*43a90889SApple OSS Distributions    header "netinet/icmp_var.h"
42*43a90889SApple OSS Distributions    export *
43*43a90889SApple OSS Distributions  }
44*43a90889SApple OSS Distributions
45*43a90889SApple OSS Distributions  module if_ether {
46*43a90889SApple OSS Distributions    header "netinet/if_ether.h"
47*43a90889SApple OSS Distributions    export *
48*43a90889SApple OSS Distributions  }
49*43a90889SApple OSS Distributions
50*43a90889SApple OSS Distributions  module igmp {
51*43a90889SApple OSS Distributions    header "netinet/igmp.h"
52*43a90889SApple OSS Distributions    export *
53*43a90889SApple OSS Distributions  }
54*43a90889SApple OSS Distributions
55*43a90889SApple OSS Distributions  module igmp_var {
56*43a90889SApple OSS Distributions    header "netinet/igmp_var.h"
57*43a90889SApple OSS Distributions    export *
58*43a90889SApple OSS Distributions  }
59*43a90889SApple OSS Distributions
60*43a90889SApple OSS Distributions  #endif
61*43a90889SApple OSS Distributions  module in_pcb {
62*43a90889SApple OSS Distributions    header "netinet/in_pcb.h"
63*43a90889SApple OSS Distributions    export *
64*43a90889SApple OSS Distributions  }
65*43a90889SApple OSS Distributions
66*43a90889SApple OSS Distributions  module in_systm {
67*43a90889SApple OSS Distributions    header "netinet/in_systm.h"
68*43a90889SApple OSS Distributions    export *
69*43a90889SApple OSS Distributions  }
70*43a90889SApple OSS Distributions
71*43a90889SApple OSS Distributions  #ifdef XNU_PLATFORM_MacOSX
72*43a90889SApple OSS Distributions  module in_var {
73*43a90889SApple OSS Distributions    header "netinet/in_var.h"
74*43a90889SApple OSS Distributions    export *
75*43a90889SApple OSS Distributions  }
76*43a90889SApple OSS Distributions
77*43a90889SApple OSS Distributions  #endif
78*43a90889SApple OSS Distributions  module ip {
79*43a90889SApple OSS Distributions    header "netinet/ip.h"
80*43a90889SApple OSS Distributions    export *
81*43a90889SApple OSS Distributions  }
82*43a90889SApple OSS Distributions
83*43a90889SApple OSS Distributions  module ip6 {
84*43a90889SApple OSS Distributions    header "netinet/ip6.h"
85*43a90889SApple OSS Distributions    export *
86*43a90889SApple OSS Distributions  }
87*43a90889SApple OSS Distributions
88*43a90889SApple OSS Distributions  module ip_icmp {
89*43a90889SApple OSS Distributions    header "netinet/ip_icmp.h"
90*43a90889SApple OSS Distributions    export *
91*43a90889SApple OSS Distributions  }
92*43a90889SApple OSS Distributions
93*43a90889SApple OSS Distributions  #ifdef XNU_PLATFORM_MacOSX
94*43a90889SApple OSS Distributions  module ip_var {
95*43a90889SApple OSS Distributions    header "netinet/ip_var.h"
96*43a90889SApple OSS Distributions    export *
97*43a90889SApple OSS Distributions  }
98*43a90889SApple OSS Distributions
99*43a90889SApple OSS Distributions  module tcp_fsm {
100*43a90889SApple OSS Distributions    header "netinet/tcp_fsm.h"
101*43a90889SApple OSS Distributions    export *
102*43a90889SApple OSS Distributions  }
103*43a90889SApple OSS Distributions
104*43a90889SApple OSS Distributions  module tcp_seq {
105*43a90889SApple OSS Distributions    header "netinet/tcp_seq.h"
106*43a90889SApple OSS Distributions    export *
107*43a90889SApple OSS Distributions  }
108*43a90889SApple OSS Distributions
109*43a90889SApple OSS Distributions  #endif
110*43a90889SApple OSS Distributions  module tcp_timer {
111*43a90889SApple OSS Distributions    header "netinet/tcp_timer.h"
112*43a90889SApple OSS Distributions    export *
113*43a90889SApple OSS Distributions  }
114*43a90889SApple OSS Distributions
115*43a90889SApple OSS Distributions  module tcp_var {
116*43a90889SApple OSS Distributions    header "netinet/tcp_var.h"
117*43a90889SApple OSS Distributions    export *
118*43a90889SApple OSS Distributions  }
119*43a90889SApple OSS Distributions
120*43a90889SApple OSS Distributions  #ifdef XNU_PLATFORM_MacOSX
121*43a90889SApple OSS Distributions  module tcpip {
122*43a90889SApple OSS Distributions    header "netinet/tcpip.h"
123*43a90889SApple OSS Distributions    export *
124*43a90889SApple OSS Distributions  }
125*43a90889SApple OSS Distributions
126*43a90889SApple OSS Distributions  #endif
127*43a90889SApple OSS Distributions  module udp {
128*43a90889SApple OSS Distributions    header "netinet/udp.h"
129*43a90889SApple OSS Distributions    export *
130*43a90889SApple OSS Distributions  }
131*43a90889SApple OSS Distributions  #ifdef XNU_PLATFORM_MacOSX
132*43a90889SApple OSS Distributions
133*43a90889SApple OSS Distributions  module udp_var {
134*43a90889SApple OSS Distributions    header "netinet/udp_var.h"
135*43a90889SApple OSS Distributions    export *
136*43a90889SApple OSS Distributions  }
137*43a90889SApple OSS Distributions  #endif
138*43a90889SApple OSS Distributions}
139