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