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