+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/ipv6toolkit-1.4.1/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/ipv6toolkit-1.4.1/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for ipv6toolkit-1.4.1 --- ipv6toolkit.conf --- --- addr6 --- --- flow6 --- --- frag6 --- --- icmp6 --- --- jumbo6 --- --- na6 --- --- libipv6.o --- --- ipv6toolkit.conf --- echo "# SI6 Networks' IPv6 Toolkit Configuration File" > data/ipv6toolkit.conf echo OUI-Database=/opt/pkg/share/ipv6toolkit/oui.txt >> data/ipv6toolkit.conf --- addr6 --- gcc -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -Wall -o addr6 tools/addr6.c -lnsl -lsocket -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lpcap -lm --- ra6 --- --- flow6 --- gcc -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -Wall -o flow6 tools/flow6.c -lnsl -lsocket -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lpcap -lm --- icmp6 --- gcc -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -Wall -o icmp6 tools/icmp6.c -lnsl -lsocket -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lpcap -lm --- jumbo6 --- gcc -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -Wall -o jumbo6 tools/jumbo6.c -lnsl -lsocket -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lpcap -lm --- libipv6.o --- gcc -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -Wall -c -o libipv6.o tools/libipv6.c --- frag6 --- gcc -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -Wall -o frag6 tools/frag6.c -lnsl -lsocket -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lpcap -lm --- na6 --- gcc -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -Wall -o na6 tools/na6.c -lnsl -lsocket -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lpcap -lm --- ra6 --- gcc -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -Wall -o ra6 tools/ra6.c -lnsl -lsocket -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lpcap -lm --- addr6 --- In file included from tools/addr6.c:44: tools/addr6.h:78:2: error: unknown type name 'u_int16_t' 78 | u_int16_t key_l; /* Low-order word of the hash key */ | ^~~~~~~~~ tools/addr6.h:79:2: error: unknown type name 'u_int16_t' 79 | u_int16_t key_h; /* High-order word of the hash key */ | ^~~~~~~~~ tools/addr6.c:51:1: warning: parameter names (without types) in function declaration 51 | unsigned int is_service_port(u_int16_t); | ^~~~~~~~ tools/addr6.c:57:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 57 | u_int16_t key(struct host_list *, struct in6_addr *); | ^~~~~~~~~ | uint16_t tools/addr6.c:61:46: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 61 | unsigned int match_ipv6(struct in6_addr *, u_int8_t *, unsigned int, struct in6_addr *); | ^~~~~~~~ | uint8_t tools/addr6.c:62:50: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 62 | void sanitize_ipv6_prefix(struct in6_addr *, u_int8_t); | ^~~~~~~~ | uint8_t tools/addr6.c: In function 'main': tools/addr6.c:86:2: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 86 | u_int8_t blocklen[MAX_BLOCK]; | ^~~~~~~~ | uint8_t tools/addr6.c:91:2: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 91 | u_int8_t acceptlen[MAX_ACCEPT]; | ^~~~~~~~ | uint8_t tools/addr6.c:207:5: warning: implicit declaration of function 'sanitize_ipv6_prefix' [-Wimplicit-function-declaration] 207 | sanitize_ipv6_prefix(&accept[naccept], acceptlen[naccept]); | ^~~~~~~~~~~~~~~~~~~~ tools/addr6.c:593:9: warning: implicit declaration of function 'match_ipv6' [-Wimplicit-function-declaration] 593 | if(match_ipv6(block, blocklen, nblock, &(addr.ip6))){ | ^~~~~~~~~~ tools/addr6.c: At top level: tools/addr6.c:702:30: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 702 | unsigned int is_service_port(u_int16_t port){ | ^~~~~~~~~ | uint16_t tools/addr6.c: In function 'decode_ipv6_address': tools/addr6.c:748:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 748 | u_int16_t scope; | ^~~~~~~~~ | uint16_t tools/addr6.c:760:16: error: 'struct in6_addr' has no member named 's6_addr16' 760 | if((addr->ip6.s6_addr16[0] & htons(0xff00)) == htons(0xff00)){ | ^ tools/addr6.c:761:17: error: 'struct in6_addr' has no member named 's6_addr16' 761 | if((addr->ip6.s6_addr16[0] & htons(0xfff0)) == htons(0xff00)){ | ^ tools/addr6.c:764:22: error: 'struct in6_addr' has no member named 's6_addr16' 764 | else if((addr->ip6.s6_addr16[0] & htons(0xfff0)) == htons(0xff10)){ | ^ tools/addr6.c:767:22: error: 'struct in6_addr' has no member named 's6_addr16' 767 | else if((addr->ip6.s6_addr16[0] & htons(0xfff0)) == htons(0xff20)){ | ^ tools/addr6.c:770:22: error: 'struct in6_addr' has no member named 's6_addr16' 770 | else if((addr->ip6.s6_addr16[0] & htons(0xfff0)) == htons(0xff30)){ | ^ --- na6 --- In file included from tools/na6.c:51: tools/na6.h:55:3: error: unknown type name 'u_int8_t' 55 | u_int8_t a[ETHER_ADDR_LEN]; | ^~~~~~~~ tools/na6.h:59:5: error: unknown type name 'u_int8_t' 59 | u_int8_t type; | ^~~~~~~~ tools/na6.h:60:5: error: unknown type name 'u_int8_t' 60 | u_int8_t length; | ^~~~~~~~ tools/na6.h:61:5: error: unknown type name 'u_int8_t' 61 | u_int8_t address[6]; | ^~~~~~~~ tools/na6.h:67:5: error: unknown type name 'u_int32_t' 67 | u_int32_t len; | ^~~~~~~~~ tools/na6.h:68:5: error: unknown type name 'u_int8_t' 68 | u_int8_t zero[3]; | ^~~~~~~~ tools/na6.h:69:5: error: unknown type name 'u_int8_t' 69 | u_int8_t nh; | ^~~~~~~~ tools/na6.h:77:3: error: unknown type name 'u_int16_t' 77 | u_int16_t ether_type; /* packet type ID field */ | ^~~~~~~~~ tools/na6.c:64:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 64 | u_int16_t in_chksum(void *, void *, size_t); | ^~~~~~~~~ | uint16_t tools/na6.c:65:44: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 65 | unsigned int match_ipv6(struct in6_addr *, u_int8_t *, unsigned int, struct in6_addr *); | ^~~~~~~~ | uint8_t --- addr6 --- tools/addr6.c:773:22: error: 'struct in6_addr' has no member named 's6_addr16' 773 | else if((addr->ip6.s6_addr16[0] & htons(0xfff0)) == htons(0xff40)){ | ^ --- na6 --- tools/na6.c:67:48: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 67 | void sanitize_ipv6_prefix(struct in6_addr *, u_int8_t); | ^~~~~~~~ | uint8_t --- addr6 --- tools/addr6.c:776:22: error: 'struct in6_addr' has no member named 's6_addr16' 776 | else if((addr->ip6.s6_addr16[0] & htons(0xfff0)) == htons(0xff50)){ | ^ tools/addr6.c:779:22: error: 'struct in6_addr' has no member named 's6_addr16' 779 | else if((addr->ip6.s6_addr16[0] & htons(0xfff0)) == htons(0xff60)){ | ^ --- na6 --- tools/na6.c:104:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 104 | u_int16_t mask; | ^~~~~~~~~ | uint16_t --- addr6 --- tools/addr6.c:782:22: error: 'struct in6_addr' has no member named 's6_addr16' 782 | else if((addr->ip6.s6_addr16[0] & htons(0xfff0)) == htons(0xff70)){ | ^ --- na6 --- tools/na6.c:105:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 105 | u_int8_t hoplimit; | ^~~~~~~~ | uint8_t --- addr6 --- tools/addr6.c:786:26: error: 'struct in6_addr' has no member named 's6_addr16' 786 | scope= htons(addr->ip6.s6_addr16[0]) & 0x000f; | ^ --- na6 --- tools/na6.c:114:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 114 | u_int32_t router_f=0, solicited_f=0, override_f=0; | ^~~~~~~~~ | uint32_t --- ra6 --- In file included from tools/ra6.c:50: tools/ra6.h:96:3: error: unknown type name 'u_int8_t' 96 | u_int8_t a[ETHER_ADDR_LEN]; | ^~~~~~~~ tools/ra6.h:101:5: error: unknown type name 'u_int8_t' 101 | u_int8_t type; | ^~~~~~~~ tools/ra6.h:102:5: error: unknown type name 'u_int8_t' 102 | u_int8_t length; | ^~~~~~~~ tools/ra6.h:103:5: error: unknown type name 'u_int8_t' 103 | u_int8_t address[6]; | ^~~~~~~~ tools/ra6.h:107:5: error: unknown type name 'u_int8_t' 107 | u_int8_t nd_opt_ri_type; | ^~~~~~~~ tools/ra6.h:108:5: error: unknown type name 'u_int8_t' 108 | u_int8_t nd_opt_ri_len; | ^~~~~~~~ tools/ra6.h:109:5: error: unknown type name 'u_int8_t' 109 | u_int8_t nd_opt_ri_prefix_len; | ^~~~~~~~ tools/ra6.h:110:5: error: unknown type name 'u_int8_t' 110 | u_int8_t nd_opt_ri_rsvd_pref_rsvd; | ^~~~~~~~ tools/ra6.h:111:5: error: unknown type name 'u_int32_t' 111 | u_int32_t nd_opt_ri_lifetime; | ^~~~~~~~~ tools/ra6.h:116:5: error: unknown type name 'u_int8_t' 116 | u_int8_t nd_opt_rdnss_type; | ^~~~~~~~ tools/ra6.h:117:5: error: unknown type name 'u_int8_t' 117 | u_int8_t nd_opt_rdnss_len; | ^~~~~~~~ tools/ra6.h:118:5: error: unknown type name 'u_int16_t' 118 | u_int16_t nd_opt_rdnss_rsvd; | ^~~~~~~~~ tools/ra6.h:119:5: error: unknown type name 'u_int32_t' 119 | u_int32_t nd_opt_rdnss_lifetime; | ^~~~~~~~~ tools/ra6.h:126:5: error: unknown type name 'u_int32_t' 126 | u_int32_t len; | ^~~~~~~~~ tools/ra6.h:127:5: error: unknown type name 'u_int8_t' 127 | u_int8_t zero[3]; | ^~~~~~~~ tools/ra6.h:128:5: error: unknown type name 'u_int8_t' 128 | u_int8_t nh; | ^~~~~~~~ --- na6 --- tools/na6.c:137:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 137 | u_int8_t blocksrclen[MAX_BLOCK_SRC], blockdstlen[MAX_BLOCK_DST]; | ^~~~~~~~ | uint8_t --- ra6 --- tools/ra6.h:137:3: error: unknown type name 'u_int16_t' 137 | u_int16_t ether_type; /* packet type ID field */ | ^~~~~~~~~ --- addr6 --- tools/addr6.c:868:22: error: 'struct in6_addr' has no member named 's6_addr16' 868 | if(ntohs(addr->ip6.s6_addr16[4]) & 0x0300){ | ^ tools/addr6.c:871:27: error: 'struct in6_addr' has no member named 's6_addr16' 871 | else if(ntohs(addr->ip6.s6_addr16[4]) & 0x3cff){ | ^ --- na6 --- tools/na6.c:138:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 138 | u_int8_t blocktargetlen[MAX_BLOCK_TARGET]; | ^~~~~~~~ | uint8_t tools/na6.c:146:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 146 | u_int8_t acceptsrclen[MAX_ACCEPT_SRC], acceptdstlen[MAX_ACCEPT_DST]; | ^~~~~~~~ | uint8_t --- addr6 --- tools/addr6.c:887:18: error: 'struct in6_addr' has no member named 's6_addr32' 887 | if( (addr->ip6.s6_addr32[2] & htonl(0x020000ff)) == htonl(0x020000ff) && | ^ --- ra6 --- tools/ra6.c:60:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 60 | u_int16_t in_chksum(void *, void *, size_t); | ^~~~~~~~~ | uint16_t --- addr6 --- tools/addr6.c:888:15: error: 'struct in6_addr' has no member named 's6_addr32' 888 | (addr->ip6.s6_addr32[3] & htonl(0xff000000)) == htonl(0xfe000000)){ | ^ tools/addr6.c:890:39: error: 'struct in6_addr' has no member named 's6_addr32' 890 | addr->iidsubtype= (ntohl(addr->ip6.s6_addr32[2]) >> 8) & 0xfffdffff; | ^ --- na6 --- tools/na6.c:147:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 147 | u_int8_t accepttargetlen[MAX_ACCEPT_TARGET]; | ^~~~~~~~ | uint8_t --- ra6 --- tools/ra6.c:65:44: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 65 | unsigned int match_ipv6(struct in6_addr *, u_int8_t *, unsigned int, struct in6_addr *); | ^~~~~~~~ | uint8_t --- addr6 --- tools/addr6.c:892:22: error: 'struct in6_addr' has no member named 's6_addr32' 892 | else if((addr->ip6.s6_addr32[2] & htonl(0xfdffffff)) == htonl(0x00005efe)){ | ^ tools/addr6.c:896:21: error: 'struct in6_addr' has no member named 's6_addr32' 896 | else if(addr->ip6.s6_addr32[2] == 0 && (addr->ip6.s6_addr16[6] & htons(0xff00)) != 0 && addr->ip6.s6_addr16[7] != 0){ | ^ tools/addr6.c:896:53: error: 'struct in6_addr' has no member named 's6_addr16' 896 | else if(addr->ip6.s6_addr32[2] == 0 && (addr->ip6.s6_addr16[6] & htons(0xff00)) != 0 && addr->ip6.s6_addr16[7] != 0){ | ^ --- ra6 --- tools/ra6.c:67:48: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 67 | void sanitize_ipv6_prefix(struct in6_addr *, u_int8_t); | ^~~~~~~~ | uint8_t --- addr6 --- tools/addr6.c:896:101: error: 'struct in6_addr' has no member named 's6_addr16' 896 | else if(addr->ip6.s6_addr32[2] == 0 && (addr->ip6.s6_addr16[6] & htons(0xff00)) != 0 && addr->ip6.s6_addr16[7] != 0){ | ^ tools/addr6.c:899:21: error: 'struct in6_addr' has no member named 's6_addr32' 899 | else if(addr->ip6.s6_addr32[2] == 0 && \ | ^ tools/addr6.c:900:25: error: 'struct in6_addr' has no member named 's6_addr16' 900 | ((addr->ip6.s6_addr16[6] & htons(0xff00)) == 0 && is_service_port(ntohs(addr->ip6.s6_addr16[7])))){ | ^ tools/addr6.c:900:95: error: 'struct in6_addr' has no member named 's6_addr16' 900 | ((addr->ip6.s6_addr16[6] & htons(0xff00)) == 0 && is_service_port(ntohs(addr->ip6.s6_addr16[7])))){ | ^ --- ra6 --- tools/ra6.c:104:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 104 | u_int16_t lifetime; | ^~~~~~~~~ | uint16_t --- addr6 --- tools/addr6.c:903:21: error: 'struct in6_addr' has no member named 's6_addr32' 903 | else if(addr->ip6.s6_addr32[2] == 0 && \ | ^ tools/addr6.c:904:33: error: 'struct in6_addr' has no member named 's6_addr16' 904 | ((addr->ip6.s6_addr16[7] & htons(0xff00)) == 0 && is_service_port(ntohs(addr->ip6.s6_addr16[6])))){ | ^ --- libipv6.o --- In file included from tools/libipv6.c:27: tools/libipv6.h:53:2: error: unknown type name 'u_int8_t' 53 | u_int8_t *blocksrclen; | ^~~~~~~~ tools/libipv6.h:54:2: error: unknown type name 'u_int8_t' 54 | u_int8_t *blockdstlen; | ^~~~~~~~ tools/libipv6.h:55:2: error: unknown type name 'u_int8_t' 55 | u_int8_t *blocktargetlen; | ^~~~~~~~ tools/libipv6.h:71:2: error: unknown type name 'u_int8_t' 71 | u_int8_t *acceptsrclen; | ^~~~~~~~ tools/libipv6.h:72:2: error: unknown type name 'u_int8_t' 72 | u_int8_t *acceptdstlen; | ^~~~~~~~ tools/libipv6.h:73:2: error: unknown type name 'u_int8_t' 73 | u_int8_t *accepttargetlen; | ^~~~~~~~ tools/libipv6.h:118:3: error: unknown type name 'u_int8_t' 118 | u_int8_t a[ETHER_ADDR_LEN]; | ^~~~~~~~ tools/libipv6.h:124:3: error: unknown type name 'u_int32_t' 124 | u_int32_t family; /* Protocol Family */ | ^~~~~~~~~ tools/libipv6.h:129:5: error: unknown type name 'u_int8_t' 129 | u_int8_t type; | ^~~~~~~~ tools/libipv6.h:130:5: error: unknown type name 'u_int8_t' 130 | u_int8_t length; | ^~~~~~~~ tools/libipv6.h:131:5: error: unknown type name 'u_int8_t' 131 | u_int8_t address[6]; | ^~~~~~~~ tools/libipv6.h:135:5: error: unknown type name 'u_int8_t' 135 | u_int8_t type; | ^~~~~~~~ tools/libipv6.h:136:5: error: unknown type name 'u_int8_t' 136 | u_int8_t length; | ^~~~~~~~ tools/libipv6.h:137:5: error: unknown type name 'u_int8_t' 137 | u_int8_t address[6]; | ^~~~~~~~ tools/libipv6.h:143:5: error: unknown type name 'u_int32_t' 143 | u_int32_t len; | ^~~~~~~~~ tools/libipv6.h:144:5: error: unknown type name 'u_int8_t' 144 | u_int8_t zero[3]; | ^~~~~~~~ tools/libipv6.h:145:5: error: unknown type name 'u_int8_t' 145 | u_int8_t nh; | ^~~~~~~~ tools/libipv6.h:153:3: error: unknown type name 'u_int16_t' --- addr6 --- tools/addr6.c:904:103: error: 'struct in6_addr' has no member named 's6_addr16' 904 | ((addr->ip6.s6_addr16[7] & htons(0xff00)) == 0 && is_service_port(ntohs(addr->ip6.s6_addr16[6])))){ | ^ tools/addr6.c:907:21: error: 'struct in6_addr' has no member named 's6_addr32' 907 | else if(addr->ip6.s6_addr32[2] == 0 && (addr->ip6.s6_addr16[6] & htons(0xff00)) == 0 && addr->ip6.s6_addr16[7] != 0){ | ^ tools/addr6.c:907:53: error: 'struct in6_addr' has no member named 's6_addr16' 907 | else if(addr->ip6.s6_addr32[2] == 0 && (addr->ip6.s6_addr16[6] & htons(0xff00)) == 0 && addr->ip6.s6_addr16[7] != 0){ | ^ tools/addr6.c:907:101: error: 'struct in6_addr' has no member named 's6_addr16' --- jumbo6 --- In file included from tools/jumbo6.c:59: tools/jumbo6.h:78:3: error: unknown type name 'u_int8_t' 78 | u_int8_t a[ETHER_ADDR_LEN]; | ^~~~~~~~ tools/jumbo6.h:84:3: error: unknown type name 'u_int32_t' 84 | u_int32_t family; /* Protocol Family */ | ^~~~~~~~~ tools/jumbo6.h:88:5: error: unknown type name 'u_int8_t' 88 | u_int8_t type; | ^~~~~~~~ tools/jumbo6.h:89:5: error: unknown type name 'u_int8_t' 89 | u_int8_t length; | ^~~~~~~~ tools/jumbo6.h:90:5: error: unknown type name 'u_int8_t' 90 | u_int8_t address[6]; | ^~~~~~~~ tools/jumbo6.h:94:5: error: unknown type name 'u_int8_t' 94 | u_int8_t type; | ^~~~~~~~ tools/jumbo6.h:95:5: error: unknown type name 'u_int8_t' 95 | u_int8_t length; | ^~~~~~~~ tools/jumbo6.h:96:5: error: unknown type name 'u_int8_t' 96 | u_int8_t address[6]; | ^~~~~~~~ tools/jumbo6.h:102:5: error: unknown type name 'u_int32_t' 102 | u_int32_t len; --- na6 --- tools/na6.c: In function 'main': tools/na6.c:238:6: warning: implicit declaration of function 'sanitize_ipv6_prefix' [-Wimplicit-function-declaration] 238 | sanitize_ipv6_prefix(&srcaddr, srcpreflen); | ^~~~~~~~~~~~~~~~~~~~ --- ra6 --- tools/ra6.c:105:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 105 | u_int32_t reachable; | ^~~~~~~~~ | uint32_t tools/ra6.c:106:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 106 | u_int32_t retrans; | ^~~~~~~~~ | uint32_t tools/ra6.c:107:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 107 | u_int8_t curhop, hoplimit; | ^~~~~~~~ | uint8_t tools/ra6.c:127:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 127 | u_int16_t mask; | ^~~~~~~~~ | uint16_t --- libipv6.o --- 153 | u_int16_t ether_type; /* packet type ID field */ | ^~~~~~~~~ tools/libipv6.h:205:3: error: unknown type name 'u_int8_t' 205 | u_int8_t icmp6_nl_nonce[8]; | ^~~~~~~~ tools/libipv6.h:219:3: error: unknown type name 'u_int8_t' 219 | u_int8_t icmp6_ni_nonce[8]; | ^~~~~~~~ tools/libipv6.h:263:3: error: unknown type name 'u_int32_t' 263 | u_int32_t ni_fqdn_ttl; /* TTL */ | ^~~~~~~~~ tools/libipv6.h:264:3: error: unknown type name 'u_int8_t' 264 | u_int8_t ni_fqdn_namelen; /* length in octets of the FQDN */ | ^~~~~~~~ tools/libipv6.h:265:3: error: unknown type name 'u_int8_t' 265 | u_int8_t ni_fqdn_name[3]; /* XXX: alignment */ | ^~~~~~~~ tools/libipv6.h:272:2: error: unknown type name 'u_int32_t' 272 | u_int32_t ni_ip6_ttl; /* TTL */ | ^~~~~~~~~ tools/libipv6.h:278:2: error: unknown type name 'u_int32_t' 278 | u_int32_t ni_ip_ttl; /* TTL */ | ^~~~~~~~~ tools/libipv6.h:283:2: error: unknown type name 'u_int32_t' --- addr6 --- 907 | else if(addr->ip6.s6_addr32[2] == 0 && (addr->ip6.s6_addr16[6] & htons(0xff00)) == 0 && addr->ip6.s6_addr16[7] != 0){ | ^ tools/addr6.c:910:28: error: 'struct in6_addr' has no member named 's6_addr16' 910 | else if( ntohs(addr->ip6.s6_addr16[4]) <= 0x255 && ntohs(addr->ip6.s6_addr16[5]) <= 0x255 && \ | ^ tools/addr6.c:910:70: error: 'struct in6_addr' has no member named 's6_addr16' 910 | else if( ntohs(addr->ip6.s6_addr16[4]) <= 0x255 && ntohs(addr->ip6.s6_addr16[5]) <= 0x255 && \ | ^ tools/addr6.c:911:21: error: 'struct in6_addr' has no member named 's6_addr16' 911 | ntohs(addr->ip6.s6_addr16[6]) <= 0x255 && ntohs(addr->ip6.s6_addr16[7]) <= 0x255){ | ^ tools/addr6.c:911:63: error: 'struct in6_addr' has no member named 's6_addr16' --- jumbo6 --- | ^~~~~~~~~ tools/jumbo6.h:103:5: error: unknown type name 'u_int8_t' 103 | u_int8_t zero[3]; | ^~~~~~~~ tools/jumbo6.h:104:5: error: unknown type name 'u_int8_t' 104 | u_int8_t nh; | ^~~~~~~~ tools/jumbo6.h:112:3: error: unknown type name 'u_int16_t' 112 | u_int16_t ether_type; /* packet type ID field */ | ^~~~~~~~~ --- libipv6.o --- 283 | u_int32_t ni_name_ttl; /* TTL */ | ^~~~~~~~~ tools/libipv6.h:349:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 349 | u_int16_t in_chksum(void *, void *, size_t, u_int8_t); | ^~~~~~~~~ | uint16_t tools/libipv6.h:349:47: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 349 | u_int16_t in_chksum(void *, void *, size_t, u_int8_t); | ^~~~~~~~ | uint8_t --- addr6 --- 911 | ntohs(addr->ip6.s6_addr16[6]) <= 0x255 && ntohs(addr->ip6.s6_addr16[7]) <= 0x255){ | ^ --- ra6 --- tools/ra6.c:128:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 128 | u_int8_t prefixlen[MAX_PREFIX_OPTION]; | ^~~~~~~~ | uint8_t --- libipv6.o --- tools/libipv6.h:357:45: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 357 | unsigned int match_ipv6(struct in6_addr *, u_int8_t *, unsigned int, struct in6_addr *); | ^~~~~~~~ | uint8_t --- ra6 --- tools/ra6.c:129:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 129 | u_int32_t prefixvalid[MAX_PREFIX_OPTION]; | ^~~~~~~~~ | uint32_t --- addr6 --- tools/addr6.c: In function 'init_host_list': --- libipv6.o --- tools/libipv6.h:362:67: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 362 | void randomize_ipv6_addr(struct in6_addr *, struct in6_addr *, u_int8_t); | ^~~~~~~~ | uint8_t --- addr6 --- tools/addr6.c:1429:2: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] 1429 | bzero(hlist, sizeof(struct host_list)); | ^~~~~ tools/addr6.c:1429:2: warning: incompatible implicit declaration of built-in function 'bzero' --- jumbo6 --- tools/jumbo6.c:79:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 79 | u_int16_t in_chksum(void *, void *, size_t, u_int8_t); | ^~~~~~~~~ | uint16_t --- ra6 --- tools/ra6.c:130:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 130 | u_int32_t prefixpref[MAX_PREFIX_OPTION]; | ^~~~~~~~~ | uint32_t --- libipv6.o --- tools/libipv6.h:364:49: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 364 | void sanitize_ipv6_prefix(struct in6_addr *, u_int8_t); | ^~~~~~~~ | uint8_t --- jumbo6 --- tools/jumbo6.c:79:47: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 79 | u_int16_t in_chksum(void *, void *, size_t, u_int8_t); | ^~~~~~~~ | uint8_t --- ra6 --- tools/ra6.c:132:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 132 | u_int8_t prefixflags[MAX_PREFIX_OPTION]; | ^~~~~~~~ | uint8_t tools/ra6.c:135:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 135 | u_int8_t routelen[MAX_ROUTE_OPTION]; | ^~~~~~~~ | uint8_t --- jumbo6 --- tools/jumbo6.c:81:45: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 81 | unsigned int match_ipv6(struct in6_addr *, u_int8_t *, unsigned int, struct in6_addr *); | ^~~~~~~~ | uint8_t --- addr6 --- tools/addr6.c: At top level: tools/addr6.c:1452:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 1452 | u_int16_t key(struct host_list *hlist, struct in6_addr *ipv6){ | ^~~~~~~~~ | uint16_t tools/addr6.c: In function 'key': tools/addr6.c:1453:32: error: 'struct in6_addr' has no member named 's6_addr16' 1453 | return( ((hlist->key_l ^ ipv6->s6_addr16[0] ^ ipv6->s6_addr16[7]) \ | ^~ tools/addr6.c:1453:53: error: 'struct in6_addr' has no member named 's6_addr16' 1453 | return( ((hlist->key_l ^ ipv6->s6_addr16[0] ^ ipv6->s6_addr16[7]) \ | ^~ tools/addr6.c:1454:27: error: 'struct in6_addr' has no member named 's6_addr16' 1454 | ^ (hlist->key_h ^ ipv6->s6_addr16[1] ^ ipv6->s6_addr16[6])) % MAX_LIST_ENTRIES); | ^~ tools/addr6.c:1454:48: error: 'struct in6_addr' has no member named 's6_addr16' 1454 | ^ (hlist->key_h ^ ipv6->s6_addr16[1] ^ ipv6->s6_addr16[6])) % MAX_LIST_ENTRIES); | ^~ --- ra6 --- tools/ra6.c:136:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 136 | u_int32_t routelife[MAX_ROUTE_OPTION]; | ^~~~~~~~~ | uint32_t tools/ra6.c:137:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 137 | u_int8_t routepref[MAX_ROUTE_OPTION]; | ^~~~~~~~ | uint8_t tools/ra6.c:140:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 140 | u_int32_t rdnsslife[MAX_RDNSS_OPTION]; | ^~~~~~~~~ | uint32_t --- frag6 --- In file included from tools/frag6.c:57: tools/frag6.h:119:3: error: unknown type name 'u_int8_t' 119 | u_int8_t a[ETHER_ADDR_LEN]; | ^~~~~~~~ tools/frag6.h:125:3: error: unknown type name 'u_int32_t' 125 | u_int32_t family; /* Protocol Family */ | ^~~~~~~~~ tools/frag6.h:130:5: error: unknown type name 'u_int8_t' 130 | u_int8_t type; | ^~~~~~~~ tools/frag6.h:131:5: error: unknown type name 'u_int8_t' 131 | u_int8_t length; | ^~~~~~~~ tools/frag6.h:132:5: error: unknown type name 'u_int8_t' 132 | u_int8_t address[6]; | ^~~~~~~~ tools/frag6.h:136:5: error: unknown type name 'u_int8_t' 136 | u_int8_t type; | ^~~~~~~~ tools/frag6.h:137:5: error: unknown type name 'u_int8_t' 137 | u_int8_t length; | ^~~~~~~~ tools/frag6.h:138:5: error: unknown type name 'u_int8_t' 138 | u_int8_t address[6]; | ^~~~~~~~ tools/frag6.h:144:5: error: unknown type name 'u_int32_t' 144 | u_int32_t len; --- jumbo6 --- tools/jumbo6.c:83:49: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 83 | void sanitize_ipv6_prefix(struct in6_addr *, u_int8_t); | ^~~~~~~~ | uint8_t tools/jumbo6.c:84:67: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 84 | void randomize_ipv6_addr(struct in6_addr *, struct in6_addr *, u_int8_t); | ^~~~~~~~ | uint8_t --- frag6 --- | ^~~~~~~~~ tools/frag6.h:145:5: error: unknown type name 'u_int8_t' 145 | u_int8_t zero[3]; | ^~~~~~~~ tools/frag6.h:146:5: error: unknown type name 'u_int8_t' 146 | u_int8_t nh; | ^~~~~~~~ tools/frag6.h:154:3: error: unknown type name 'u_int16_t' 154 | u_int16_t ether_type; /* packet type ID field */ | ^~~~~~~~~ --- libipv6.o --- tools/libipv6.c: In function 'dns_decode': tools/libipv6.c:95:6: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] 95 | bcopy( (ptr+1), w, *ptr); | ^~~~~ tools/libipv6.c:95:6: warning: incompatible implicit declaration of built-in function 'bcopy' --- na6 --- tools/na6.c:892:10: error: 'struct in6_addr' has no member named 's6_addr16' 892 | srcaddr.s6_addr16[0]= htons(0xfe80); /* Link-local unicast prefix */ | ^ tools/na6.c:895:11: error: 'struct in6_addr' has no member named 's6_addr16' 895 | srcaddr.s6_addr16[i]=0x0000; | ^ --- libipv6.o --- tools/libipv6.c: In function 'dns_str2wire': tools/libipv6.c:169:3: warning: incompatible implicit declaration of built-in function 'bcopy' 169 | bcopy(label, dst, llen); | ^~~~~ --- na6 --- tools/na6.c:898:11: error: 'struct in6_addr' has no member named 's6_addr16' 898 | srcaddr.s6_addr16[i]=random(); | ^ --- ra6 --- tools/ra6.c:145:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 145 | u_int16_t mtu[MAX_MTU_OPTION]; | ^~~~~~~~~ | uint16_t --- na6 --- tools/na6.c:906:10: error: 'struct in6_addr' has no member named 's6_addr16' 906 | srcaddr.s6_addr16[0]= htons(0xfe80); /* Link-local unicast prefix */ | ^ tools/na6.c:909:11: error: 'struct in6_addr' has no member named 's6_addr16' 909 | srcaddr.s6_addr16[i]=0x0000; | ^ --- flow6 --- In file included from tools/flow6.c:59: tools/flow6.h:118:2: error: unknown type name 'u_int8_t' 118 | u_int8_t a[ETHER_ADDR_LEN]; | ^~~~~~~~ --- addr6 --- tools/addr6.c: In function 'add_host_entry': --- flow6 --- tools/flow6.h:124:3: error: unknown type name 'u_int32_t' 124 | u_int32_t family; /* Protocol Family */ | ^~~~~~~~~ tools/flow6.h:128:2: error: unknown type name 'u_int8_t' 128 | u_int8_t type; | ^~~~~~~~ tools/flow6.h:129:2: error: unknown type name 'u_int8_t' 129 | u_int8_t length; | ^~~~~~~~ tools/flow6.h:130:2: error: unknown type name 'u_int8_t' 130 | u_int8_t address[6]; | ^~~~~~~~ tools/flow6.h:134:2: error: unknown type name 'u_int8_t' 134 | u_int8_t type; | ^~~~~~~~ tools/flow6.h:135:2: error: unknown type name 'u_int8_t' 135 | u_int8_t length; | ^~~~~~~~ tools/flow6.h:136:2: error: unknown type name 'u_int8_t' 136 | u_int8_t address[6]; | ^~~~~~~~ tools/flow6.h:142:2: error: unknown type name 'u_int32_t' 142 | u_int32_t len; | ^~~~~~~~~ tools/flow6.h:143:2: error: unknown type name 'u_int8_t' 143 | u_int8_t zero[3]; | ^~~~~~~~ --- na6 --- tools/na6.c:942:13: error: 'struct in6_addr' has no member named 's6_addr16' 942 | targetaddr.s6_addr16[0]= htons(0xfe80); /* Link-local unicast prefix */ | ^ --- flow6 --- tools/flow6.h:144:2: error: unknown type name 'u_int8_t' 144 | u_int8_t nh; | ^~~~~~~~ tools/flow6.h:152:3: error: unknown type name 'u_int16_t' 152 | u_int16_t ether_type; /* packet type ID field */ | ^~~~~~~~~ --- ra6 --- tools/ra6.c:176:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 176 | u_int8_t blocksrclen[MAX_BLOCK_SRC], blockdstlen[MAX_BLOCK_DST]; | ^~~~~~~~ | uint8_t --- na6 --- tools/na6.c:945:14: error: 'struct in6_addr' has no member named 's6_addr16' 945 | targetaddr.s6_addr16[i]=0x0000; | ^ --- libipv6.o --- tools/libipv6.c: In function 'find_ipv6_router_full': tools/libipv6.c:377:2: warning: incompatible implicit declaration of built-in function 'bcopy' 377 | bcopy( &(idata->ether.a), sllaopt->address, ETH_ALEN); | ^~~~~ --- addr6 --- tools/addr6.c:1466:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 1466 | u_int16_t hkey; | ^~~~~~~~~ | uint16_t --- icmp6 --- In file included from tools/icmp6.c:58: tools/icmp6.h:85:3: error: unknown type name 'u_int8_t' 85 | u_int8_t a[ETHER_ADDR_LEN]; | ^~~~~~~~ --- ra6 --- tools/ra6.c:183:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 183 | u_int8_t acceptsrclen[MAX_ACCEPT_SRC], acceptdstlen[MAX_ACCEPT_DST]; | ^~~~~~~~ | uint8_t --- icmp6 --- tools/icmp6.h:89:5: error: unknown type name 'u_int8_t' 89 | u_int8_t type; | ^~~~~~~~ tools/icmp6.h:90:5: error: unknown type name 'u_int8_t' 90 | u_int8_t length; | ^~~~~~~~ tools/icmp6.h:91:5: error: unknown type name 'u_int8_t' 91 | u_int8_t address[6]; | ^~~~~~~~ tools/icmp6.h:95:5: error: unknown type name 'u_int8_t' 95 | u_int8_t type; | ^~~~~~~~ tools/icmp6.h:96:5: error: unknown type name 'u_int8_t' 96 | u_int8_t length; | ^~~~~~~~ tools/icmp6.h:97:5: error: unknown type name 'u_int8_t' 97 | u_int8_t address[6]; | ^~~~~~~~ tools/icmp6.h:103:5: error: unknown type name 'u_int32_t' 103 | u_int32_t len; | ^~~~~~~~~ --- jumbo6 --- tools/jumbo6.c:148:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 148 | u_int16_t mask, ip6length; | ^~~~~~~~~ | uint16_t --- icmp6 --- tools/icmp6.h:104:5: error: unknown type name 'u_int8_t' 104 | u_int8_t zero[3]; | ^~~~~~~~ tools/icmp6.h:105:5: error: unknown type name 'u_int8_t' 105 | u_int8_t nh; | ^~~~~~~~ tools/icmp6.h:113:3: error: unknown type name 'u_int16_t' 113 | u_int16_t ether_type; /* packet type ID field */ | ^~~~~~~~~ tools/icmp6.h:119:3: error: unknown type name 'u_int32_t' 119 | u_int32_t family; /* Protocol Family */ | ^~~~~~~~~ --- addr6 --- tools/addr6.c:1478:2: warning: incompatible implicit declaration of built-in function 'bzero' 1478 | bzero(hentry, sizeof(struct host_entry)); | ^~~~~ --- jumbo6 --- tools/jumbo6.c:149:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 149 | u_int32_t jplength, *jplengthptr, *fjplengthptr, icmp6psize; | ^~~~~~~~~ | uint32_t --- libipv6.o --- tools/libipv6.c:382:20: warning: implicit declaration of function 'in_chksum'; did you mean 'ni_cksum'? [-Wimplicit-function-declaration] 382 | rs->nd_rs_cksum = in_chksum(v6buffer, rs, ptr-((unsigned char *)rs), IPPROTO_ICMPV6); | ^~~~~~~~~ | ni_cksum --- jumbo6 --- tools/jumbo6.c:150:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 150 | u_int8_t hoplimit; | ^~~~~~~~ | uint8_t --- libipv6.o --- tools/libipv6.c:386:2: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] 386 | bzero(&new_sig, sizeof(struct sigaction)); | ^~~~~ tools/libipv6.c:386:2: warning: incompatible implicit declaration of built-in function 'bzero' --- addr6 --- tools/addr6.c: In function 'is_ip6_in_list': --- libipv6.o --- tools/libipv6.c:472:26: error: 'struct in6_addr' has no member named 's6_addr16' 472 | if( (pkt_ipv6->ip6_src.s6_addr16[0] & htons(0xffc0)) != htons(0xfe80)) | ^ --- jumbo6 --- tools/jumbo6.c:181:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 181 | u_int8_t blocksrclen[MAX_BLOCK_SRC], blockdstlen[MAX_BLOCK_DST]; | ^~~~~~~~ | uint8_t tools/jumbo6.c:182:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 182 | u_int8_t blocktargetlen[MAX_BLOCK_TARGET]; | ^~~~~~~~ | uint8_t --- icmp6 --- tools/icmp6.c:77:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 77 | u_int16_t in_chksum(void *, void *, size_t, u_int8_t); | ^~~~~~~~~ | uint16_t --- na6 --- tools/na6.c:1059:8: warning: implicit declaration of function 'match_ipv6' [-Wimplicit-function-declaration] 1059 | if(match_ipv6(blocksrc, blocksrclen, nblocksrc, &(pkt_ipv6->ip6_src))){ | ^~~~~~~~~~ --- addr6 --- tools/addr6.c:1508:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 1508 | u_int16_t ckey; | ^~~~~~~~~ | uint16_t tools/addr6.c: In function 'is_eq_in6_addr': tools/addr6.c:1531:9: error: 'struct in6_addr' has no member named 's6_addr16' 1531 | if(ip1->s6_addr16[i] != ip2->s6_addr16[i]) | ^~ --- na6 --- tools/na6.c: In function 'init_packet_data': tools/na6.c:1215:3: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] 1215 | bzero(&fraghdr, FRAG_HDR_SIZE); | ^~~~~ tools/na6.c:1215:3: warning: incompatible implicit declaration of built-in function 'bzero' --- addr6 --- tools/addr6.c:1531:30: error: 'struct in6_addr' has no member named 's6_addr16' 1531 | if(ip1->s6_addr16[i] != ip2->s6_addr16[i]) | ^~ --- ra6 --- tools/ra6.c: In function 'main': tools/ra6.c:290:6: warning: implicit declaration of function 'sanitize_ipv6_prefix' [-Wimplicit-function-declaration] 290 | sanitize_ipv6_prefix(&srcaddr, srcpreflen); | ^~~~~~~~~~~~~~~~~~~~ --- icmp6 --- tools/icmp6.c:77:47: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 77 | u_int16_t in_chksum(void *, void *, size_t, u_int8_t); | ^~~~~~~~ | uint8_t --- na6 --- tools/na6.c:1259:4: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] 1259 | bcopy(linkaddr[0].a, tllaopt->address, ETH_ALEN); | ^~~~~ tools/na6.c:1259:4: warning: incompatible implicit declaration of built-in function 'bcopy' tools/na6.c: In function 'send_packet': --- jumbo6 --- tools/jumbo6.c:190:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 190 | u_int8_t acceptsrclen[MAX_ACCEPT_SRC], acceptdstlen[MAX_ACCEPT_DST]; | ^~~~~~~~ | uint8_t --- na6 --- tools/na6.c:1332:44: error: 'struct in6_addr' has no member named 's6_addr16' 1332 | if( !srcaddr_f && ((pkt_ns->nd_ns_target.s6_addr16[0] & htons(0xffc0)) == htons(0xfe80)) ) | ^ --- libipv6.o --- tools/libipv6.c:531:9: warning: implicit declaration of function 'sanitize_ipv6_prefix' [-Wimplicit-function-declaration] 531 | sanitize_ipv6_prefix(&((idata->prefix_ol.prefix[idata->prefix_ol.nprefix])->ip6), \ | ^~~~~~~~~~~~~~~~~~~~ --- icmp6 --- tools/icmp6.c:78:45: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 78 | unsigned int match_ipv6(struct in6_addr *, u_int8_t *, unsigned int, struct in6_addr *); | ^~~~~~~~ | uint8_t --- na6 --- tools/na6.c:1361:18: error: 'struct in6_addr' has no member named 's6_addr16' 1361 | ipv6->ip6_src.s6_addr16[i]= 0; | ^ --- jumbo6 --- tools/jumbo6.c:191:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 191 | u_int8_t accepttargetlen[MAX_ACCEPT_TARGET]; | ^~~~~~~~ | uint8_t --- icmp6 --- tools/icmp6.c:80:49: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 80 | void sanitize_ipv6_prefix(struct in6_addr *, u_int8_t); | ^~~~~~~~ | uint8_t --- na6 --- tools/na6.c:1364:18: error: 'struct in6_addr' has no member named 's6_addr16' 1364 | ipv6->ip6_src.s6_addr16[i]=random(); | ^ --- ra6 --- tools/ra6.c:504:50: error: 'ULONG_MAX' undeclared (first use in this function) 504 | if((ul_res = strtoul(optarg, &endptr, 0)) == ULONG_MAX){ | ^~~~~~~~~ tools/ra6.c:52:1: note: 'ULONG_MAX' is defined in header ''; did you forget to '#include '? 51 | #include "ipv6toolkit.h" +++ |+#include 52 | --- libipv6.o --- tools/libipv6.c: In function 'ether_to_ipv6_linklocal': --- icmp6 --- tools/icmp6.c:81:67: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 81 | void randomize_ipv6_addr(struct in6_addr *, struct in6_addr *, u_int8_t); | ^~~~~~~~ | uint8_t --- ra6 --- tools/ra6.c:504:50: note: each undeclared identifier is reported only once for each function it appears in 504 | if((ul_res = strtoul(optarg, &endptr, 0)) == ULONG_MAX){ | ^~~~~~~~~ --- libipv6.o --- tools/libipv6.c:642:10: error: 'struct in6_addr' has no member named 's6_addr16' 642 | ipv6addr->s6_addr16[0]= htons(0xfe80); /* Link-local unicast prefix */ | ^~ --- na6 --- tools/na6.c:1372:18: error: 'struct in6_addr' has no member named 's6_addr16' 1372 | ipv6->ip6_src.s6_addr16[startrand]= ipv6->ip6_src.s6_addr16[startrand] \ | ^ --- libipv6.o --- tools/libipv6.c:645:11: error: 'struct in6_addr' has no member named 's6_addr16' 645 | ipv6addr->s6_addr16[i]=0x0000; | ^~ tools/libipv6.c:647:10: error: 'struct in6_addr' has no member named 's6_addr16' 647 | ipv6addr->s6_addr16[4]= htons(((u_int16_t)etheraddr->a[0] << 8) | etheraddr->a[1]); | ^~ --- na6 --- tools/na6.c:1372:54: error: 'struct in6_addr' has no member named 's6_addr16' 1372 | ipv6->ip6_src.s6_addr16[startrand]= ipv6->ip6_src.s6_addr16[startrand] \ | ^ tools/na6.c:1377:18: error: 'struct in6_addr' has no member named 's6_addr16' 1377 | ipv6->ip6_src.s6_addr16[i]= ipv6->ip6_src.s6_addr16[i] | srcaddr.s6_addr16[i]; | ^ tools/na6.c:1377:46: error: 'struct in6_addr' has no member named 's6_addr16' 1377 | ipv6->ip6_src.s6_addr16[i]= ipv6->ip6_src.s6_addr16[i] | srcaddr.s6_addr16[i]; | ^ --- icmp6 --- tools/icmp6.c:107:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 107 | u_int8_t icmp6type=0, icmp6code=0; | ^~~~~~~~ | uint8_t --- addr6 --- tools/addr6.c: At top level: --- flow6 --- tools/flow6.c:78:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 78 | u_int16_t in_chksum(void *, void *, size_t, u_int8_t); | ^~~~~~~~~ | uint16_t --- na6 --- tools/na6.c:1377:69: error: 'struct in6_addr' has no member named 's6_addr16' 1377 | ipv6->ip6_src.s6_addr16[i]= ipv6->ip6_src.s6_addr16[i] | srcaddr.s6_addr16[i]; | ^ --- libipv6.o --- tools/libipv6.c:647:35: error: 'u_int16_t' undeclared (first use in this function); did you mean 'uint16_t'? 647 | ipv6addr->s6_addr16[4]= htons(((u_int16_t)etheraddr->a[0] << 8) | etheraddr->a[1]); | ^~~~~~~~~ | uint16_t tools/libipv6.c:647:35: note: each undeclared identifier is reported only once for each function it appears in --- icmp6 --- tools/icmp6.c:108:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 108 | u_int32_t mtu, pointer; | ^~~~~~~~~ | uint32_t --- flow6 --- tools/flow6.c:78:47: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 78 | u_int16_t in_chksum(void *, void *, size_t, u_int8_t); | ^~~~~~~~ | uint8_t --- na6 --- tools/na6.c:1385:5: warning: incompatible implicit declaration of built-in function 'bcopy' 1385 | bcopy(ethernet->src.a, tllaopt->address, ETH_ALEN); | ^~~~~ --- libipv6.o --- tools/libipv6.c:647:45: error: expected ')' before 'etheraddr' 647 | ipv6addr->s6_addr16[4]= htons(((u_int16_t)etheraddr->a[0] << 8) | etheraddr->a[1]); | ~ ^~~~~~~~~ | ) tools/libipv6.c:648:10: error: 'struct in6_addr' has no member named 's6_addr16' 648 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ^~ --- frag6 --- tools/frag6.c:76:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 76 | u_int16_t in_chksum(void *, void *, size_t, u_int8_t); | ^~~~~~~~~ | uint16_t --- icmp6 --- tools/icmp6.c:109:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 109 | u_int16_t ip6length; | ^~~~~~~~~ | uint16_t --- na6 --- tools/na6.c:1400:22: error: 'struct in6_addr' has no member named 's6_addr16' 1400 | na->nd_na_target.s6_addr16[i]= 0; | ^ --- flow6 --- tools/flow6.c:80:45: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 80 | unsigned int match_ipv6(struct in6_addr *, u_int8_t *, unsigned int, struct in6_addr *); | ^~~~~~~~ | uint8_t --- na6 --- tools/na6.c:1403:22: error: 'struct in6_addr' has no member named 's6_addr16' 1403 | na->nd_na_target.s6_addr16[i]=random(); | ^ --- addr6 --- tools/addr6.c:1644:54: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 1644 | unsigned int match_ipv6(struct in6_addr *prefixlist, u_int8_t *prefixlen, unsigned int nprefix, | ^~~~~~~~ | uint8_t --- frag6 --- tools/frag6.c:76:47: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 76 | u_int16_t in_chksum(void *, void *, size_t, u_int8_t); | ^~~~~~~~ | uint8_t --- libipv6.o --- tools/libipv6.c:648:46: error: expected ')' before 'etheraddr' 648 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ~ ^~~~~~~~~ | ) --- icmp6 --- tools/icmp6.c:113:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 113 | u_int16_t targetportl, targetporth, peerportl, peerporth, auxint16; | ^~~~~~~~~ | uint16_t --- libipv6.o --- tools/libipv6.c:649:10: error: 'struct in6_addr' has no member named 's6_addr16' 649 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~ --- flow6 --- tools/flow6.c:82:49: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 82 | void sanitize_ipv6_prefix(struct in6_addr *, u_int8_t); | ^~~~~~~~ | uint8_t --- libipv6.o --- tools/libipv6.c:649:44: error: expected ')' before numeric constant 649 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~~~~~~ | ) --- na6 --- tools/na6.c:1411:22: error: 'struct in6_addr' has no member named 's6_addr16' 1411 | na->nd_na_target.s6_addr16[startrand]= na->nd_na_target.s6_addr16[startrand] \ | ^ --- frag6 --- tools/frag6.c:78:45: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 78 | unsigned int match_ipv6(struct in6_addr *, u_int8_t *, unsigned int, struct in6_addr *); | ^~~~~~~~ | uint8_t --- libipv6.o --- tools/libipv6.c:650:10: error: 'struct in6_addr' has no member named 's6_addr16' 650 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ^~ --- jumbo6 --- tools/jumbo6.c: In function 'main': tools/jumbo6.c:282:6: warning: implicit declaration of function 'sanitize_ipv6_prefix' [-Wimplicit-function-declaration] 282 | sanitize_ipv6_prefix(&srcaddr, srcpreflen); | ^~~~~~~~~~~~~~~~~~~~ --- flow6 --- tools/flow6.c:83:67: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 83 | void randomize_ipv6_addr(struct in6_addr *, struct in6_addr *, u_int8_t); | ^~~~~~~~ | uint8_t --- icmp6 --- tools/icmp6.c:114:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 114 | u_int16_t tcpurg, tcpwin, icmp6id, icmp6seq; | ^~~~~~~~~ | uint16_t --- na6 --- tools/na6.c:1411:61: error: 'struct in6_addr' has no member named 's6_addr16' 1411 | na->nd_na_target.s6_addr16[startrand]= na->nd_na_target.s6_addr16[startrand] \ | ^ --- libipv6.o --- tools/libipv6.c:650:45: error: expected ')' before 'etheraddr' 650 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ~ ^~~~~~~~~ | ) --- frag6 --- tools/frag6.c:80:49: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 80 | void sanitize_ipv6_prefix(struct in6_addr *, u_int8_t); | ^~~~~~~~ | uint8_t --- na6 --- tools/na6.c:1416:22: error: 'struct in6_addr' has no member named 's6_addr16' 1416 | na->nd_na_target.s6_addr16[i]= na->nd_na_target.s6_addr16[i] | \ | ^ --- icmp6 --- tools/icmp6.c:115:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 115 | u_int32_t tcpseq, tcpack; | ^~~~~~~~~ | uint32_t --- na6 --- tools/na6.c:1416:53: error: 'struct in6_addr' has no member named 's6_addr16' 1416 | na->nd_na_target.s6_addr16[i]= na->nd_na_target.s6_addr16[i] | \ | ^ tools/na6.c:1417:21: error: 'struct in6_addr' has no member named 's6_addr16' 1417 | targetaddr.s6_addr16[i]; | ^ tools/na6.c:1438:6: warning: incompatible implicit declaration of built-in function 'bcopy' 1438 | bcopy(linkaddr[linkaddrs].a, tllaopt->address, ETH_ALEN); | ^~~~~ --- libipv6.o --- tools/libipv6.c: At top level: tools/libipv6.c:662:54: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 662 | unsigned int match_ipv6(struct in6_addr *prefixlist, u_int8_t *prefixlen, unsigned int nprefix, | ^~~~~~~~ | uint8_t --- flow6 --- tools/flow6.c:99:25: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 99 | int predict_flow_id(u_int32_t *, unsigned int, u_int32_t *, unsigned int); | ^~~~~~~~~ | uint32_t tools/flow6.c:99:52: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 99 | int predict_flow_id(u_int32_t *, unsigned int, u_int32_t *, unsigned int); | ^~~~~~~~~ | uint32_t --- frag6 --- tools/frag6.c:81:67: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 81 | void randomize_ipv6_addr(struct in6_addr *, struct in6_addr *, u_int8_t); | ^~~~~~~~ | uint8_t tools/frag6.c:97:34: error: expected ')' before 'unsigned' 97 | int send_fragment2(u_int16_t, unsigned int, unsigned int, unsigned int, unsigned int, char *); | ^~~~~~~~~ | ) --- icmp6 --- tools/icmp6.c:116:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 116 | u_int8_t tcpflags=0, ip6hoplimit; | ^~~~~~~~ | uint8_t --- ra6 --- tools/ra6.c:1090:10: error: 'struct in6_addr' has no member named 's6_addr16' 1090 | srcaddr.s6_addr16[0]= htons(0xfe80); /* Link-local unicast prefix */ | ^ tools/ra6.c:1093:11: error: 'struct in6_addr' has no member named 's6_addr16' 1093 | srcaddr.s6_addr16[i]=0x0000; | ^ --- addr6 --- tools/addr6.c:1672:54: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 1672 | void sanitize_ipv6_prefix(struct in6_addr *ipv6addr, u_int8_t prefixlen){ | ^~~~~~~~ | uint8_t --- jumbo6 --- tools/jumbo6.c:471:50: error: 'ULONG_MAX' undeclared (first use in this function) 471 | if((ul_res = strtoul(optarg, &endptr, 0)) == ULONG_MAX){ | ^~~~~~~~~ --- flow6 --- tools/flow6.c:100:18: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 100 | int inc_sdev(u_int32_t *, unsigned int, u_int32_t *, double *); | ^~~~~~~~~ | uint32_t --- jumbo6 --- tools/jumbo6.c:62:1: note: 'ULONG_MAX' is defined in header ''; did you forget to '#include '? 61 | #include +++ |+#include 62 | tools/jumbo6.c:471:50: note: each undeclared identifier is reported only once for each function it appears in 471 | if((ul_res = strtoul(optarg, &endptr, 0)) == ULONG_MAX){ | ^~~~~~~~~ --- ra6 --- tools/ra6.c:1096:11: error: 'struct in6_addr' has no member named 's6_addr16' 1096 | srcaddr.s6_addr16[i]=random(); | ^ --- flow6 --- tools/flow6.c:100:45: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 100 | int inc_sdev(u_int32_t *, unsigned int, u_int32_t *, double *); | ^~~~~~~~~ | uint32_t --- ra6 --- tools/ra6.c:1104:10: error: 'struct in6_addr' has no member named 's6_addr16' 1104 | srcaddr.s6_addr16[0]= htons(0xfe80); /* Link-local unicast prefix */ | ^ --- flow6 --- tools/flow6.c:101:27: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 101 | void change_endianness(u_int32_t *, unsigned int); | ^~~~~~~~~ | uint32_t --- frag6 --- tools/frag6.c:100:25: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 100 | int predict_frag_id(u_int32_t *, unsigned int, u_int32_t *, unsigned int); | ^~~~~~~~~ | uint32_t --- ra6 --- tools/ra6.c:1107:11: error: 'struct in6_addr' has no member named 's6_addr16' 1107 | srcaddr.s6_addr16[i]=0x0000; | ^ --- frag6 --- tools/frag6.c:100:52: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 100 | int predict_frag_id(u_int32_t *, unsigned int, u_int32_t *, unsigned int); | ^~~~~~~~~ | uint32_t --- flow6 --- tools/flow6.c:155:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 155 | u_int16_t mask, ip6length; | ^~~~~~~~~ | uint16_t --- frag6 --- tools/frag6.c:101:18: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 101 | int inc_sdev(u_int32_t *, unsigned int, u_int32_t *, double *); | ^~~~~~~~~ | uint32_t --- flow6 --- tools/flow6.c:156:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 156 | u_int8_t hoplimit; | ^~~~~~~~ | uint8_t --- libipv6.o --- tools/libipv6.c:715:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 715 | u_int16_t in_chksum(void *ptr_ipv6, void *ptr_icmpv6, size_t len, u_int8_t proto){ | ^~~~~~~~~ | uint16_t --- frag6 --- tools/frag6.c:101:45: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 101 | int inc_sdev(u_int32_t *, unsigned int, u_int32_t *, double *); | ^~~~~~~~~ | uint32_t --- icmp6 --- tools/icmp6.c:174:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 174 | u_int16_t mask; | ^~~~~~~~~ | uint16_t --- frag6 --- tools/frag6.c:102:27: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 102 | void change_endianness(u_int32_t *, unsigned int); | ^~~~~~~~~ | uint32_t --- na6 --- tools/na6.c: At top level: --- flow6 --- tools/flow6.c:183:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 183 | u_int16_t baseport, lastport, dstport, tcpwin, addr_sig, addr_key; | ^~~~~~~~~ | uint16_t --- libipv6.o --- tools/libipv6.c:715:67: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 715 | u_int16_t in_chksum(void *ptr_ipv6, void *ptr_icmpv6, size_t len, u_int8_t proto){ | ^~~~~~~~ | uint8_t --- icmp6 --- tools/icmp6.c:175:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 175 | u_int8_t hoplimit; | ^~~~~~~~ | uint8_t --- na6 --- tools/na6.c:1603:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 1603 | u_int16_t in_chksum(void *ptr_ipv6, void *ptr_icmpv6, size_t len){ | ^~~~~~~~~ | uint16_t --- flow6 --- tools/flow6.c:184:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 184 | u_int32_t tcpseq; | ^~~~~~~~~ | uint32_t --- na6 --- tools/na6.c: In function 'in_chksum': --- icmp6 --- tools/icmp6.c:206:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 206 | u_int8_t blocksrclen[MAX_BLOCK_SRC], blockdstlen[MAX_BLOCK_DST]; | ^~~~~~~~ | uint8_t --- frag6 --- tools/frag6.c:156:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 156 | u_int16_t mask, ip6length; | ^~~~~~~~~ | uint16_t --- flow6 --- tools/flow6.c:185:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 185 | u_int8_t protocol; | ^~~~~~~~ | uint8_t --- na6 --- tools/na6.c:1608:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 1608 | u_int16_t *w; | ^~~~~~~~~ | uint16_t --- icmp6 --- tools/icmp6.c:207:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 207 | u_int8_t blocktargetlen[MAX_BLOCK_TARGET]; | ^~~~~~~~ | uint8_t --- frag6 --- tools/frag6.c:157:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 157 | u_int8_t hoplimit; | ^~~~~~~~ | uint8_t --- libipv6.o --- tools/libipv6.c: In function 'ipv6_to_ether': --- flow6 --- tools/flow6.c: In function 'main': tools/flow6.c:202:2: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 202 | u_int32_t test1[NSAMPLES], test2[NSAMPLES]; | ^~~~~~~~~ | uint32_t --- libipv6.o --- tools/libipv6.c:915:2: warning: incompatible implicit declaration of built-in function 'bcopy' 915 | bcopy( &(idata->ether.a), sllaopt->address, ETH_ALEN); | ^~~~~ tools/libipv6.c:924:2: warning: incompatible implicit declaration of built-in function 'bzero' 924 | bzero(&new_sig, sizeof(struct sigaction)); | ^~~~~ --- frag6 --- tools/frag6.c:167:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 167 | u_int32_t fsize, foffset, fid, id; | ^~~~~~~~~ | uint32_t --- icmp6 --- tools/icmp6.c:215:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 215 | u_int8_t acceptsrclen[MAX_ACCEPT_SRC], acceptdstlen[MAX_ACCEPT_DST]; | ^~~~~~~~ | uint8_t tools/icmp6.c:216:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 216 | u_int8_t accepttargetlen[MAX_ACCEPT_TARGET]; | ^~~~~~~~ | uint8_t --- jumbo6 --- tools/jumbo6.c:894:3: warning: implicit declaration of function 'randomize_ipv6_addr'; did you mean 'randomize_ether_addr'? [-Wimplicit-function-declaration] 894 | randomize_ipv6_addr(&srcaddr, &randprefix, randpreflen); | ^~~~~~~~~~~~~~~~~~~ | randomize_ether_addr --- na6 --- tools/na6.c:1609:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 1609 | u_int16_t answer = 0; | ^~~~~~~~~ | uint16_t tools/na6.c:1613:2: warning: incompatible implicit declaration of built-in function 'bzero' 1613 | bzero(&pseudohdr, sizeof(struct ipv6pseudohdr)); | ^~~~~ --- ra6 --- tools/ra6.c:1274:8: warning: implicit declaration of function 'match_ipv6' [-Wimplicit-function-declaration] 1274 | if(match_ipv6(blocksrc, blocksrclen, nblocksrc, &(pkt_ipv6->ip6_src))){ | ^~~~~~~~~~ --- frag6 --- tools/frag6.c:202:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 202 | u_int16_t addr_sig, addr_key; | ^~~~~~~~~ | uint16_t --- na6 --- tools/na6.c:1620:6: error: 'u_int16_t' undeclared (first use in this function); did you mean 'uint16_t'? 1620 | w= (u_int16_t *) &pseudohdr; | ^~~~~~~~~ | uint16_t tools/na6.c:1620:6: note: each undeclared identifier is reported only once for each function it appears in --- ra6 --- tools/ra6.c: In function 'init_packet_data': --- frag6 --- tools/frag6.c:203:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 203 | u_int32_t icmp6_sig; | ^~~~~~~~~ | uint32_t --- na6 --- tools/na6.c:1620:17: error: expected expression before ')' token 1620 | w= (u_int16_t *) &pseudohdr; | ^ tools/na6.c:1628:17: error: expected expression before ')' token 1628 | w= (u_int16_t *) ptr_icmpv6; | ^ --- libipv6.o --- tools/libipv6.c: In function 'solicited_node': tools/libipv6.c:1070:11: error: 'struct in6_addr' has no member named 's6_addr16' 1070 | solicited.s6_addr16[0]= htons(0xff02); | ^ tools/libipv6.c:1071:11: error: 'struct in6_addr' has no member named 's6_addr16' 1071 | solicited.s6_addr16[1]= 0x0000; | ^ tools/libipv6.c:1072:11: error: 'struct in6_addr' has no member named 's6_addr16' 1072 | solicited.s6_addr16[2]= 0x0000; | ^ tools/libipv6.c:1073:11: error: 'struct in6_addr' has no member named 's6_addr16' 1073 | solicited.s6_addr16[3]= 0x0000; | ^ tools/libipv6.c:1074:11: error: 'struct in6_addr' has no member named 's6_addr16' 1074 | solicited.s6_addr16[4]= 0x0000; | ^ --- flow6 --- tools/flow6.c:265:6: warning: implicit declaration of function 'sanitize_ipv6_prefix' [-Wimplicit-function-declaration] 265 | sanitize_ipv6_prefix(&srcaddr, srcpreflen); | ^~~~~~~~~~~~~~~~~~~~ --- frag6 --- tools/frag6.c: In function 'main': tools/frag6.c:226:2: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 226 | u_int32_t test1[NSAMPLES], test2[NSAMPLES]; | ^~~~~~~~~ | uint32_t --- jumbo6 --- tools/jumbo6.c: In function 'init_packet_data': tools/jumbo6.c:1156:16: error: 'u_int32_t' undeclared (first use in this function); did you mean 'uint32_t'? 1156 | jplengthptr= (u_int32_t *) ptr; | ^~~~~~~~~ | uint32_t --- ra6 --- tools/ra6.c:1411:6: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] 1411 | bzero(&fraghdr, FRAG_HDR_SIZE); | ^~~~~ tools/ra6.c:1411:6: warning: incompatible implicit declaration of built-in function 'bzero' tools/ra6.c:1458:10: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] 1458 | bcopy(linkaddr[0].a, sllaopt->address, ETH_ALEN); | ^~~~~ tools/ra6.c:1458:10: warning: incompatible implicit declaration of built-in function 'bcopy' --- icmp6 --- tools/icmp6.c: In function 'main': tools/icmp6.c:326:6: warning: implicit declaration of function 'sanitize_ipv6_prefix' [-Wimplicit-function-declaration] 326 | sanitize_ipv6_prefix(&srcaddr, srcpreflen); | ^~~~~~~~~~~~~~~~~~~~ --- libipv6.o --- tools/libipv6.c:1075:11: error: 'struct in6_addr' has no member named 's6_addr16' 1075 | solicited.s6_addr16[5]= htons(0x0001); | ^ tools/libipv6.c:1076:11: error: 'struct in6_addr' has no member named 's6_addr16' 1076 | solicited.s6_addr16[6]= htons(0xff00) | ipv6addr->s6_addr16[6]; | ^ tools/libipv6.c:1076:50: error: 'const struct in6_addr' has no member named 's6_addr16' 1076 | solicited.s6_addr16[6]= htons(0xff00) | ipv6addr->s6_addr16[6]; | ^~ tools/libipv6.c:1077:11: error: 'struct in6_addr' has no member named 's6_addr16' 1077 | solicited.s6_addr16[7]= ipv6addr->s6_addr16[7]; | ^ --- icmp6 --- tools/icmp6.c:581:50: error: 'ULONG_MAX' undeclared (first use in this function) 581 | if((ul_res = strtoul(optarg, &endptr, 0)) == ULONG_MAX){ | ^~~~~~~~~ tools/icmp6.c:62:1: note: 'ULONG_MAX' is defined in header ''; did you forget to '#include '? 61 | #include +++ |+#include 62 | tools/icmp6.c:581:50: note: each undeclared identifier is reported only once for each function it appears in 581 | if((ul_res = strtoul(optarg, &endptr, 0)) == ULONG_MAX){ | ^~~~~~~~~ --- libipv6.o --- tools/libipv6.c:1077:34: error: 'const struct in6_addr' has no member named 's6_addr16' 1077 | solicited.s6_addr16[7]= ipv6addr->s6_addr16[7]; | ^~ tools/libipv6.c: In function 'is_eq_in6_addr': --- ra6 --- tools/ra6.c: In function 'send_packet': --- jumbo6 --- tools/jumbo6.c:1156:27: error: expected expression before ')' token 1156 | jplengthptr= (u_int32_t *) ptr; | ^ --- libipv6.o --- tools/libipv6.c:1094:9: error: 'struct in6_addr' has no member named 's6_addr16' 1094 | if(ip1->s6_addr16[i] != ip2->s6_addr16[i]) | ^~ --- ra6 --- tools/ra6.c:1542:16: error: 'struct in6_addr' has no member named 's6_addr16' 1542 | ipv6->ip6_src.s6_addr16[i]= 0; | ^ --- libipv6.o --- tools/libipv6.c:1094:30: error: 'struct in6_addr' has no member named 's6_addr16' 1094 | if(ip1->s6_addr16[i] != ip2->s6_addr16[i]) | ^~ --- jumbo6 --- tools/jumbo6.c:1210:3: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] 1210 | bzero(&fraghdr, FRAG_HDR_SIZE); | ^~~~~ tools/jumbo6.c:1210:3: warning: incompatible implicit declaration of built-in function 'bzero' --- libipv6.o --- tools/libipv6.c: In function 'generate_slaac_address': --- na6 --- tools/na6.c: At top level: --- ra6 --- tools/ra6.c:1545:16: error: 'struct in6_addr' has no member named 's6_addr16' 1545 | ipv6->ip6_src.s6_addr16[i]=random(); | ^ --- libipv6.o --- tools/libipv6.c:1111:10: error: 'struct in6_addr' has no member named 's6_addr16' 1111 | ipv6addr->s6_addr16[0]= htons(0xfe80); /* Link-local unicast prefix */ | ^~ tools/libipv6.c:1114:11: error: 'struct in6_addr' has no member named 's6_addr16' 1114 | ipv6addr->s6_addr16[i]= prefix->s6_addr16[i]; | ^~ --- jumbo6 --- tools/jumbo6.c:1245:16: error: expected expression before ')' token 1245 | *(u_int32_t *)ptr = random(); | ^ --- libipv6.o --- tools/libipv6.c:1114:33: error: 'struct in6_addr' has no member named 's6_addr16' 1114 | ipv6addr->s6_addr16[i]= prefix->s6_addr16[i]; | ^~ tools/libipv6.c:1116:10: error: 'struct in6_addr' has no member named 's6_addr16' 1116 | ipv6addr->s6_addr16[4]= htons(((u_int16_t) (etheraddr->a[0] | 0x02) << 8) | etheraddr->a[1]); | ^~ --- flow6 --- tools/flow6.c:492:3: warning: implicit declaration of function 'randomize_ipv6_addr'; did you mean 'randomize_ether_addr'? [-Wimplicit-function-declaration] 492 | randomize_ipv6_addr(&srcaddr, &randprefix, randpreflen); | ^~~~~~~~~~~~~~~~~~~ | randomize_ether_addr --- frag6 --- tools/frag6.c:301:6: warning: implicit declaration of function 'sanitize_ipv6_prefix' [-Wimplicit-function-declaration] 301 | sanitize_ipv6_prefix(&srcaddr, srcpreflen); | ^~~~~~~~~~~~~~~~~~~~ --- na6 --- tools/na6.c:2016:54: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 2016 | unsigned int match_ipv6(struct in6_addr *prefixlist, u_int8_t *prefixlen, unsigned int nprefix, | ^~~~~~~~ | uint8_t --- ra6 --- tools/ra6.c:1554:16: error: 'struct in6_addr' has no member named 's6_addr16' 1554 | ipv6->ip6_src.s6_addr16[startrand]= ipv6->ip6_src.s6_addr16[startrand] & htons(mask); | ^ tools/ra6.c:1554:52: error: 'struct in6_addr' has no member named 's6_addr16' 1554 | ipv6->ip6_src.s6_addr16[startrand]= ipv6->ip6_src.s6_addr16[startrand] & htons(mask); | ^ tools/ra6.c:1559:16: error: 'struct in6_addr' has no member named 's6_addr16' 1559 | ipv6->ip6_src.s6_addr16[i]= ipv6->ip6_src.s6_addr16[i] | srcaddr.s6_addr16[i]; | ^ tools/ra6.c:1559:44: error: 'struct in6_addr' has no member named 's6_addr16' 1559 | ipv6->ip6_src.s6_addr16[i]= ipv6->ip6_src.s6_addr16[i] | srcaddr.s6_addr16[i]; | ^ --- na6 --- tools/na6.c:2068:54: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 2068 | void sanitize_ipv6_prefix(struct in6_addr *ipv6addr, u_int8_t prefixlen){ | ^~~~~~~~ | uint8_t --- ra6 --- tools/ra6.c:1559:67: error: 'struct in6_addr' has no member named 's6_addr16' 1559 | ipv6->ip6_src.s6_addr16[i]= ipv6->ip6_src.s6_addr16[i] | srcaddr.s6_addr16[i]; | ^ --- frag6 --- tools/frag6.c:502:50: error: 'ULONG_MAX' undeclared (first use in this function) 502 | if((ul_res = strtoul(optarg, &endptr, 0)) == ULONG_MAX){ | ^~~~~~~~~ tools/frag6.c:61:1: note: 'ULONG_MAX' is defined in header ''; did you forget to '#include '? 60 | #include +++ |+#include 61 | tools/frag6.c:502:50: note: each undeclared identifier is reported only once for each function it appears in 502 | if((ul_res = strtoul(optarg, &endptr, 0)) == ULONG_MAX){ | ^~~~~~~~~ --- jumbo6 --- tools/jumbo6.c:1249:23: warning: implicit declaration of function 'in_chksum'; did you mean 'rr_cksum'? [-Wimplicit-function-declaration] 1249 | icmp6->icmp6_cksum = in_chksum(v6buffer, icmp6, ptr-((unsigned char *)icmp6), IPPROTO_ICMPV6); | ^~~~~~~~~ | rr_cksum --- flow6 --- tools/flow6.c:539:14: error: 'u_int16_t' undeclared (first use in this function); did you mean 'uint16_t'? 539 | tcpwin= ((u_int16_t) random() + 1500) & (u_int16_t)0x7f00; | ^~~~~~~~~ | uint16_t tools/flow6.c:539:14: note: each undeclared identifier is reported only once for each function it appears in --- ra6 --- tools/ra6.c:1570:7: warning: incompatible implicit declaration of built-in function 'bcopy' 1570 | bcopy(ethernet->src.a, sllaopt->address, ETH_ALEN); | ^~~~~ --- flow6 --- tools/flow6.c:539:24: error: expected ')' before 'random' 539 | tcpwin= ((u_int16_t) random() + 1500) & (u_int16_t)0x7f00; | ~ ^~~~~~~ | ) --- libipv6.o --- tools/libipv6.c:1116:35: error: 'u_int16_t' undeclared (first use in this function); did you mean 'uint16_t'? 1116 | ipv6addr->s6_addr16[4]= htons(((u_int16_t) (etheraddr->a[0] | 0x02) << 8) | etheraddr->a[1]); | ^~~~~~~~~ | uint16_t tools/libipv6.c:1117:10: error: 'struct in6_addr' has no member named 's6_addr16' 1117 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ^~ --- flow6 --- tools/flow6.c:539:55: error: expected ';' before numeric constant 539 | tcpwin= ((u_int16_t) random() + 1500) & (u_int16_t)0x7f00; | ^~~~~~ | ; --- icmp6 --- tools/icmp6.c:1126:3: warning: implicit declaration of function 'randomize_ipv6_addr'; did you mean 'randomize_ether_addr'? [-Wimplicit-function-declaration] 1126 | randomize_ipv6_addr(&srcaddr, &randprefix, randpreflen); | ^~~~~~~~~~~~~~~~~~~ | randomize_ether_addr --- jumbo6 --- tools/jumbo6.c: In function 'send_packet': --- ra6 --- tools/ra6.c:1597:3: warning: incompatible implicit declaration of built-in function 'bcopy' 1597 | bcopy(linkaddr[linkaddrs].a, sllaopt->address, ETH_ALEN); | ^~~~~ --- libipv6.o --- tools/libipv6.c:1117:46: error: expected ')' before 'etheraddr' 1117 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ~ ^~~~~~~~~ | ) --- flow6 --- tools/flow6.c:617:14: error: 'struct in6_addr' has no member named 's6_addr16' 617 | srcaddr.s6_addr16[5]= addr_sig; | ^ tools/flow6.c:618:14: error: 'struct in6_addr' has no member named 's6_addr16' 618 | srcaddr.s6_addr16[7] = srcaddr.s6_addr16[6] ^ addr_key; | ^ --- jumbo6 --- tools/jumbo6.c:1293:18: error: 'u_int32_t' undeclared (first use in this function); did you mean 'uint32_t'? 1293 | fjplengthptr= (u_int32_t *) (fptr + sizeof(struct ether_header) + sizeof(struct ip6_hdr) + 3); | ^~~~~~~~~ | uint32_t --- libipv6.o --- tools/libipv6.c:1118:10: error: 'struct in6_addr' has no member named 's6_addr16' 1118 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~ --- flow6 --- tools/flow6.c:618:38: error: 'struct in6_addr' has no member named 's6_addr16' 618 | srcaddr.s6_addr16[7] = srcaddr.s6_addr16[6] ^ addr_key; | ^ --- jumbo6 --- tools/jumbo6.c:1293:29: error: expected expression before ')' token 1293 | fjplengthptr= (u_int32_t *) (fptr + sizeof(struct ether_header) + sizeof(struct ip6_hdr) + 3); | ^ --- libipv6.o --- tools/libipv6.c:1118:44: error: expected ')' before numeric constant 1118 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~~~~~~ | ) --- icmp6 --- tools/icmp6.c:1186:14: error: 'u_int16_t' undeclared (first use in this function); did you mean 'uint16_t'? 1186 | tcpwin= ((u_int16_t) random() + 1500) & (u_int16_t)0x7f00; | ^~~~~~~~~ | uint16_t --- libipv6.o --- tools/libipv6.c:1119:10: error: 'struct in6_addr' has no member named 's6_addr16' 1119 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ^~ --- flow6 --- tools/flow6.c:692:29: error: 'struct in6_addr' has no member named 's6_addr16' 692 | if(pkt_ns->nd_ns_target.s6_addr16[5] != addr_sig || \ | ^ tools/flow6.c:693:27: error: 'struct in6_addr' has no member named 's6_addr16' 693 | pkt_ns->nd_ns_target.s6_addr16[7] != (pkt_ns->nd_ns_target.s6_addr16[6] ^ addr_key)) | ^ tools/flow6.c:693:66: error: 'struct in6_addr' has no member named 's6_addr16' 693 | pkt_ns->nd_ns_target.s6_addr16[7] != (pkt_ns->nd_ns_target.s6_addr16[6] ^ addr_key)) | ^ --- frag6 --- tools/frag6.c:732:3: warning: implicit declaration of function 'randomize_ipv6_addr'; did you mean 'randomize_ether_addr'? [-Wimplicit-function-declaration] 732 | randomize_ipv6_addr(&srcaddr, &randprefix, randpreflen); | ^~~~~~~~~~~~~~~~~~~ | randomize_ether_addr --- ra6 --- tools/ra6.c:1638:31: error: 'struct in6_addr' has no member named 's6_addr16' 1638 | prefixopt->nd_opt_pi_prefix.s6_addr16[i]=random(); | ^ --- libipv6.o --- tools/libipv6.c:1119:45: error: expected ')' before 'etheraddr' 1119 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ~ ^~~~~~~~~ | ) --- icmp6 --- tools/icmp6.c:1186:24: error: expected ')' before 'random' 1186 | tcpwin= ((u_int16_t) random() + 1500) & (u_int16_t)0x7f00; | ~ ^~~~~~~ | ) --- libipv6.o --- tools/libipv6.c: In function 'get_if_addrs': tools/libipv6.c:1175:62: error: 'struct in6_addr' has no member named 's6_addr16' 1175 | if( !(idata->ip6_local_flag) && (((sockin6ptr->sin6_addr).s6_addr16[0] & htons(0xffc0)) \ | ^ --- icmp6 --- tools/icmp6.c:1186:55: error: expected ';' before numeric constant 1186 | tcpwin= ((u_int16_t) random() + 1500) & (u_int16_t)0x7f00; | ^~~~~~ | ; --- jumbo6 --- tools/jumbo6.c: At top level: --- addr6 --- tools/addr6.c: In function 'key': --- libipv6.o --- tools/libipv6.c:1188:37: error: 'struct in6_addr' has no member named 's6_addr16' 1188 | else if( ((sockin6ptr->sin6_addr).s6_addr16[0] & htons(0xffc0)) != htons(0xfe80)){ | ^ --- addr6 --- tools/addr6.c:1455:1: warning: control reaches end of non-void function [-Wreturn-type] 1455 | } | ^ --- jumbo6 --- tools/jumbo6.c:1432:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 1432 | u_int16_t in_chksum(void *ptr_ipv6, void *ptr_icmpv6, size_t len, u_int8_t proto){ | ^~~~~~~~~ | uint16_t --- ra6 --- tools/ra6.c:1645:31: error: 'struct in6_addr' has no member named 's6_addr16' 1645 | prefixopt->nd_opt_pi_prefix.s6_addr16[endrand-1]= \ | ^ --- libipv6.o --- tools/libipv6.c: In function 'is_ip6_in_address_list': --- frag6 --- tools/frag6.c:832:8: warning: implicit declaration of function 'send_fragment2'; did you mean 'send_fragment'? [-Wimplicit-function-declaration] 832 | if(send_fragment2(sizeof(struct icmp6_hdr)+minfragsize*2-overlap, id, 0, minfragsize, \ | ^~~~~~~~~~~~~~ | send_fragment --- libipv6.o --- tools/libipv6.c:1231:13: error: 'struct in6_addr' has no member named 's6_addr16' 1231 | if(target->s6_addr16[j] != (plist->prefix[i])->ip6.s6_addr16[j]) | ^~ --- flow6 --- tools/flow6.c:732:9: warning: implicit declaration of function 'in_chksum'; did you mean 'rr_cksum'? [-Wimplicit-function-declaration] 732 | if(in_chksum(pkt_ipv6, pkt_tcp, pkt_end-((unsigned char *)pkt_tcp), IPPROTO_TCP) != 0) | ^~~~~~~~~ | rr_cksum --- ra6 --- tools/ra6.c:1646:32: error: 'struct in6_addr' has no member named 's6_addr16' 1646 | prefixopt->nd_opt_pi_prefix.s6_addr16[endrand-1] & htons(mask); | ^ --- libipv6.o --- tools/libipv6.c:1231:54: error: 'struct in6_addr' has no member named 's6_addr16' 1231 | if(target->s6_addr16[j] != (plist->prefix[i])->ip6.s6_addr16[j]) | ^ --- jumbo6 --- tools/jumbo6.c:1432:67: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 1432 | u_int16_t in_chksum(void *ptr_ipv6, void *ptr_icmpv6, size_t len, u_int8_t proto){ | ^~~~~~~~ | uint8_t --- flow6 --- tools/flow6.c:771:26: error: 'struct in6_addr' has no member named 's6_addr16' 771 | if(pkt_ipv6->ip6_dst.s6_addr16[5] != addr_sig || \ | ^ tools/flow6.c:772:24: error: 'struct in6_addr' has no member named 's6_addr16' 772 | pkt_ipv6->ip6_dst.s6_addr16[7] != (pkt_ipv6->ip6_dst.s6_addr16[6] ^ addr_key)){ | ^ tools/flow6.c:772:60: error: 'struct in6_addr' has no member named 's6_addr16' 772 | pkt_ipv6->ip6_dst.s6_addr16[7] != (pkt_ipv6->ip6_dst.s6_addr16[6] ^ addr_key)){ | ^ --- libipv6.o --- tools/libipv6.c: In function 'is_ip6_in_prefix_list': --- ra6 --- tools/ra6.c:1650:31: error: 'struct in6_addr' has no member named 's6_addr16' 1650 | prefixopt->nd_opt_pi_prefix.s6_addr16[i]=0; | ^ --- libipv6.o --- tools/libipv6.c:1253:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 1253 | u_int16_t mask16; | ^~~~~~~~~ | uint16_t tools/libipv6.c:1261:13: error: 'struct in6_addr' has no member named 's6_addr16' 1261 | if(target->s6_addr16[j] != (plist->prefix[i])->ip6.s6_addr16[j]) | ^~ tools/libipv6.c:1261:54: error: 'struct in6_addr' has no member named 's6_addr16' 1261 | if(target->s6_addr16[j] != (plist->prefix[i])->ip6.s6_addr16[j]) | ^ --- flow6 --- tools/flow6.c:804:6: warning: implicit declaration of function 'predict_flow_id' [-Wimplicit-function-declaration] 804 | if(predict_flow_id(test1, ntest1, test2, ntest2) == -1){ | ^~~~~~~~~~~~~~~ --- libipv6.o --- tools/libipv6.c:1267:15: error: 'struct in6_addr' has no member named 's6_addr16' 1267 | if( (target->s6_addr16[full16] & mask16) == ((plist->prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^~ --- flow6 --- tools/flow6.c: In function 'send_fid_probe': --- libipv6.o --- tools/libipv6.c:1267:72: error: 'struct in6_addr' has no member named 's6_addr16' 1267 | if( (target->s6_addr16[full16] & mask16) == ((plist->prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^ --- flow6 --- tools/flow6.c:854:3: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] 854 | bzero(tcp, sizeof(struct tcphdr)); | ^~~~~ tools/flow6.c:854:3: warning: incompatible implicit declaration of built-in function 'bzero' --- ra6 --- tools/ra6.c:1681:30: error: 'struct in6_addr' has no member named 's6_addr16' 1681 | routeopt->nd_opt_ri_prefix.s6_addr16[i]=random(); | ^ --- flow6 --- tools/flow6.c:869:3: warning: incompatible implicit declaration of built-in function 'bzero' 869 | bzero(udp, sizeof(struct udphdr)); | ^~~~~ --- jumbo6 --- tools/jumbo6.c:1766:54: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 1766 | unsigned int match_ipv6(struct in6_addr *prefixlist, u_int8_t *prefixlen, unsigned int nprefix, | ^~~~~~~~ | uint8_t --- icmp6 --- tools/icmp6.c:1424:8: warning: implicit declaration of function 'match_ipv6' [-Wimplicit-function-declaration] 1424 | if(match_ipv6(blocksrc, blocksrclen, nblocksrc, &(pkt_ipv6->ip6_src))){ | ^~~~~~~~~~ --- libipv6.o --- tools/libipv6.c: In function 'match_ipv6_to_prefixes': tools/libipv6.c:1305:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 1305 | u_int16_t mask; | ^~~~~~~~~ | uint16_t --- ra6 --- tools/ra6.c:1688:30: error: 'struct in6_addr' has no member named 's6_addr16' 1688 | routeopt->nd_opt_ri_prefix.s6_addr16[endrand-1]= \ | ^ --- frag6 --- tools/frag6.c:1119:14: error: 'struct in6_addr' has no member named 's6_addr16' 1119 | srcaddr.s6_addr16[5]= addr_sig; | ^ --- libipv6.o --- tools/libipv6.c:1310:15: error: 'struct in6_addr' has no member named 's6_addr16' 1310 | if(ipv6addr->s6_addr16[j] != (pf->prefix[i])->ip6.s6_addr16[j]) | ^~ --- ra6 --- tools/ra6.c:1689:31: error: 'struct in6_addr' has no member named 's6_addr16' 1689 | routeopt->nd_opt_ri_prefix.s6_addr16[endrand-1] & htons(mask); | ^ --- flow6 --- tools/flow6.c: At top level: --- libipv6.o --- tools/libipv6.c:1310:53: error: 'struct in6_addr' has no member named 's6_addr16' 1310 | if(ipv6addr->s6_addr16[j] != (pf->prefix[i])->ip6.s6_addr16[j]) | ^ --- frag6 --- tools/frag6.c:1120:14: error: 'struct in6_addr' has no member named 's6_addr16' 1120 | srcaddr.s6_addr16[7] = srcaddr.s6_addr16[6] ^ addr_key; | ^ --- flow6 --- tools/flow6.c:941:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 941 | u_int16_t in_chksum(void *ptr_ipv6, void *ptr_icmpv6, size_t len, u_int8_t proto){ | ^~~~~~~~~ | uint16_t --- ra6 --- tools/ra6.c:1693:30: error: 'struct in6_addr' has no member named 's6_addr16' 1693 | routeopt->nd_opt_ri_prefix.s6_addr16[i]=0; | ^ --- libipv6.o --- tools/libipv6.c:1320:28: error: 'struct in6_addr' has no member named 's6_addr16' 1320 | if((pf->prefix[i])->ip6.s6_addr16[full16] == (ipv6addr->s6_addr16[full16] & htons(mask))) | ^ --- jumbo6 --- tools/jumbo6.c:1818:54: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 1818 | void sanitize_ipv6_prefix(struct in6_addr *ipv6addr, u_int8_t prefixlen){ | ^~~~~~~~ | uint8_t --- frag6 --- tools/frag6.c:1120:38: error: 'struct in6_addr' has no member named 's6_addr16' 1120 | srcaddr.s6_addr16[7] = srcaddr.s6_addr16[6] ^ addr_key; | ^ --- libipv6.o --- tools/libipv6.c:1320:59: error: 'struct in6_addr' has no member named 's6_addr16' 1320 | if((pf->prefix[i])->ip6.s6_addr16[full16] == (ipv6addr->s6_addr16[full16] & htons(mask))) | ^~ --- icmp6 --- tools/icmp6.c: In function 'init_packet_data': --- flow6 --- tools/flow6.c:941:67: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 941 | u_int16_t in_chksum(void *ptr_ipv6, void *ptr_icmpv6, size_t len, u_int8_t proto){ | ^~~~~~~~ | uint8_t --- icmp6 --- tools/icmp6.c:1572:3: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] 1572 | bzero(&fraghdr, FRAG_HDR_SIZE); | ^~~~~ tools/icmp6.c:1572:3: warning: incompatible implicit declaration of built-in function 'bzero' --- ra6 --- tools/ra6.c:1732:33: error: 'struct in6_addr' has no member named 's6_addr16' 1732 | dnsopt->nd_opt_rdnss_addr[i].s6_addr16[j]=random(); | ^ --- jumbo6 --- tools/jumbo6.c:1843:78: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 1843 | void randomize_ipv6_addr(struct in6_addr *ipv6addr, struct in6_addr *prefix, u_int8_t preflen){ | ^~~~~~~~ | uint8_t --- icmp6 --- tools/icmp6.c: In function 'send_packet': tools/icmp6.c:1717:6: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] 1717 | bcopy(pkt_ipv6, ptr, rhbytes); | ^~~~~ tools/icmp6.c:1717:6: warning: incompatible implicit declaration of built-in function 'bcopy' --- frag6 --- tools/frag6.c:1199:29: error: 'struct in6_addr' has no member named 's6_addr16' 1199 | if(pkt_ns->nd_ns_target.s6_addr16[5] != addr_sig || \ | ^ --- libipv6.o --- tools/libipv6.c: At top level: --- frag6 --- tools/frag6.c:1200:27: error: 'struct in6_addr' has no member named 's6_addr16' 1200 | pkt_ns->nd_ns_target.s6_addr16[7] != (pkt_ns->nd_ns_target.s6_addr16[6] ^ addr_key)) | ^ --- icmp6 --- tools/icmp6.c:1752:7: warning: incompatible implicit declaration of built-in function 'bzero' 1752 | bzero(rhtcp, sizeof(struct tcphdr)); | ^~~~~ --- frag6 --- tools/frag6.c:1200:66: error: 'struct in6_addr' has no member named 's6_addr16' 1200 | pkt_ns->nd_ns_target.s6_addr16[7] != (pkt_ns->nd_ns_target.s6_addr16[6] ^ addr_key)) | ^ --- libipv6.o --- tools/libipv6.c:1511:78: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 1511 | void randomize_ipv6_addr(struct in6_addr *ipv6addr, struct in6_addr *prefix, u_int8_t preflen){ | ^~~~~~~~ | uint8_t --- flow6 --- tools/flow6.c:1088:54: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 1088 | unsigned int match_ipv6(struct in6_addr *prefixlist, u_int8_t *prefixlen, unsigned int nprefix, | ^~~~~~~~ | uint8_t --- libipv6.o --- tools/libipv6.c:1593:54: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 1593 | void sanitize_ipv6_prefix(struct in6_addr *ipv6addr, u_int8_t prefixlen){ | ^~~~~~~~ | uint8_t --- flow6 --- tools/flow6.c:1140:54: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 1140 | void sanitize_ipv6_prefix(struct in6_addr *ipv6addr, u_int8_t prefixlen){ | ^~~~~~~~ | uint8_t tools/flow6.c:1165:78: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 1165 | void randomize_ipv6_addr(struct in6_addr *ipv6addr, struct in6_addr *prefix, u_int8_t preflen){ | ^~~~~~~~ | uint8_t --- jumbo6 --- tools/jumbo6.c: In function 'ipv6_to_ether': tools/jumbo6.c:2039:2: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] 2039 | bcopy( &(idata->ether.a), sllaopt->address, ETH_ALEN); | ^~~~~ tools/jumbo6.c:2039:2: warning: incompatible implicit declaration of built-in function 'bcopy' tools/jumbo6.c:2048:2: warning: incompatible implicit declaration of built-in function 'bzero' 2048 | bzero(&new_sig, sizeof(struct sigaction)); | ^~~~~ --- ra6 --- tools/ra6.c: At top level: tools/ra6.c:1912:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 1912 | u_int16_t in_chksum(void *ptr_ipv6, void *ptr_icmpv6, size_t len){ | ^~~~~~~~~ | uint16_t tools/ra6.c: In function 'in_chksum': --- libipv6.o --- tools/libipv6.c: In function 'src_addr_sel': --- frag6 --- tools/frag6.c:1211:92: error: 'u_int32_t' undeclared (first use in this function); did you mean 'uint32_t'? 1211 | (sizeof(struct ip6_hdr) + sizeof(struct ip6_frag) + sizeof(struct icmp6_hdr) + sizeof(u_int32_t))) | ^~~~~~~~~ | uint32_t tools/frag6.c:1244:24: error: expected expression before ')' token 1244 | if( *(u_int32_t *)((unsigned char *)pkt_icmp6+ sizeof(struct icmp6_hdr)) != icmp6_sig){ | ^ --- icmp6 --- tools/icmp6.c:1753:31: error: 'u_int16_t' undeclared (first use in this function); did you mean 'uint16_t'? 1753 | rhtcp->th_sport= htons((u_int16_t) targetport); | ^~~~~~~~~ | uint16_t --- libipv6.o --- tools/libipv6.c:1634:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 1634 | u_int16_t mask16; | ^~~~~~~~~ | uint16_t tools/libipv6.c:1644:10: error: 'struct in6_addr' has no member named 's6_addr16' 1644 | if( (dst->s6_addr16[0] & htons(0xffc0)) == htons(0xfe80)){ | ^~ --- ra6 --- tools/ra6.c:1917:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 1917 | u_int16_t *w; | ^~~~~~~~~ | uint16_t --- frag6 --- tools/frag6.c:1256:26: error: 'struct in6_addr' has no member named 's6_addr16' 1256 | if(pkt_ipv6->ip6_dst.s6_addr16[5] != addr_sig || \ | ^ --- icmp6 --- tools/icmp6.c:1753:41: error: expected ')' before 'targetport' 1753 | rhtcp->th_sport= htons((u_int16_t) targetport); | ^~~~~~~~~~~ | ) --- libipv6.o --- tools/libipv6.c:1657:13: error: 'struct in6_addr' has no member named 's6_addr16' 1657 | if( dst->s6_addr16[j] != (idata->ip6_global.prefix[i])->ip6.s6_addr16[j]) | ^~ tools/libipv6.c:1657:65: error: 'struct in6_addr' has no member named 's6_addr16' 1657 | if( dst->s6_addr16[j] != (idata->ip6_global.prefix[i])->ip6.s6_addr16[j]) | ^ --- frag6 --- tools/frag6.c:1257:24: error: 'struct in6_addr' has no member named 's6_addr16' 1257 | pkt_ipv6->ip6_dst.s6_addr16[7] != (pkt_ipv6->ip6_dst.s6_addr16[6] ^ addr_key)){ | ^ tools/frag6.c:1257:60: error: 'struct in6_addr' has no member named 's6_addr16' 1257 | pkt_ipv6->ip6_dst.s6_addr16[7] != (pkt_ipv6->ip6_dst.s6_addr16[6] ^ addr_key)){ | ^ tools/frag6.c:1263:24: error: expected expression before ')' token 1263 | if( *(u_int32_t *)((unsigned char *)pkt_icmp6+ sizeof(struct icmp6_hdr)) != icmp6_sig){ | ^ --- icmp6 --- tools/icmp6.c:1754:41: error: expected ')' before 'peerport' 1754 | rhtcp->th_dport= htons((u_int16_t) peerport); | ^~~~~~~~~ | ) --- flow6 --- tools/flow6.c: In function 'ipv6_to_ether': --- ra6 --- tools/ra6.c:1918:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 1918 | u_int16_t answer = 0; | ^~~~~~~~~ | uint16_t --- libipv6.o --- tools/libipv6.c:1663:14: error: 'struct in6_addr' has no member named 's6_addr16' 1663 | if( (dst->s6_addr16[full16] & mask16) == ((idata->ip6_global.prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^~ --- flow6 --- tools/flow6.c:1361:2: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] 1361 | bcopy( &(idata->ether.a), sllaopt->address, ETH_ALEN); | ^~~~~ tools/flow6.c:1361:2: warning: incompatible implicit declaration of built-in function 'bcopy' --- icmp6 --- tools/icmp6.c:1764:8: warning: incompatible implicit declaration of built-in function 'bcopy' 1764 | bcopy(rhbuff, ptr, rhbytes); | ^~~~~ --- addr6 --- *** [addr6] Error code 1 bmake: stopped in /home/pbulk/build/security/ipv6-toolkit/work/ipv6toolkit-v1.4.1 --- libipv6.o --- tools/libipv6.c:1663:82: error: 'struct in6_addr' has no member named 's6_addr16' 1663 | if( (dst->s6_addr16[full16] & mask16) == ((idata->ip6_global.prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^ --- ra6 --- tools/ra6.c:1922:2: warning: incompatible implicit declaration of built-in function 'bzero' 1922 | bzero(&pseudohdr, sizeof(struct ipv6pseudohdr)); | ^~~~~ --- flow6 --- tools/flow6.c:1370:2: warning: incompatible implicit declaration of built-in function 'bzero' 1370 | bzero(&new_sig, sizeof(struct sigaction)); | ^~~~~ --- icmp6 --- tools/icmp6.c:1768:8: warning: incompatible implicit declaration of built-in function 'bcopy' 1768 | bcopy(rhbuff, ptr, MIN_IPV6_HLEN+MIN_TCP_HLEN); | ^~~~~ --- libipv6.o --- tools/libipv6.c: In function 'send_neighbor_advert': tools/libipv6.c:1737:3: warning: incompatible implicit declaration of built-in function 'bcopy' 1737 | bcopy(idata->ether.a, tllaopt->address, ETH_ALEN); | ^~~~~ --- ra6 --- tools/ra6.c:1929:6: error: 'u_int16_t' undeclared (first use in this function); did you mean 'uint16_t'? 1929 | w= (u_int16_t *) &pseudohdr; | ^~~~~~~~~ | uint16_t tools/ra6.c:1929:17: error: expected expression before ')' token 1929 | w= (u_int16_t *) &pseudohdr; | ^ --- flow6 --- tools/flow6.c: In function 'solicited_node': tools/flow6.c:1516:11: error: 'struct in6_addr' has no member named 's6_addr16' 1516 | solicited.s6_addr16[0]= htons(0xff02); | ^ tools/flow6.c:1517:11: error: 'struct in6_addr' has no member named 's6_addr16' 1517 | solicited.s6_addr16[1]= 0x0000; | ^ tools/flow6.c:1518:11: error: 'struct in6_addr' has no member named 's6_addr16' 1518 | solicited.s6_addr16[2]= 0x0000; | ^ tools/flow6.c:1519:11: error: 'struct in6_addr' has no member named 's6_addr16' 1519 | solicited.s6_addr16[3]= 0x0000; | ^ tools/flow6.c:1520:11: error: 'struct in6_addr' has no member named 's6_addr16' 1520 | solicited.s6_addr16[4]= 0x0000; | ^ tools/flow6.c:1521:11: error: 'struct in6_addr' has no member named 's6_addr16' 1521 | solicited.s6_addr16[5]= htons(0x0001); | ^ tools/flow6.c:1522:11: error: 'struct in6_addr' has no member named 's6_addr16' --- frag6 --- tools/frag6.c:1296:6: warning: implicit declaration of function 'predict_frag_id' [-Wimplicit-function-declaration] 1296 | if(predict_frag_id(test1, ntest1, test2, ntest2) == -1){ | ^~~~~~~~~~~~~~~ --- icmp6 --- tools/icmp6.c:1773:11: error: 'u_int32_t' undeclared (first use in this function); did you mean 'uint32_t'? 1773 | *(u_int32_t *)ptr = random(); | ^~~~~~~~~ | uint32_t tools/icmp6.c:1773:22: error: expected expression before ')' token 1773 | *(u_int32_t *)ptr = random(); | ^ --- jumbo6 --- tools/jumbo6.c: In function 'solicited_node': tools/jumbo6.c:2194:11: error: 'struct in6_addr' has no member named 's6_addr16' 2194 | solicited.s6_addr16[0]= htons(0xff02); | ^ tools/jumbo6.c:2195:11: error: 'struct in6_addr' has no member named 's6_addr16' 2195 | solicited.s6_addr16[1]= 0x0000; | ^ tools/jumbo6.c:2196:11: error: 'struct in6_addr' has no member named 's6_addr16' 2196 | solicited.s6_addr16[2]= 0x0000; | ^ tools/jumbo6.c:2197:11: error: 'struct in6_addr' has no member named 's6_addr16' 2197 | solicited.s6_addr16[3]= 0x0000; | ^ tools/jumbo6.c:2198:11: error: 'struct in6_addr' has no member named 's6_addr16' 2198 | solicited.s6_addr16[4]= 0x0000; | ^ tools/jumbo6.c:2199:11: error: 'struct in6_addr' has no member named 's6_addr16' 2199 | solicited.s6_addr16[5]= htons(0x0001); | ^ tools/jumbo6.c:2200:11: error: 'struct in6_addr' has no member named 's6_addr16' --- flow6 --- 1522 | solicited.s6_addr16[6]= htons(0xff00) | ipv6addr->s6_addr16[6]; | ^ tools/flow6.c:1522:50: error: 'const struct in6_addr' has no member named 's6_addr16' 1522 | solicited.s6_addr16[6]= htons(0xff00) | ipv6addr->s6_addr16[6]; | ^~ tools/flow6.c:1523:11: error: 'struct in6_addr' has no member named 's6_addr16' 1523 | solicited.s6_addr16[7]= ipv6addr->s6_addr16[7]; | ^ tools/flow6.c:1523:34: error: 'const struct in6_addr' has no member named 's6_addr16' 1523 | solicited.s6_addr16[7]= ipv6addr->s6_addr16[7]; | ^~ tools/flow6.c: In function 'init_iface_data': tools/flow6.c:1556:2: warning: incompatible implicit declaration of built-in function 'bzero' 1556 | bzero(idata, sizeof(struct iface_data)); | ^~~~~ --- jumbo6 --- 2200 | solicited.s6_addr16[6]= htons(0xff00) | ipv6addr->s6_addr16[6]; | ^ tools/jumbo6.c:2200:50: error: 'const struct in6_addr' has no member named 's6_addr16' 2200 | solicited.s6_addr16[6]= htons(0xff00) | ipv6addr->s6_addr16[6]; | ^~ tools/jumbo6.c:2201:11: error: 'struct in6_addr' has no member named 's6_addr16' 2201 | solicited.s6_addr16[7]= ipv6addr->s6_addr16[7]; | ^ tools/jumbo6.c:2201:34: error: 'const struct in6_addr' has no member named 's6_addr16' 2201 | solicited.s6_addr16[7]= ipv6addr->s6_addr16[7]; | ^~ --- icmp6 --- tools/icmp6.c:1789:8: warning: incompatible implicit declaration of built-in function 'bcopy' 1789 | bcopy(rhbuff, ptr, rhbytes); | ^~~~~ tools/icmp6.c:1793:8: warning: incompatible implicit declaration of built-in function 'bcopy' 1793 | bcopy(rhbuff, ptr, MIN_IPV6_HLEN+MIN_UDP_HLEN); | ^~~~~ tools/icmp6.c:1797:22: error: expected expression before ')' token 1797 | *(u_int32_t *)ptr = random(); | ^ tools/icmp6.c:1813:8: warning: incompatible implicit declaration of built-in function 'bcopy' 1813 | bcopy(rhbuff, ptr, rhbytes); | ^~~~~ --- ra6 --- tools/ra6.c:1937:17: error: expected expression before ')' token 1937 | w= (u_int16_t *) ptr_icmpv6; | ^ --- icmp6 --- tools/icmp6.c:1817:8: warning: incompatible implicit declaration of built-in function 'bcopy' 1817 | bcopy(rhbuff, ptr, MIN_IPV6_HLEN+MIN_ICMP6_HLEN); | ^~~~~ tools/icmp6.c:1821:22: error: expected expression before ')' token 1821 | *(u_int32_t *)ptr = random(); | ^ --- jumbo6 --- tools/jumbo6.c: In function 'init_iface_data': tools/jumbo6.c:2234:2: warning: incompatible implicit declaration of built-in function 'bzero' 2234 | bzero(idata, sizeof(struct iface_data)); | ^~~~~ --- libipv6.o --- tools/libipv6.c: In function 'init_filters': --- icmp6 --- tools/icmp6.c:1831:25: warning: implicit declaration of function 'in_chksum'; did you mean 'rr_cksum'? [-Wimplicit-function-declaration] 1831 | icmp6->icmp6_cksum = in_chksum(v6buffer, icmp6, ptr-((unsigned char *)icmp6), IPPROTO_ICMPV6); | ^~~~~~~~~ | rr_cksum --- libipv6.o --- tools/libipv6.c:1937:43: error: 'u_int8_t' undeclared (first use in this function); did you mean 'uint8_t'? 1937 | if( (filters->blocksrclen= malloc(sizeof(u_int8_t) * MAX_BLOCK_SRC)) == NULL) | ^~~~~~~~ | uint8_t --- na6 --- *** [na6] Error code 1 bmake: stopped in /home/pbulk/build/security/ipv6-toolkit/work/ipv6toolkit-v1.4.1 --- flow6 --- tools/flow6.c: In function 'find_ipv6_router_full': tools/flow6.c:1715:2: warning: incompatible implicit declaration of built-in function 'bcopy' 1715 | bcopy( &(idata->ether.a), sllaopt->address, ETH_ALEN); | ^~~~~ tools/flow6.c:1724:2: warning: incompatible implicit declaration of built-in function 'bzero' 1724 | bzero(&new_sig, sizeof(struct sigaction)); | ^~~~~ --- icmp6 --- tools/icmp6.c: At top level: tools/icmp6.c:2004:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 2004 | u_int16_t in_chksum(void *ptr_ipv6, void *ptr_icmpv6, size_t len, u_int8_t proto){ | ^~~~~~~~~ | uint16_t --- jumbo6 --- tools/jumbo6.c: In function 'find_ipv6_router_full': tools/jumbo6.c:2393:2: warning: incompatible implicit declaration of built-in function 'bcopy' 2393 | bcopy( &(idata->ether.a), sllaopt->address, ETH_ALEN); | ^~~~~ tools/jumbo6.c:2402:2: warning: incompatible implicit declaration of built-in function 'bzero' 2402 | bzero(&new_sig, sizeof(struct sigaction)); | ^~~~~ --- frag6 --- tools/frag6.c: In function 'print_icmp6_echo': tools/frag6.c:1536:36: error: 'u_int32_t' undeclared (first use in this function); did you mean 'uint32_t'? 1536 | printf(" (RTT: %u second%s)\n", (u_int32_t)rtt, (rtt>1)?"s":""); | ^~~~~~~~~ | uint32_t --- flow6 --- tools/flow6.c:1810:26: error: 'struct in6_addr' has no member named 's6_addr16' 1810 | if( (pkt_ipv6->ip6_src.s6_addr16[0] & htons(0xffc0)) != htons(0xfe80)) | ^ --- icmp6 --- tools/icmp6.c:2004:67: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 2004 | u_int16_t in_chksum(void *ptr_ipv6, void *ptr_icmpv6, size_t len, u_int8_t proto){ | ^~~~~~~~ | uint8_t --- frag6 --- tools/frag6.c:1536:46: error: expected ')' before 'rtt' 1536 | printf(" (RTT: %u second%s)\n", (u_int32_t)rtt, (rtt>1)?"s":""); | ^~~ | ) tools/frag6.c: In function 'print_icmp6_timed': tools/frag6.c:1552:2: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 1552 | u_int8_t pkt_prev_nh; | ^~~~~~~~ | uint8_t tools/frag6.c:1563:40: error: invalid use of undefined type 'struct ip6_ext' 1563 | ( (unsigned char *)pkt_ext + (pkt_ext->ip6e_len * 8 + 1)) < pkt_end){ | ^~ --- ra6 --- tools/ra6.c: At top level: --- frag6 --- tools/frag6.c:1568:23: error: invalid use of undefined type 'struct ip6_ext' 1568 | pkt_prev_nh= pkt_ext->ip6e_nxt; | ^~ tools/frag6.c:1569:69: error: invalid use of undefined type 'struct ip6_ext' 1569 | pkt_ext= (struct ip6_ext *) ( (unsigned char *)pkt_ext + ((pkt_ext->ip6e_len + 1) * 8)); | ^~ --- jumbo6 --- tools/jumbo6.c:2488:26: error: 'struct in6_addr' has no member named 's6_addr16' 2488 | if( (pkt_ipv6->ip6_src.s6_addr16[0] & htons(0xffc0)) != htons(0xfe80)) | ^ --- ra6 --- tools/ra6.c:2374:54: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 2374 | unsigned int match_ipv6(struct in6_addr *prefixlist, u_int8_t *prefixlen, unsigned int nprefix, | ^~~~~~~~ | uint8_t --- flow6 --- tools/flow6.c: In function 'is_eq_in6_addr': tools/flow6.c:1962:9: error: 'struct in6_addr' has no member named 's6_addr16' 1962 | if(ip1->s6_addr16[i] != ip2->s6_addr16[i]) | ^~ tools/flow6.c:1962:30: error: 'struct in6_addr' has no member named 's6_addr16' 1962 | if(ip1->s6_addr16[i] != ip2->s6_addr16[i]) | ^~ tools/flow6.c: In function 'ether_to_ipv6_linklocal': --- frag6 --- tools/frag6.c:1612:8: error: 'u_int32_t' undeclared (first use in this function); did you mean 'uint32_t'? 1612 | if(*(u_int32_t *)(pkt_ptr+sizeof(time_t)) != ((*(u_int32_t *)pkt_ptr) ^ 0xabcdabcd)){ | ^~~~~~~~~ | uint32_t --- flow6 --- tools/flow6.c:1977:10: error: 'struct in6_addr' has no member named 's6_addr16' 1977 | ipv6addr->s6_addr16[0]= htons(0xfe80); /* Link-local unicast prefix */ | ^~ --- ra6 --- tools/ra6.c:2426:54: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 2426 | void sanitize_ipv6_prefix(struct in6_addr *ipv6addr, u_int8_t prefixlen){ | ^~~~~~~~ | uint8_t --- flow6 --- tools/flow6.c:1980:11: error: 'struct in6_addr' has no member named 's6_addr16' 1980 | ipv6addr->s6_addr16[i]=0x0000; | ^~ --- frag6 --- tools/frag6.c:1612:19: error: expected expression before ')' token 1612 | if(*(u_int32_t *)(pkt_ptr+sizeof(time_t)) != ((*(u_int32_t *)pkt_ptr) ^ 0xabcdabcd)){ | ^ tools/frag6.c:1612:63: error: expected expression before ')' token 1612 | if(*(u_int32_t *)(pkt_ptr+sizeof(time_t)) != ((*(u_int32_t *)pkt_ptr) ^ 0xabcdabcd)){ | ^ --- flow6 --- tools/flow6.c:1982:10: error: 'struct in6_addr' has no member named 's6_addr16' 1982 | ipv6addr->s6_addr16[4]= htons(((u_int16_t)etheraddr->a[0] << 8) | etheraddr->a[1]); | ^~ --- libipv6.o --- tools/libipv6.c: In function 'src_addr_sel': tools/libipv6.c:1673:1: warning: control reaches end of non-void function [-Wreturn-type] 1673 | } | ^ --- jumbo6 --- tools/jumbo6.c: In function 'is_eq_in6_addr': tools/jumbo6.c:2637:9: error: 'struct in6_addr' has no member named 's6_addr16' 2637 | if(ip1->s6_addr16[i] != ip2->s6_addr16[i]) | ^~ tools/jumbo6.c:2637:30: error: 'struct in6_addr' has no member named 's6_addr16' 2637 | if(ip1->s6_addr16[i] != ip2->s6_addr16[i]) | ^~ tools/jumbo6.c: In function 'ether_to_ipv6_linklocal': --- flow6 --- tools/flow6.c:1982:35: error: 'u_int16_t' undeclared (first use in this function); did you mean 'uint16_t'? 1982 | ipv6addr->s6_addr16[4]= htons(((u_int16_t)etheraddr->a[0] << 8) | etheraddr->a[1]); | ^~~~~~~~~ | uint16_t --- frag6 --- tools/frag6.c: In function 'process_icmp6_timed': --- icmp6 --- tools/icmp6.c:2504:54: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 2504 | unsigned int match_ipv6(struct in6_addr *prefixlist, u_int8_t *prefixlen, unsigned int nprefix, | ^~~~~~~~ | uint8_t --- frag6 --- tools/frag6.c:1758:2: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 1758 | u_int8_t pkt_prev_nh; | ^~~~~~~~ | uint8_t tools/frag6.c:1768:40: error: invalid use of undefined type 'struct ip6_ext' 1768 | ( (unsigned char *)pkt_ext + (pkt_ext->ip6e_len * 8 + 1)) < pkt_end){ | ^~ tools/frag6.c:1773:23: error: invalid use of undefined type 'struct ip6_ext' 1773 | pkt_prev_nh= pkt_ext->ip6e_nxt; | ^~ tools/frag6.c:1774:69: error: invalid use of undefined type 'struct ip6_ext' 1774 | pkt_ext= (struct ip6_ext *) ( (unsigned char *)pkt_ext + ((pkt_ext->ip6e_len + 1) * 8)); | ^~ --- jumbo6 --- tools/jumbo6.c:2652:10: error: 'struct in6_addr' has no member named 's6_addr16' 2652 | ipv6addr->s6_addr16[0]= htons(0xfe80); /* Link-local unicast prefix */ | ^~ --- frag6 --- tools/frag6.c: At top level: --- jumbo6 --- tools/jumbo6.c:2655:11: error: 'struct in6_addr' has no member named 's6_addr16' 2655 | ipv6addr->s6_addr16[i]=0x0000; | ^~ --- frag6 --- tools/frag6.c:1863:20: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 1863 | int send_fragment2(u_int16_t ip6len, unsigned int id, unsigned int offset, unsigned int fsize, unsigned int order, \ | ^~~~~~~~~ | uint16_t --- jumbo6 --- tools/jumbo6.c:2657:10: error: 'struct in6_addr' has no member named 's6_addr16' 2657 | ipv6addr->s6_addr16[4]= htons(((u_int16_t)etheraddr->a[0] << 8) | etheraddr->a[1]); | ^~ --- icmp6 --- tools/icmp6.c:2556:54: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 2556 | void sanitize_ipv6_prefix(struct in6_addr *ipv6addr, u_int8_t prefixlen){ | ^~~~~~~~ | uint8_t --- frag6 --- tools/frag6.c: In function 'send_fragment': tools/frag6.c:2074:2: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] 2074 | bzero(ptr, FRAG_HDR_SIZE); | ^~~~~ tools/frag6.c:2074:2: warning: incompatible implicit declaration of built-in function 'bzero' --- icmp6 --- tools/icmp6.c:2581:78: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 2581 | void randomize_ipv6_addr(struct in6_addr *ipv6addr, struct in6_addr *prefix, u_int8_t preflen){ | ^~~~~~~~ | uint8_t --- flow6 --- tools/flow6.c:1982:45: error: expected ')' before 'etheraddr' 1982 | ipv6addr->s6_addr16[4]= htons(((u_int16_t)etheraddr->a[0] << 8) | etheraddr->a[1]); | ~ ^~~~~~~~~ | ) tools/flow6.c:1983:10: error: 'struct in6_addr' has no member named 's6_addr16' 1983 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ^~ --- jumbo6 --- tools/jumbo6.c:2657:35: error: 'u_int16_t' undeclared (first use in this function); did you mean 'uint16_t'? 2657 | ipv6addr->s6_addr16[4]= htons(((u_int16_t)etheraddr->a[0] << 8) | etheraddr->a[1]); | ^~~~~~~~~ | uint16_t --- frag6 --- tools/frag6.c:2139:50: error: 'u_int32_t' undeclared (first use in this function); did you mean 'uint32_t'? 2139 | if(tstamp_f && fsize >= (sizeof(time_t)+sizeof(u_int32_t))){ | ^~~~~~~~~ | uint32_t tools/frag6.c:2151:17: error: expected expression before ')' token 2151 | *(u_int32_t *)ptr= (u_int32_t)tstamp ^ 0xabcdabcd; | ^ tools/frag6.c:2162:17: error: expected expression before ')' token 2162 | *(u_int32_t *)ptr = random(); | ^ --- flow6 --- tools/flow6.c:1983:46: error: expected ')' before 'etheraddr' 1983 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ~ ^~~~~~~~~ | ) tools/flow6.c:1984:10: error: 'struct in6_addr' has no member named 's6_addr16' 1984 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~ --- frag6 --- tools/frag6.c:2167:24: warning: implicit declaration of function 'in_chksum'; did you mean 'rr_cksum'? [-Wimplicit-function-declaration] 2167 | icmp6->icmp6_cksum = in_chksum(v6buffer, icmp6, ptr-((unsigned char *)icmp6), IPPROTO_ICMPV6); | ^~~~~~~~~ | rr_cksum --- icmp6 --- tools/icmp6.c: In function 'ipv6_to_ether': --- flow6 --- tools/flow6.c:1984:44: error: expected ')' before numeric constant 1984 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~~~~~~ | ) --- jumbo6 --- tools/jumbo6.c:2657:45: error: expected ')' before 'etheraddr' 2657 | ipv6addr->s6_addr16[4]= htons(((u_int16_t)etheraddr->a[0] << 8) | etheraddr->a[1]); | ~ ^~~~~~~~~ | ) --- frag6 --- tools/frag6.c:2182:17: error: expected expression before ')' token 2182 | *(u_int32_t *)ptr= (u_int32_t)tstamp ^ 0xabcdabcd; | ^ --- flow6 --- tools/flow6.c:1985:10: error: 'struct in6_addr' has no member named 's6_addr16' 1985 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ^~ --- jumbo6 --- tools/jumbo6.c:2658:10: error: 'struct in6_addr' has no member named 's6_addr16' 2658 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ^~ --- icmp6 --- tools/icmp6.c:2777:2: warning: incompatible implicit declaration of built-in function 'bcopy' 2777 | bcopy( &(idata->ether.a), sllaopt->address, ETH_ALEN); | ^~~~~ --- frag6 --- tools/frag6.c:2202:17: error: expected expression before ')' token 2202 | *(u_int32_t *)ptr = random(); | ^ --- libipv6.o --- *** [libipv6.o] Error code 1 bmake: stopped in /home/pbulk/build/security/ipv6-toolkit/work/ipv6toolkit-v1.4.1 --- frag6 --- tools/frag6.c: In function 'send_fid_probe': --- flow6 --- tools/flow6.c:1985:45: error: expected ')' before 'etheraddr' 1985 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ~ ^~~~~~~~~ | ) --- frag6 --- tools/frag6.c:2261:2: warning: incompatible implicit declaration of built-in function 'bzero' 2261 | bzero(frag, sizeof(struct ip6_frag)); | ^~~~~ --- icmp6 --- tools/icmp6.c:2786:2: warning: incompatible implicit declaration of built-in function 'bzero' 2786 | bzero(&new_sig, sizeof(struct sigaction)); | ^~~~~ --- jumbo6 --- tools/jumbo6.c:2658:46: error: expected ')' before 'etheraddr' 2658 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ~ ^~~~~~~~~ | ) --- flow6 --- tools/flow6.c: In function 'get_if_addrs': tools/flow6.c:2056:62: error: 'struct in6_addr' has no member named 's6_addr16' 2056 | if( !(idata->ip6_local_flag) && (((sockin6ptr->sin6_addr).s6_addr16[0] & htons(0xffc0)) \ | ^ tools/flow6.c:2069:37: error: 'struct in6_addr' has no member named 's6_addr16' 2069 | else if( ((sockin6ptr->sin6_addr).s6_addr16[0] & htons(0xffc0)) != htons(0xfe80)){ | ^ --- jumbo6 --- tools/jumbo6.c:2659:10: error: 'struct in6_addr' has no member named 's6_addr16' 2659 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~ --- frag6 --- tools/frag6.c:2277:4: error: 'u_int32_t' undeclared (first use in this function); did you mean 'uint32_t'? 2277 | *(u_int32_t *)ptr= icmp6_sig; | ^~~~~~~~~ | uint32_t tools/frag6.c:2277:15: error: expected expression before ')' token 2277 | *(u_int32_t *)ptr= icmp6_sig; | ^ --- jumbo6 --- tools/jumbo6.c:2659:44: error: expected ')' before numeric constant 2659 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~~~~~~ | ) --- frag6 --- tools/frag6.c:2281:16: error: expected expression before ')' token 2281 | *(u_int32_t *)ptr= random(); | ^ --- jumbo6 --- tools/jumbo6.c:2660:10: error: 'struct in6_addr' has no member named 's6_addr16' 2660 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ^~ --- flow6 --- tools/flow6.c: In function 'is_ip6_in_prefix_list': tools/flow6.c:2109:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 2109 | u_int16_t mask16; | ^~~~~~~~~ | uint16_t --- frag6 --- tools/frag6.c: At top level: --- flow6 --- tools/flow6.c:2117:13: error: 'struct in6_addr' has no member named 's6_addr16' 2117 | if(target->s6_addr16[j] != (plist->prefix[i])->ip6.s6_addr16[j]) | ^~ tools/flow6.c:2117:54: error: 'struct in6_addr' has no member named 's6_addr16' 2117 | if(target->s6_addr16[j] != (plist->prefix[i])->ip6.s6_addr16[j]) | ^ tools/flow6.c:2123:15: error: 'struct in6_addr' has no member named 's6_addr16' 2123 | if( (target->s6_addr16[full16] & mask16) == ((plist->prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^~ tools/flow6.c:2123:72: error: 'struct in6_addr' has no member named 's6_addr16' 2123 | if( (target->s6_addr16[full16] & mask16) == ((plist->prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^ --- frag6 --- tools/frag6.c:2412:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 2412 | u_int16_t in_chksum(void *ptr_ipv6, void *ptr_icmpv6, size_t len, u_int8_t proto){ | ^~~~~~~~~ | uint16_t tools/frag6.c:2412:67: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 2412 | u_int16_t in_chksum(void *ptr_ipv6, void *ptr_icmpv6, size_t len, u_int8_t proto){ | ^~~~~~~~ | uint8_t --- jumbo6 --- tools/jumbo6.c:2660:45: error: expected ')' before 'etheraddr' 2660 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ~ ^~~~~~~~~ | ) tools/jumbo6.c: In function 'get_if_addrs': tools/jumbo6.c:2731:62: error: 'struct in6_addr' has no member named 's6_addr16' 2731 | if( !(idata->ip6_local_flag) && (((sockin6ptr->sin6_addr).s6_addr16[0] & htons(0xffc0)) \ | ^ tools/jumbo6.c:2744:37: error: 'struct in6_addr' has no member named 's6_addr16' 2744 | else if( ((sockin6ptr->sin6_addr).s6_addr16[0] & htons(0xffc0)) != htons(0xfe80)){ | ^ --- flow6 --- tools/flow6.c: In function 'match_ipv6_to_prefixes': --- ra6 --- *** [ra6] Error code 1 bmake: stopped in /home/pbulk/build/security/ipv6-toolkit/work/ipv6toolkit-v1.4.1 --- flow6 --- tools/flow6.c:2140:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 2140 | u_int16_t mask; | ^~~~~~~~~ | uint16_t tools/flow6.c:2145:15: error: 'struct in6_addr' has no member named 's6_addr16' 2145 | if(ipv6addr->s6_addr16[j] != (pf->prefix[i])->ip6.s6_addr16[j]) | ^~ tools/flow6.c:2145:53: error: 'struct in6_addr' has no member named 's6_addr16' 2145 | if(ipv6addr->s6_addr16[j] != (pf->prefix[i])->ip6.s6_addr16[j]) | ^ tools/flow6.c:2155:28: error: 'struct in6_addr' has no member named 's6_addr16' 2155 | if((pf->prefix[i])->ip6.s6_addr16[full16] == (ipv6addr->s6_addr16[full16] & htons(mask))) | ^ --- jumbo6 --- tools/jumbo6.c: In function 'is_ip6_in_prefix_list': --- icmp6 --- tools/icmp6.c: In function 'solicited_node': --- flow6 --- tools/flow6.c:2155:59: error: 'struct in6_addr' has no member named 's6_addr16' 2155 | if((pf->prefix[i])->ip6.s6_addr16[full16] == (ipv6addr->s6_addr16[full16] & htons(mask))) | ^~ tools/flow6.c: In function 'generate_slaac_address': --- icmp6 --- tools/icmp6.c:2932:11: error: 'struct in6_addr' has no member named 's6_addr16' 2932 | solicited.s6_addr16[0]= htons(0xff02); | ^ --- jumbo6 --- tools/jumbo6.c:2784:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 2784 | u_int16_t mask16; | ^~~~~~~~~ | uint16_t --- flow6 --- tools/flow6.c:2173:10: error: 'struct in6_addr' has no member named 's6_addr16' 2173 | ipv6addr->s6_addr16[0]= htons(0xfe80); /* Link-local unicast prefix */ | ^~ --- jumbo6 --- tools/jumbo6.c:2792:13: error: 'struct in6_addr' has no member named 's6_addr16' 2792 | if(target->s6_addr16[j] != (plist->prefix[i])->ip6.s6_addr16[j]) | ^~ --- flow6 --- tools/flow6.c:2176:11: error: 'struct in6_addr' has no member named 's6_addr16' 2176 | ipv6addr->s6_addr16[i]= prefix->s6_addr16[i]; | ^~ --- icmp6 --- tools/icmp6.c:2933:11: error: 'struct in6_addr' has no member named 's6_addr16' 2933 | solicited.s6_addr16[1]= 0x0000; | ^ --- flow6 --- tools/flow6.c:2176:33: error: 'struct in6_addr' has no member named 's6_addr16' 2176 | ipv6addr->s6_addr16[i]= prefix->s6_addr16[i]; | ^~ --- jumbo6 --- tools/jumbo6.c:2792:54: error: 'struct in6_addr' has no member named 's6_addr16' 2792 | if(target->s6_addr16[j] != (plist->prefix[i])->ip6.s6_addr16[j]) | ^ --- flow6 --- tools/flow6.c:2178:10: error: 'struct in6_addr' has no member named 's6_addr16' 2178 | ipv6addr->s6_addr16[4]= htons(((u_int16_t) (etheraddr->a[0] | 0x02) << 8) | etheraddr->a[1]); | ^~ --- icmp6 --- tools/icmp6.c:2934:11: error: 'struct in6_addr' has no member named 's6_addr16' 2934 | solicited.s6_addr16[2]= 0x0000; | ^ --- jumbo6 --- tools/jumbo6.c:2798:15: error: 'struct in6_addr' has no member named 's6_addr16' 2798 | if( (target->s6_addr16[full16] & mask16) == ((plist->prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^~ tools/jumbo6.c:2798:72: error: 'struct in6_addr' has no member named 's6_addr16' 2798 | if( (target->s6_addr16[full16] & mask16) == ((plist->prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^ --- frag6 --- tools/frag6.c:2568:54: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 2568 | unsigned int match_ipv6(struct in6_addr *prefixlist, u_int8_t *prefixlen, unsigned int nprefix, | ^~~~~~~~ | uint8_t --- icmp6 --- tools/icmp6.c:2935:11: error: 'struct in6_addr' has no member named 's6_addr16' 2935 | solicited.s6_addr16[3]= 0x0000; | ^ --- jumbo6 --- tools/jumbo6.c: In function 'match_ipv6_to_prefixes': --- flow6 --- tools/flow6.c:2178:35: error: 'u_int16_t' undeclared (first use in this function); did you mean 'uint16_t'? 2178 | ipv6addr->s6_addr16[4]= htons(((u_int16_t) (etheraddr->a[0] | 0x02) << 8) | etheraddr->a[1]); | ^~~~~~~~~ | uint16_t tools/flow6.c:2179:10: error: 'struct in6_addr' has no member named 's6_addr16' 2179 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ^~ --- jumbo6 --- tools/jumbo6.c:2815:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 2815 | u_int16_t mask; | ^~~~~~~~~ | uint16_t tools/jumbo6.c:2820:15: error: 'struct in6_addr' has no member named 's6_addr16' 2820 | if(ipv6addr->s6_addr16[j] != (pf->prefix[i])->ip6.s6_addr16[j]) | ^~ --- icmp6 --- tools/icmp6.c:2936:11: error: 'struct in6_addr' has no member named 's6_addr16' 2936 | solicited.s6_addr16[4]= 0x0000; | ^ --- frag6 --- tools/frag6.c:2620:54: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 2620 | void sanitize_ipv6_prefix(struct in6_addr *ipv6addr, u_int8_t prefixlen){ | ^~~~~~~~ | uint8_t --- jumbo6 --- tools/jumbo6.c:2820:53: error: 'struct in6_addr' has no member named 's6_addr16' 2820 | if(ipv6addr->s6_addr16[j] != (pf->prefix[i])->ip6.s6_addr16[j]) | ^ --- flow6 --- tools/flow6.c:2179:46: error: expected ')' before 'etheraddr' 2179 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ~ ^~~~~~~~~ | ) --- icmp6 --- tools/icmp6.c:2937:11: error: 'struct in6_addr' has no member named 's6_addr16' 2937 | solicited.s6_addr16[5]= htons(0x0001); | ^ --- jumbo6 --- tools/jumbo6.c:2830:28: error: 'struct in6_addr' has no member named 's6_addr16' 2830 | if((pf->prefix[i])->ip6.s6_addr16[full16] == (ipv6addr->s6_addr16[full16] & htons(mask))) | ^ --- flow6 --- tools/flow6.c:2180:10: error: 'struct in6_addr' has no member named 's6_addr16' 2180 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~ --- jumbo6 --- tools/jumbo6.c:2830:59: error: 'struct in6_addr' has no member named 's6_addr16' 2830 | if((pf->prefix[i])->ip6.s6_addr16[full16] == (ipv6addr->s6_addr16[full16] & htons(mask))) | ^~ tools/jumbo6.c: In function 'generate_slaac_address': tools/jumbo6.c:2848:10: error: 'struct in6_addr' has no member named 's6_addr16' 2848 | ipv6addr->s6_addr16[0]= htons(0xfe80); /* Link-local unicast prefix */ | ^~ tools/jumbo6.c:2851:11: error: 'struct in6_addr' has no member named 's6_addr16' 2851 | ipv6addr->s6_addr16[i]= prefix->s6_addr16[i]; | ^~ --- icmp6 --- tools/icmp6.c:2938:11: error: 'struct in6_addr' has no member named 's6_addr16' 2938 | solicited.s6_addr16[6]= htons(0xff00) | ipv6addr->s6_addr16[6]; | ^ --- flow6 --- tools/flow6.c:2180:44: error: expected ')' before numeric constant 2180 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~~~~~~ | ) tools/flow6.c:2181:10: error: 'struct in6_addr' has no member named 's6_addr16' 2181 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ^~ --- frag6 --- tools/frag6.c:2645:78: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 2645 | void randomize_ipv6_addr(struct in6_addr *ipv6addr, struct in6_addr *prefix, u_int8_t preflen){ | ^~~~~~~~ | uint8_t --- jumbo6 --- tools/jumbo6.c:2851:33: error: 'struct in6_addr' has no member named 's6_addr16' 2851 | ipv6addr->s6_addr16[i]= prefix->s6_addr16[i]; | ^~ tools/jumbo6.c:2853:10: error: 'struct in6_addr' has no member named 's6_addr16' 2853 | ipv6addr->s6_addr16[4]= htons(((u_int16_t) (etheraddr->a[0] | 0x02) << 8) | etheraddr->a[1]); | ^~ --- icmp6 --- tools/icmp6.c:2938:50: error: 'const struct in6_addr' has no member named 's6_addr16' 2938 | solicited.s6_addr16[6]= htons(0xff00) | ipv6addr->s6_addr16[6]; | ^~ tools/icmp6.c:2939:11: error: 'struct in6_addr' has no member named 's6_addr16' 2939 | solicited.s6_addr16[7]= ipv6addr->s6_addr16[7]; | ^ tools/icmp6.c:2939:34: error: 'const struct in6_addr' has no member named 's6_addr16' 2939 | solicited.s6_addr16[7]= ipv6addr->s6_addr16[7]; | ^~ --- flow6 --- tools/flow6.c:2181:45: error: expected ')' before 'etheraddr' 2181 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ~ ^~~~~~~~~ | ) --- jumbo6 --- tools/jumbo6.c:2853:35: error: 'u_int16_t' undeclared (first use in this function); did you mean 'uint16_t'? 2853 | ipv6addr->s6_addr16[4]= htons(((u_int16_t) (etheraddr->a[0] | 0x02) << 8) | etheraddr->a[1]); | ^~~~~~~~~ | uint16_t --- flow6 --- tools/flow6.c: In function 'src_addr_sel': --- jumbo6 --- tools/jumbo6.c:2854:10: error: 'struct in6_addr' has no member named 's6_addr16' 2854 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ^~ --- frag6 --- tools/frag6.c: In function 'ipv6_to_ether': --- flow6 --- tools/flow6.c:2193:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 2193 | u_int16_t mask16; | ^~~~~~~~~ | uint16_t tools/flow6.c:2203:10: error: 'struct in6_addr' has no member named 's6_addr16' 2203 | if( (dst->s6_addr16[0] & htons(0xffc0)) == htons(0xfe80)){ | ^~ --- frag6 --- tools/frag6.c:2841:2: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] 2841 | bcopy( &(idata->ether.a), sllaopt->address, ETH_ALEN); | ^~~~~ tools/frag6.c:2841:2: warning: incompatible implicit declaration of built-in function 'bcopy' --- flow6 --- tools/flow6.c:2216:13: error: 'struct in6_addr' has no member named 's6_addr16' 2216 | if( dst->s6_addr16[j] != (idata->ip6_global.prefix[i])->ip6.s6_addr16[j]) | ^~ --- frag6 --- tools/frag6.c:2850:2: warning: incompatible implicit declaration of built-in function 'bzero' 2850 | bzero(&new_sig, sizeof(struct sigaction)); | ^~~~~ --- flow6 --- tools/flow6.c:2216:65: error: 'struct in6_addr' has no member named 's6_addr16' 2216 | if( dst->s6_addr16[j] != (idata->ip6_global.prefix[i])->ip6.s6_addr16[j]) | ^ tools/flow6.c:2222:14: error: 'struct in6_addr' has no member named 's6_addr16' 2222 | if( (dst->s6_addr16[full16] & mask16) == ((idata->ip6_global.prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^~ --- jumbo6 --- tools/jumbo6.c:2854:46: error: expected ')' before 'etheraddr' 2854 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ~ ^~~~~~~~~ | ) --- flow6 --- tools/flow6.c:2222:82: error: 'struct in6_addr' has no member named 's6_addr16' 2222 | if( (dst->s6_addr16[full16] & mask16) == ((idata->ip6_global.prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^ --- jumbo6 --- tools/jumbo6.c:2855:10: error: 'struct in6_addr' has no member named 's6_addr16' 2855 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~ --- flow6 --- tools/flow6.c: In function 'send_neighbor_advert': tools/flow6.c:2297:3: warning: incompatible implicit declaration of built-in function 'bcopy' 2297 | bcopy(idata->ether.a, tllaopt->address, ETH_ALEN); | ^~~~~ --- jumbo6 --- tools/jumbo6.c:2855:44: error: expected ')' before numeric constant 2855 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~~~~~~ | ) --- icmp6 --- tools/icmp6.c: In function 'find_ipv6_router_full': tools/icmp6.c:3104:2: warning: incompatible implicit declaration of built-in function 'bcopy' 3104 | bcopy( &(idata->ether.a), sllaopt->address, ETH_ALEN); | ^~~~~ --- frag6 --- tools/frag6.c: In function 'solicited_node': --- jumbo6 --- tools/jumbo6.c:2856:10: error: 'struct in6_addr' has no member named 's6_addr16' 2856 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ^~ --- icmp6 --- tools/icmp6.c:3113:2: warning: incompatible implicit declaration of built-in function 'bzero' 3113 | bzero(&new_sig, sizeof(struct sigaction)); | ^~~~~ --- frag6 --- tools/frag6.c:2996:11: error: 'struct in6_addr' has no member named 's6_addr16' 2996 | solicited.s6_addr16[0]= htons(0xff02); | ^ tools/frag6.c:2997:11: error: 'struct in6_addr' has no member named 's6_addr16' 2997 | solicited.s6_addr16[1]= 0x0000; | ^ tools/frag6.c:2998:11: error: 'struct in6_addr' has no member named 's6_addr16' 2998 | solicited.s6_addr16[2]= 0x0000; | ^ tools/frag6.c:2999:11: error: 'struct in6_addr' has no member named 's6_addr16' 2999 | solicited.s6_addr16[3]= 0x0000; | ^ --- flow6 --- tools/flow6.c: At top level: --- frag6 --- tools/frag6.c:3000:11: error: 'struct in6_addr' has no member named 's6_addr16' 3000 | solicited.s6_addr16[4]= 0x0000; | ^ --- jumbo6 --- tools/jumbo6.c:2856:45: error: expected ')' before 'etheraddr' 2856 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ~ ^~~~~~~~~ | ) --- flow6 --- tools/flow6.c:2407:21: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 2407 | int predict_flow_id(u_int32_t *s1, unsigned int n1, u_int32_t *s2, unsigned int n2){ | ^~~~~~~~~ | uint32_t --- frag6 --- tools/frag6.c:3001:11: error: 'struct in6_addr' has no member named 's6_addr16' 3001 | solicited.s6_addr16[5]= htons(0x0001); | ^ tools/frag6.c:3002:11: error: 'struct in6_addr' has no member named 's6_addr16' 3002 | solicited.s6_addr16[6]= htons(0xff00) | ipv6addr->s6_addr16[6]; | ^ --- jumbo6 --- tools/jumbo6.c: In function 'src_addr_sel': --- icmp6 --- tools/icmp6.c:3199:26: error: 'struct in6_addr' has no member named 's6_addr16' 3199 | if( (pkt_ipv6->ip6_src.s6_addr16[0] & htons(0xffc0)) != htons(0xfe80)) | ^ --- frag6 --- tools/frag6.c:3002:50: error: 'const struct in6_addr' has no member named 's6_addr16' 3002 | solicited.s6_addr16[6]= htons(0xff00) | ipv6addr->s6_addr16[6]; | ^~ --- flow6 --- tools/flow6.c:2407:53: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 2407 | int predict_flow_id(u_int32_t *s1, unsigned int n1, u_int32_t *s2, unsigned int n2){ | ^~~~~~~~~ | uint32_t --- jumbo6 --- tools/jumbo6.c:2868:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 2868 | u_int16_t mask16; | ^~~~~~~~~ | uint16_t --- frag6 --- tools/frag6.c:3003:11: error: 'struct in6_addr' has no member named 's6_addr16' 3003 | solicited.s6_addr16[7]= ipv6addr->s6_addr16[7]; | ^ --- jumbo6 --- tools/jumbo6.c:2878:10: error: 'struct in6_addr' has no member named 's6_addr16' 2878 | if( (dst->s6_addr16[0] & htons(0xffc0)) == htons(0xfe80)){ | ^~ --- frag6 --- tools/frag6.c:3003:34: error: 'const struct in6_addr' has no member named 's6_addr16' 3003 | solicited.s6_addr16[7]= ipv6addr->s6_addr16[7]; | ^~ tools/frag6.c: In function 'init_iface_data': --- jumbo6 --- tools/jumbo6.c:2891:13: error: 'struct in6_addr' has no member named 's6_addr16' 2891 | if( dst->s6_addr16[j] != (idata->ip6_global.prefix[i])->ip6.s6_addr16[j]) | ^~ --- flow6 --- tools/flow6.c:2465:14: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 2465 | int inc_sdev(u_int32_t *s, unsigned int n, u_int32_t *diff_avg, double *diff_sdev){ | ^~~~~~~~~ | uint32_t --- jumbo6 --- tools/jumbo6.c:2891:65: error: 'struct in6_addr' has no member named 's6_addr16' 2891 | if( dst->s6_addr16[j] != (idata->ip6_global.prefix[i])->ip6.s6_addr16[j]) | ^ --- frag6 --- tools/frag6.c:3036:2: warning: incompatible implicit declaration of built-in function 'bzero' 3036 | bzero(idata, sizeof(struct iface_data)); | ^~~~~ --- flow6 --- tools/flow6.c:2465:44: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 2465 | int inc_sdev(u_int32_t *s, unsigned int n, u_int32_t *diff_avg, double *diff_sdev){ | ^~~~~~~~~ | uint32_t --- jumbo6 --- tools/jumbo6.c:2897:14: error: 'struct in6_addr' has no member named 's6_addr16' 2897 | if( (dst->s6_addr16[full16] & mask16) == ((idata->ip6_global.prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^~ --- icmp6 --- tools/icmp6.c: In function 'send_neighbor_advert': --- jumbo6 --- tools/jumbo6.c:2897:82: error: 'struct in6_addr' has no member named 's6_addr16' 2897 | if( (dst->s6_addr16[full16] & mask16) == ((idata->ip6_global.prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^ --- flow6 --- tools/flow6.c:2533:24: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 2533 | void change_endianness(u_int32_t *s, unsigned int n){ | ^~~~~~~~~ | uint32_t --- icmp6 --- tools/icmp6.c:3353:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 3353 | u_int16_t mask16; | ^~~~~~~~~ | uint16_t --- jumbo6 --- tools/jumbo6.c: In function 'send_neighbor_advert': tools/jumbo6.c:2966:3: warning: incompatible implicit declaration of built-in function 'bcopy' 2966 | bcopy(idata->ether.a, tllaopt->address, ETH_ALEN); | ^~~~~ --- flow6 --- tools/flow6.c: In function 'send_neighbor_solicit': --- icmp6 --- tools/icmp6.c:3388:3: warning: incompatible implicit declaration of built-in function 'bcopy' 3388 | bcopy(idata->ether.a, tllaopt->address, ETH_ALEN); | ^~~~~ --- flow6 --- tools/flow6.c:2613:2: warning: incompatible implicit declaration of built-in function 'bcopy' 2613 | bcopy( &(idata->ether.a), sllaopt->address, ETH_ALEN); | ^~~~~ --- frag6 --- tools/frag6.c: In function 'find_ipv6_router_full': tools/frag6.c:3195:2: warning: incompatible implicit declaration of built-in function 'bcopy' 3195 | bcopy( &(idata->ether.a), sllaopt->address, ETH_ALEN); | ^~~~~ --- icmp6 --- tools/icmp6.c:3464:22: error: 'struct in6_addr' has no member named 's6_addr16' 3464 | if( pkt_ipv6addr->s6_addr16[j] != (idata->ip6_global.prefix[i])->ip6.s6_addr16[j]) | ^~ --- frag6 --- tools/frag6.c:3204:2: warning: incompatible implicit declaration of built-in function 'bzero' 3204 | bzero(&new_sig, sizeof(struct sigaction)); | ^~~~~ --- icmp6 --- tools/icmp6.c:3464:74: error: 'struct in6_addr' has no member named 's6_addr16' 3464 | if( pkt_ipv6addr->s6_addr16[j] != (idata->ip6_global.prefix[i])->ip6.s6_addr16[j]) | ^ tools/icmp6.c:3470:23: error: 'struct in6_addr' has no member named 's6_addr16' 3470 | if( (pkt_ipv6addr->s6_addr16[full16] & mask16) == ((idata->ip6_global.prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^~ tools/icmp6.c:3470:91: error: 'struct in6_addr' has no member named 's6_addr16' 3470 | if( (pkt_ipv6addr->s6_addr16[full16] & mask16) == ((idata->ip6_global.prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^ --- frag6 --- tools/frag6.c:3290:26: error: 'struct in6_addr' has no member named 's6_addr16' 3290 | if( (pkt_ipv6->ip6_src.s6_addr16[0] & htons(0xffc0)) != htons(0xfe80)) | ^ tools/frag6.c: In function 'is_eq_in6_addr': tools/frag6.c:3442:9: error: 'struct in6_addr' has no member named 's6_addr16' 3442 | if(ip1->s6_addr16[i] != ip2->s6_addr16[i]) | ^~ tools/frag6.c:3442:30: error: 'struct in6_addr' has no member named 's6_addr16' 3442 | if(ip1->s6_addr16[i] != ip2->s6_addr16[i]) | ^~ tools/frag6.c: In function 'ether_to_ipv6_linklocal': --- icmp6 --- tools/icmp6.c: In function 'is_eq_in6_addr': --- frag6 --- tools/frag6.c:3457:10: error: 'struct in6_addr' has no member named 's6_addr16' 3457 | ipv6addr->s6_addr16[0]= htons(0xfe80); /* Link-local unicast prefix */ | ^~ --- icmp6 --- tools/icmp6.c:3600:9: error: 'struct in6_addr' has no member named 's6_addr16' 3600 | if(ip1->s6_addr16[i] != ip2->s6_addr16[i]) | ^~ --- frag6 --- tools/frag6.c:3460:11: error: 'struct in6_addr' has no member named 's6_addr16' 3460 | ipv6addr->s6_addr16[i]=0x0000; | ^~ --- icmp6 --- tools/icmp6.c:3600:30: error: 'struct in6_addr' has no member named 's6_addr16' 3600 | if(ip1->s6_addr16[i] != ip2->s6_addr16[i]) | ^~ tools/icmp6.c: In function 'ether_to_ipv6_linklocal': --- frag6 --- tools/frag6.c:3462:10: error: 'struct in6_addr' has no member named 's6_addr16' 3462 | ipv6addr->s6_addr16[4]= htons(((u_int16_t)etheraddr->a[0] << 8) | etheraddr->a[1]); | ^~ --- icmp6 --- tools/icmp6.c:3615:10: error: 'struct in6_addr' has no member named 's6_addr16' 3615 | ipv6addr->s6_addr16[0]= htons(0xfe80); /* Link-local unicast prefix */ | ^~ tools/icmp6.c:3618:11: error: 'struct in6_addr' has no member named 's6_addr16' 3618 | ipv6addr->s6_addr16[i]=0x0000; | ^~ --- flow6 --- tools/flow6.c: In function 'src_addr_sel': tools/flow6.c:2232:1: warning: control reaches end of non-void function [-Wreturn-type] 2232 | } | ^ --- icmp6 --- tools/icmp6.c:3620:10: error: 'struct in6_addr' has no member named 's6_addr16' 3620 | ipv6addr->s6_addr16[4]= htons(((u_int16_t)etheraddr->a[0] << 8) | etheraddr->a[1]); | ^~ --- frag6 --- tools/frag6.c:3462:35: error: 'u_int16_t' undeclared (first use in this function); did you mean 'uint16_t'? 3462 | ipv6addr->s6_addr16[4]= htons(((u_int16_t)etheraddr->a[0] << 8) | etheraddr->a[1]); | ^~~~~~~~~ | uint16_t --- icmp6 --- tools/icmp6.c:3620:35: error: 'u_int16_t' undeclared (first use in this function); did you mean 'uint16_t'? 3620 | ipv6addr->s6_addr16[4]= htons(((u_int16_t)etheraddr->a[0] << 8) | etheraddr->a[1]); | ^~~~~~~~~ | uint16_t --- frag6 --- tools/frag6.c:3462:45: error: expected ')' before 'etheraddr' 3462 | ipv6addr->s6_addr16[4]= htons(((u_int16_t)etheraddr->a[0] << 8) | etheraddr->a[1]); | ~ ^~~~~~~~~ | ) tools/frag6.c:3463:10: error: 'struct in6_addr' has no member named 's6_addr16' 3463 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ^~ --- jumbo6 --- tools/jumbo6.c: In function 'src_addr_sel': --- icmp6 --- tools/icmp6.c:3620:45: error: expected ')' before 'etheraddr' 3620 | ipv6addr->s6_addr16[4]= htons(((u_int16_t)etheraddr->a[0] << 8) | etheraddr->a[1]); | ~ ^~~~~~~~~ | ) --- jumbo6 --- tools/jumbo6.c:2907:1: warning: control reaches end of non-void function [-Wreturn-type] 2907 | } | ^ --- icmp6 --- tools/icmp6.c:3621:10: error: 'struct in6_addr' has no member named 's6_addr16' 3621 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ^~ --- frag6 --- tools/frag6.c:3463:46: error: expected ')' before 'etheraddr' 3463 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ~ ^~~~~~~~~ | ) tools/frag6.c:3464:10: error: 'struct in6_addr' has no member named 's6_addr16' 3464 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~ --- icmp6 --- tools/icmp6.c:3621:46: error: expected ')' before 'etheraddr' 3621 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ~ ^~~~~~~~~ | ) --- frag6 --- tools/frag6.c:3464:44: error: expected ')' before numeric constant 3464 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~~~~~~ | ) --- icmp6 --- tools/icmp6.c:3622:10: error: 'struct in6_addr' has no member named 's6_addr16' 3622 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~ --- frag6 --- tools/frag6.c:3465:10: error: 'struct in6_addr' has no member named 's6_addr16' 3465 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ^~ --- icmp6 --- tools/icmp6.c:3622:44: error: expected ')' before numeric constant 3622 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~~~~~~ | ) tools/icmp6.c:3623:10: error: 'struct in6_addr' has no member named 's6_addr16' 3623 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ^~ --- frag6 --- tools/frag6.c:3465:45: error: expected ')' before 'etheraddr' 3465 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ~ ^~~~~~~~~ | ) --- icmp6 --- tools/icmp6.c:3623:45: error: expected ')' before 'etheraddr' 3623 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ~ ^~~~~~~~~ | ) --- frag6 --- tools/frag6.c: In function 'get_if_addrs': --- icmp6 --- tools/icmp6.c: In function 'match_ipv6_to_prefixes': --- frag6 --- tools/frag6.c:3536:62: error: 'struct in6_addr' has no member named 's6_addr16' 3536 | if( !(idata->ip6_local_flag) && (((sockin6ptr->sin6_addr).s6_addr16[0] & htons(0xffc0)) \ | ^ --- icmp6 --- tools/icmp6.c:3650:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 3650 | u_int16_t mask; | ^~~~~~~~~ | uint16_t --- frag6 --- tools/frag6.c:3549:37: error: 'struct in6_addr' has no member named 's6_addr16' 3549 | else if( ((sockin6ptr->sin6_addr).s6_addr16[0] & htons(0xffc0)) != htons(0xfe80)){ | ^ --- icmp6 --- tools/icmp6.c:3655:15: error: 'struct in6_addr' has no member named 's6_addr16' 3655 | if(ipv6addr->s6_addr16[j] != (pf->prefix[i])->ip6.s6_addr16[j]) | ^~ --- flow6 --- *** [flow6] Error code 1 bmake: stopped in /home/pbulk/build/security/ipv6-toolkit/work/ipv6toolkit-v1.4.1 --- icmp6 --- tools/icmp6.c:3655:53: error: 'struct in6_addr' has no member named 's6_addr16' 3655 | if(ipv6addr->s6_addr16[j] != (pf->prefix[i])->ip6.s6_addr16[j]) | ^ --- jumbo6 --- *** [jumbo6] Error code 1 bmake: stopped in /home/pbulk/build/security/ipv6-toolkit/work/ipv6toolkit-v1.4.1 --- frag6 --- tools/frag6.c: In function 'is_ip6_in_prefix_list': tools/frag6.c:3590:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 3590 | u_int16_t mask16; | ^~~~~~~~~ | uint16_t tools/frag6.c:3598:13: error: 'struct in6_addr' has no member named 's6_addr16' 3598 | if(target->s6_addr16[j] != (plist->prefix[i])->ip6.s6_addr16[j]) | ^~ tools/frag6.c:3598:54: error: 'struct in6_addr' has no member named 's6_addr16' 3598 | if(target->s6_addr16[j] != (plist->prefix[i])->ip6.s6_addr16[j]) | ^ tools/frag6.c:3604:15: error: 'struct in6_addr' has no member named 's6_addr16' 3604 | if( (target->s6_addr16[full16] & mask16) == ((plist->prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^~ tools/frag6.c:3604:72: error: 'struct in6_addr' has no member named 's6_addr16' 3604 | if( (target->s6_addr16[full16] & mask16) == ((plist->prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^ tools/frag6.c: In function 'match_ipv6_to_prefixes': tools/frag6.c:3621:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 3621 | u_int16_t mask; | ^~~~~~~~~ | uint16_t tools/frag6.c:3626:15: error: 'struct in6_addr' has no member named 's6_addr16' 3626 | if(ipv6addr->s6_addr16[j] != (pf->prefix[i])->ip6.s6_addr16[j]) | ^~ tools/frag6.c:3626:53: error: 'struct in6_addr' has no member named 's6_addr16' 3626 | if(ipv6addr->s6_addr16[j] != (pf->prefix[i])->ip6.s6_addr16[j]) | ^ tools/frag6.c:3636:28: error: 'struct in6_addr' has no member named 's6_addr16' 3636 | if((pf->prefix[i])->ip6.s6_addr16[full16] == (ipv6addr->s6_addr16[full16] & htons(mask))) | ^ tools/frag6.c:3636:59: error: 'struct in6_addr' has no member named 's6_addr16' 3636 | if((pf->prefix[i])->ip6.s6_addr16[full16] == (ipv6addr->s6_addr16[full16] & htons(mask))) | ^~ tools/frag6.c: In function 'generate_slaac_address': tools/frag6.c:3654:10: error: 'struct in6_addr' has no member named 's6_addr16' 3654 | ipv6addr->s6_addr16[0]= htons(0xfe80); /* Link-local unicast prefix */ | ^~ tools/frag6.c:3657:11: error: 'struct in6_addr' has no member named 's6_addr16' 3657 | ipv6addr->s6_addr16[i]= prefix->s6_addr16[i]; | ^~ tools/frag6.c:3657:33: error: 'struct in6_addr' has no member named 's6_addr16' 3657 | ipv6addr->s6_addr16[i]= prefix->s6_addr16[i]; | ^~ tools/frag6.c:3659:10: error: 'struct in6_addr' has no member named 's6_addr16' 3659 | ipv6addr->s6_addr16[4]= htons(((u_int16_t) (etheraddr->a[0] | 0x02) << 8) | etheraddr->a[1]); | ^~ tools/frag6.c:3659:35: error: 'u_int16_t' undeclared (first use in this function); did you mean 'uint16_t'? 3659 | ipv6addr->s6_addr16[4]= htons(((u_int16_t) (etheraddr->a[0] | 0x02) << 8) | etheraddr->a[1]); | ^~~~~~~~~ | uint16_t tools/frag6.c:3660:10: error: 'struct in6_addr' has no member named 's6_addr16' 3660 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ^~ tools/frag6.c:3660:46: error: expected ')' before 'etheraddr' 3660 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ~ ^~~~~~~~~ | ) tools/frag6.c:3661:10: error: 'struct in6_addr' has no member named 's6_addr16' 3661 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~ tools/frag6.c:3661:44: error: expected ')' before numeric constant 3661 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~~~~~~ | ) tools/frag6.c:3662:10: error: 'struct in6_addr' has no member named 's6_addr16' 3662 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ^~ tools/frag6.c:3662:45: error: expected ')' before 'etheraddr' 3662 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ~ ^~~~~~~~~ | ) tools/frag6.c: In function 'src_addr_sel': tools/frag6.c:3674:2: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'? 3674 | u_int16_t mask16; | ^~~~~~~~~ | uint16_t tools/frag6.c:3684:10: error: 'struct in6_addr' has no member named 's6_addr16' 3684 | if( (dst->s6_addr16[0] & htons(0xffc0)) == htons(0xfe80)){ | ^~ --- icmp6 --- tools/icmp6.c:3665:28: error: 'struct in6_addr' has no member named 's6_addr16' 3665 | if((pf->prefix[i])->ip6.s6_addr16[full16] == (ipv6addr->s6_addr16[full16] & htons(mask))) | ^ tools/icmp6.c:3665:59: error: 'struct in6_addr' has no member named 's6_addr16' 3665 | if((pf->prefix[i])->ip6.s6_addr16[full16] == (ipv6addr->s6_addr16[full16] & htons(mask))) | ^~ tools/icmp6.c: In function 'get_if_addrs': --- frag6 --- tools/frag6.c:3697:13: error: 'struct in6_addr' has no member named 's6_addr16' 3697 | if( dst->s6_addr16[j] != (idata->ip6_global.prefix[i])->ip6.s6_addr16[j]) | ^~ tools/frag6.c:3697:65: error: 'struct in6_addr' has no member named 's6_addr16' 3697 | if( dst->s6_addr16[j] != (idata->ip6_global.prefix[i])->ip6.s6_addr16[j]) | ^ --- icmp6 --- tools/icmp6.c:3726:62: error: 'struct in6_addr' has no member named 's6_addr16' 3726 | if( !(idata->ip6_local_flag) && (((sockin6ptr->sin6_addr).s6_addr16[0] & htons(0xffc0)) \ | ^ --- frag6 --- tools/frag6.c:3703:14: error: 'struct in6_addr' has no member named 's6_addr16' 3703 | if( (dst->s6_addr16[full16] & mask16) == ((idata->ip6_global.prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^~ tools/frag6.c:3703:82: error: 'struct in6_addr' has no member named 's6_addr16' 3703 | if( (dst->s6_addr16[full16] & mask16) == ((idata->ip6_global.prefix[i])->ip6.s6_addr16[full16] & mask16)) | ^ tools/frag6.c: In function 'send_neighbor_advert': tools/frag6.c:3772:3: warning: incompatible implicit declaration of built-in function 'bcopy' 3772 | bcopy(idata->ether.a, tllaopt->address, ETH_ALEN); | ^~~~~ --- icmp6 --- tools/icmp6.c:3739:37: error: 'struct in6_addr' has no member named 's6_addr16' 3739 | else if( ((sockin6ptr->sin6_addr).s6_addr16[0] & htons(0xffc0)) != htons(0xfe80)){ | ^ --- frag6 --- tools/frag6.c: In function 'valid_icmp6_response': --- icmp6 --- tools/icmp6.c: In function 'generate_slaac_address': --- frag6 --- tools/frag6.c:3892:2: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 3892 | u_int8_t pkt_prev_nh; | ^~~~~~~~ | uint8_t --- icmp6 --- tools/icmp6.c:3779:10: error: 'struct in6_addr' has no member named 's6_addr16' 3779 | ipv6addr->s6_addr16[0]= htons(0xfe80); /* Link-local unicast prefix */ | ^~ tools/icmp6.c:3782:11: error: 'struct in6_addr' has no member named 's6_addr16' 3782 | ipv6addr->s6_addr16[i]= prefix->s6_addr16[i]; | ^~ tools/icmp6.c:3782:33: error: 'struct in6_addr' has no member named 's6_addr16' 3782 | ipv6addr->s6_addr16[i]= prefix->s6_addr16[i]; | ^~ tools/icmp6.c:3784:10: error: 'struct in6_addr' has no member named 's6_addr16' 3784 | ipv6addr->s6_addr16[4]= htons(((u_int16_t) (etheraddr->a[0] | 0x02) << 8) | etheraddr->a[1]); | ^~ --- frag6 --- tools/frag6.c:3932:11: error: 'u_int32_t' undeclared (first use in this function); did you mean 'uint32_t'? 3932 | if( *(u_int32_t *) pkt_ptr != (*(u_int32_t *) (pkt_ptr+sizeof(u_int32_t)) ^ 0xabcdabcd)){ | ^~~~~~~~~ | uint32_t tools/frag6.c:3932:22: error: expected expression before ')' token 3932 | if( *(u_int32_t *) pkt_ptr != (*(u_int32_t *) (pkt_ptr+sizeof(u_int32_t)) ^ 0xabcdabcd)){ | ^ tools/frag6.c:3959:42: error: invalid use of undefined type 'struct ip6_ext' 3959 | ( (unsigned char *)pkt_ext + (pkt_ext->ip6e_len * 8 + 1)) < pkt_end){ | ^~ tools/frag6.c:3964:25: error: invalid use of undefined type 'struct ip6_ext' 3964 | pkt_prev_nh= pkt_ext->ip6e_nxt; | ^~ --- icmp6 --- tools/icmp6.c:3784:35: error: 'u_int16_t' undeclared (first use in this function); did you mean 'uint16_t'? 3784 | ipv6addr->s6_addr16[4]= htons(((u_int16_t) (etheraddr->a[0] | 0x02) << 8) | etheraddr->a[1]); | ^~~~~~~~~ | uint16_t tools/icmp6.c:3785:10: error: 'struct in6_addr' has no member named 's6_addr16' 3785 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ^~ --- frag6 --- tools/frag6.c:3965:71: error: invalid use of undefined type 'struct ip6_ext' 3965 | pkt_ext= (struct ip6_ext *) ( (unsigned char *)pkt_ext + ((pkt_ext->ip6e_len + 1) * 8)); | ^~ tools/frag6.c:3998:23: error: expected expression before ')' token 3998 | if( *(u_int32_t *) pkt_ptr != (*(u_int32_t *) (pkt_ptr+sizeof(u_int32_t)) ^ 0xabcdabcd)){ | ^ --- icmp6 --- tools/icmp6.c:3785:46: error: expected ')' before 'etheraddr' 3785 | ipv6addr->s6_addr16[5]= htons( ((u_int16_t)etheraddr->a[2] << 8) | 0xff); | ~ ^~~~~~~~~ | ) tools/icmp6.c:3786:10: error: 'struct in6_addr' has no member named 's6_addr16' 3786 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~ --- frag6 --- tools/frag6.c:3891:28: warning: variable 'pkt_ptr' set but not used [-Wunused-but-set-variable] 3891 | unsigned char *pkt_end, *pkt_ptr; | ^~~~~~~ tools/frag6.c: In function 'valid_icmp6_response2': tools/frag6.c:4056:2: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'? 4056 | u_int8_t pkt_prev_nh; | ^~~~~~~~ | uint8_t tools/frag6.c:4108:42: error: invalid use of undefined type 'struct ip6_ext' 4108 | ( (unsigned char *)pkt_ext + (pkt_ext->ip6e_len * 8 + 1)) < pkt_end){ | ^~ tools/frag6.c:4113:25: error: invalid use of undefined type 'struct ip6_ext' 4113 | pkt_prev_nh= pkt_ext->ip6e_nxt; | ^~ tools/frag6.c:4114:71: error: invalid use of undefined type 'struct ip6_ext' 4114 | pkt_ext= (struct ip6_ext *) ( (unsigned char *)pkt_ext + ((pkt_ext->ip6e_len + 1) * 8)); | ^~ --- icmp6 --- tools/icmp6.c:3786:44: error: expected ')' before numeric constant 3786 | ipv6addr->s6_addr16[6]= htons((u_int16_t) 0xfe00 | etheraddr->a[3]); | ^~~~~~~ | ) tools/icmp6.c:3787:10: error: 'struct in6_addr' has no member named 's6_addr16' 3787 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ^~ --- frag6 --- tools/frag6.c: At top level: tools/frag6.c:4209:21: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 4209 | int predict_frag_id(u_int32_t *s1, unsigned int n1, u_int32_t *s2, unsigned int n2){ | ^~~~~~~~~ | uint32_t tools/frag6.c:4209:53: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 4209 | int predict_frag_id(u_int32_t *s1, unsigned int n1, u_int32_t *s2, unsigned int n2){ | ^~~~~~~~~ | uint32_t tools/frag6.c:4252:14: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 4252 | int inc_sdev(u_int32_t *s, unsigned int n, u_int32_t *diff_avg, double *diff_sdev){ | ^~~~~~~~~ | uint32_t --- icmp6 --- tools/icmp6.c:3787:45: error: expected ')' before 'etheraddr' 3787 | ipv6addr->s6_addr16[7]= htons(((u_int16_t)etheraddr->a[4] << 8) | etheraddr->a[5]); | ~ ^~~~~~~~~ | ) tools/icmp6.c: In function 'init_iface_data': --- frag6 --- tools/frag6.c:4252:44: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 4252 | int inc_sdev(u_int32_t *s, unsigned int n, u_int32_t *diff_avg, double *diff_sdev){ | ^~~~~~~~~ | uint32_t tools/frag6.c:4320:24: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'? 4320 | void change_endianness(u_int32_t *s, unsigned int n){ | ^~~~~~~~~ | uint32_t tools/frag6.c: In function 'send_neighbor_solicit': --- icmp6 --- tools/icmp6.c:3798:2: warning: incompatible implicit declaration of built-in function 'bzero' 3798 | bzero(idata, sizeof(struct iface_data)); | ^~~~~ --- frag6 --- tools/frag6.c:4400:2: warning: incompatible implicit declaration of built-in function 'bcopy' 4400 | bcopy( &(idata->ether.a), sllaopt->address, ETH_ALEN); | ^~~~~ --- icmp6 --- *** [icmp6] Error code 1 bmake: stopped in /home/pbulk/build/security/ipv6-toolkit/work/ipv6toolkit-v1.4.1 --- frag6 --- tools/frag6.c: In function 'src_addr_sel': tools/frag6.c:3713:1: warning: control reaches end of non-void function [-Wreturn-type] 3713 | } | ^ *** [frag6] Error code 1 bmake: stopped in /home/pbulk/build/security/ipv6-toolkit/work/ipv6toolkit-v1.4.1 8 errors bmake: stopped in /home/pbulk/build/security/ipv6-toolkit/work/ipv6toolkit-v1.4.1 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/security/ipv6-toolkit *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/security/ipv6-toolkit