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