Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/thc-ipv6.spec'], chrootPath='/var/lib/mock/f29-build-26879-13997/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/thc-ipv6.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/thc-ipv6-3.4-3.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/thc-ipv6.spec'], chrootPath='/var/lib/mock/f29-build-26879-13997/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/thc-ipv6.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Eilm2q + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf thc-ipv6-3.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/thc-ipv6-3.4.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd thc-ipv6-3.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git add . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'thc-ipv6-3.4 base' + /usr/bin/cat /builddir/build/SOURCES/0001-Include-stdint.h-in-dnsrevenum6.c-since-uintptr_t-is.patch + /usr/bin/git apply --index - + /usr/bin/git commit -q -m 0001-Include-stdint.h-in-dnsrevenum6.c-since-uintptr_t-is.patch --author 'rpm-build ' + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.F01CxM + umask 022 + cd /builddir/build/BUILD + cd thc-ipv6-3.4 + sed -i 's|^PREFIX=/usr/local|PREFIX=/usr|' Makefile + sed -i 's/^STRIP=strip/STRIP=echo/' Makefile + sed -i '/^CFLAGS=-O2/d' Makefile + make -j4 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL' gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -c -o thc-ipv6-lib.o thc-ipv6-lib.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o dnssecwalk dnssecwalk.c -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o dnsdict6 dnsdict6.c -lpcap -lssl -lcrypto -lpthread -lresolv BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_ipv6_dummymac': BUILDSTDERR: thc-ipv6-lib.c:106:10: warning: pointer targets in returning 'char *' from a function with return type 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: return ptr; BUILDSTDERR: ^~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_pcap_function': BUILDSTDERR: thc-ipv6-lib.c:130:62: warning: pointer targets in passing argument 4 of 'pcap_dispatch' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (pcap_dispatch(pcap_link, 1, (pcap_handler) function, opt) < 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/pcap.h:43, BUILDSTDERR: from thc-ipv6-lib.c:40: BUILDSTDERR: /usr/include/pcap/pcap.h:441:14: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' BUILDSTDERR: PCAP_API int pcap_dispatch(pcap_t *, int, pcap_handler, u_char *); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_pcap_init_promisc': BUILDSTDERR: thc-ipv6-lib.c:177:41: warning: pointer targets in passing argument 3 of 'pcap_compile' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (pcap_compile(pcap_link, &fcode, capture, 1, 0) < 0) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/pcap.h:43, BUILDSTDERR: from thc-ipv6-lib.c:40: BUILDSTDERR: /usr/include/pcap/pcap.h:456:14: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: PCAP_API int pcap_compile(pcap_t *, struct bpf_program *, const char *, int, BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_pcap_check': BUILDSTDERR: thc-ipv6-lib.c:187:63: warning: pointer targets in passing argument 4 of 'pcap_dispatch' differ in signedness [-Wpointer-sign] BUILDSTDERR: return pcap_dispatch(pcap_link, 1, (pcap_handler) function, opt); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/pcap.h:43, BUILDSTDERR: from thc-ipv6-lib.c:40: BUILDSTDERR: /usr/include/pcap/pcap.h:441:14: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' BUILDSTDERR: PCAP_API int pcap_dispatch(pcap_t *, int, pcap_handler, u_char *); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_notation2beauty': BUILDSTDERR: thc-ipv6-lib.c:201:31: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (ipv6[39] != 0 || strlen(ipv6) != 39) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c:207:9: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr = ipv6 + i * 4 + i; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:235:21: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (ipv6[strlen(ipv6) - 1] == '0' && ipv6[strlen(ipv6) - 2] == ':' && ptr2 - buf + 1 + strlen(buf2) == strlen(buf)) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c:235:54: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (ipv6[strlen(ipv6) - 1] == '0' && ipv6[strlen(ipv6) - 2] == ':' && ptr2 - buf + 1 + strlen(buf2) == strlen(buf)) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c:236:19: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: ipv6[strlen(ipv6) - 1] = 0; BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c:238:12: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(ipv6, buf); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from thc-ipv6-lib.c:12: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_ipv62string': BUILDSTDERR: thc-ipv6-lib.c:265:10: warning: pointer targets in returning 'char *' from a function with return type 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: return string; BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_ipv62notation': BUILDSTDERR: thc-ipv6-lib.c:309:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((res = thc_ipv62string(ipv6)) == NULL) BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:311:29: warning: pointer targets in passing argument 1 of 'thc_string2notation' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr = thc_string2notation(res); BUILDSTDERR: ^~~ BUILDSTDERR: thc-ipv6-lib.c:285:16: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: unsigned char *thc_string2notation(unsigned char *string) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:311:7: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr = thc_string2notation(res); BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:313:10: warning: pointer targets in returning 'char *' from a function with return type 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: return ptr; BUILDSTDERR: ^~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_resolve6': BUILDSTDERR: thc-ipv6-lib.c:409:66: warning: pointer targets in passing argument 3 of 'getnameinfo' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (getnameinfo(glob_result->ai_addr, glob_result->ai_addrlen, out, sizeof(out), NULL, 0, NI_NUMERICHOST) != 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:26: BUILDSTDERR: /usr/include/netdb.h:675:12: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: extern int getnameinfo (const struct sockaddr *__restrict __sa, BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:411:27: warning: pointer targets in passing argument 2 of 'inet_pton' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (inet_pton(AF_INET6, out, glob_addr) < 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:25: BUILDSTDERR: /usr/include/arpa/inet.h:58:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: extern int inet_pton (int __af, const char *__restrict __cp, BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:419:19: warning: pointer targets in passing argument 1 of 'thc_dump_data' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_dump_data(ret_addr, 16, "Target Resolve IPv6"); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:69: BUILDSTDERR: thc-ipv6.h:147:13: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern void thc_dump_data(unsigned char *buf, int len, char *text); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:421:10: warning: pointer targets in returning 'char *' from a function with return type 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: return ret_addr; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_get_own_mac': BUILDSTDERR: thc-ipv6-lib.c:529:19: warning: pointer targets in passing argument 1 of 'thc_dump_data' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_dump_data(mac, 6, "Own MAC address"); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:69: BUILDSTDERR: thc-ipv6.h:147:13: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern void thc_dump_data(unsigned char *buf, int len, char *text); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:530:10: warning: pointer targets in returning 'char *' from a function with return type 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: return mac; BUILDSTDERR: ^~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_get_own_ipv6': BUILDSTDERR: thc-ipv6-lib.c:586:30: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] BUILDSTDERR: while (done < 2 && fgets(buf, sizeof(buf), f) != NULL) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from thc-ipv6-lib.c:12: BUILDSTDERR: /usr/include/bits/stdio2.h:255:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: fgets (char *__restrict __s, int __n, FILE *__restrict __stream) BUILDSTDERR: ^~~~~ BUILDSTDERR: thc-ipv6-lib.c:587:42: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c:587:30: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:588:16: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] BUILDSTDERR: sscanf(buf, "%s %x %x %x %s", tmpbuf, &a, &b, &c, bla); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from thc-ipv6-lib.c:12: BUILDSTDERR: /usr/include/stdio.h:414:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:602:23: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:602:31: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:626:26: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:626:59: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:626:94: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:626:127: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:639:28: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: ( ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (tmpdst[0] == '2' || tmpdst[0] == '3')) BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:639:61: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: ( ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (tmpdst[0] == '2' || tmpdst[0] == '3')) BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:641:28: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: ((strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0) && (tmpbuf[0] == '2' || tmpbuf[0] == '3')) ) ) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:641:61: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: ((strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0) && (tmpbuf[0] == '2' || tmpbuf[0] == '3')) ) ) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:654:28: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (done < 2 && strlen(&ipv6[2]) == 0 && strlen(&save[2]) > 0) { BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c:654:53: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (done < 2 && strlen(&ipv6[2]) == 0 && strlen(&save[2]) > 0) { BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c:662:14: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strlen(&save[2]) > 0 && prefer == PREFER_GLOBAL && strncmp(ipv6 + 2, "fe80", 2) == 0) { BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c:662:71: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strlen(&save[2]) > 0 && prefer == PREFER_GLOBAL && strncmp(ipv6 + 2, "fe80", 2) == 0) { BUILDSTDERR: ~~~~~^~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:668:14: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strlen(&ipv6[2]) == 0) { BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c:683:25: warning: pointer targets in passing argument 1 of 'thc_resolve6' differ in signedness [-Wpointer-sign] BUILDSTDERR: myipv6 = thc_resolve6(tmpdst); BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c:380:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: unsigned char *thc_resolve6(char *target) { BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:683:10: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: myipv6 = thc_resolve6(tmpdst); BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:687:19: warning: pointer targets in passing argument 1 of 'thc_dump_data' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_dump_data(myipv6, 16, "Own IPv6 address"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:69: BUILDSTDERR: thc-ipv6.h:147:13: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern void thc_dump_data(unsigned char *buf, int len, char *text); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:688:10: warning: pointer targets in returning 'char *' from a function with return type 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: return myipv6; BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_lookup_ipv6_mac': BUILDSTDERR: thc-ipv6-lib.c:754:11: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p1 = thc_get_own_ipv6(interface, dst, PREFER_LINK)) == NULL) BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:757:31: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p2 = thc_ipv62notation(p1)) == NULL) { BUILDSTDERR: ^~ BUILDSTDERR: thc-ipv6-lib.c:304:16: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: unsigned char *thc_ipv62notation(unsigned char *ipv6) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:757:11: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p2 = thc_ipv62notation(p1)) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:770:33: warning: pointer targets in passing argument 2 of 'thc_neighborsol6' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_neighborsol6(interface, mysrc, NULL, dst, NULL, NULL); BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:69: BUILDSTDERR: thc-ipv6.h:110:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_neighborsol6(char *interface, unsigned char *src, unsigned char *dst, unsigned char *target, unsigned char *srcmac, unsigned char *dstmac); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_look_neighborcache': BUILDSTDERR: thc-ipv6-lib.c:816:76: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign] BUILDSTDERR: gotsize = recvfrom(fd, buf, sizeof(buf), 0, (struct sockaddr *) &nladdr, &fromlen); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/sys/socket.h:269, BUILDSTDERR: from thc-ipv6-lib.c:23: BUILDSTDERR: /usr/include/bits/socket2.h:64:1: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' BUILDSTDERR: recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:823:25: warning: pointer targets in passing argument 1 of 'thc_memstr' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((ptr = thc_memstr(buf, dst, gotsize /* - (ptr - buf) */ , 16)) == NULL) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:69: BUILDSTDERR: thc-ipv6.h:152:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_memstr(char *haystack, char *needle, int haystack_length, int needle_length); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:823:30: warning: pointer targets in passing argument 2 of 'thc_memstr' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((ptr = thc_memstr(buf, dst, gotsize /* - (ptr - buf) */ , 16)) == NULL) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:69: BUILDSTDERR: thc-ipv6.h:152:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_memstr(char *haystack, char *needle, int haystack_length, int needle_length); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_is_dst_local': BUILDSTDERR: thc-ipv6-lib.c:856:30: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] BUILDSTDERR: while (local == 0 && fgets(buf, sizeof(buf), f) != NULL) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from thc-ipv6-lib.c:12: BUILDSTDERR: /usr/include/bits/stdio2.h:255:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: fgets (char *__restrict __s, int __n, FILE *__restrict __stream) BUILDSTDERR: ^~~~~ BUILDSTDERR: thc-ipv6-lib.c:857:40: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c:857:28: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:858:14: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] BUILDSTDERR: sscanf(buf, "%s %x %x %x %s", tmpbuf, &a, &b, &c, bla); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from thc-ipv6-lib.c:12: BUILDSTDERR: /usr/include/stdio.h:414:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:859:19: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:859:27: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_get_mac': BUILDSTDERR: thc-ipv6-lib.c:902:30: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] BUILDSTDERR: while (local == 0 && fgets(buf, sizeof(buf), f) != NULL) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from thc-ipv6-lib.c:12: BUILDSTDERR: /usr/include/bits/stdio2.h:255:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: fgets (char *__restrict __s, int __n, FILE *__restrict __stream) BUILDSTDERR: ^~~~~ BUILDSTDERR: thc-ipv6-lib.c:903:40: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c:903:28: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:904:14: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] BUILDSTDERR: sscanf(buf, "%s %x %x %x %s", tmpbuf, &a, &b, &c, bla); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from thc-ipv6-lib.c:12: BUILDSTDERR: /usr/include/stdio.h:414:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:905:19: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:905:27: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:926:32: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] BUILDSTDERR: while (local == 0 && fgets(buf, sizeof(buf), f) != NULL) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from thc-ipv6-lib.c:12: BUILDSTDERR: /usr/include/bits/stdio2.h:255:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: fgets (char *__restrict __s, int __n, FILE *__restrict __stream) BUILDSTDERR: ^~~~~ BUILDSTDERR: thc-ipv6-lib.c:927:42: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c:927:30: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:928:16: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] BUILDSTDERR: sscanf(buf, "%s %x %s %x %s %s", tmpbuf, &b, router1, &a, router2, bla); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from thc-ipv6-lib.c:12: BUILDSTDERR: /usr/include/stdio.h:414:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:930:23: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:930:31: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:940:18: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(defaultgw, router2); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from thc-ipv6-lib.c:12: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: thc-ipv6-lib.c:940:29: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(defaultgw, router2); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from thc-ipv6-lib.c:12: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: thc-ipv6-lib.c:944:18: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(tmpdst, router2); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from thc-ipv6-lib.c:12: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: thc-ipv6-lib.c:944:26: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(tmpdst, router2); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from thc-ipv6-lib.c:12: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: thc-ipv6-lib.c:948:30: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (local == 0 && strlen(defaultgw) > 0) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:13: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c:951:14: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(tmpdst, defaultgw); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from thc-ipv6-lib.c:12: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: thc-ipv6-lib.c:951:22: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(tmpdst, defaultgw); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from thc-ipv6-lib.c:12: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: thc-ipv6-lib.c:964:6: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: p1 = thc_string2ipv6(tmpdst); BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:965:37: warning: pointer targets in passing argument 1 of 'thc_look_neighborcache' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((ret = thc_look_neighborcache(p1)) != NULL) { BUILDSTDERR: ^~ BUILDSTDERR: thc-ipv6-lib.c:800:16: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: unsigned char *thc_look_neighborcache(unsigned char *dst) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:965:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((ret = thc_look_neighborcache(p1)) != NULL) { BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:968:12: warning: pointer targets in returning 'char *' from a function with return type 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: return ret; BUILDSTDERR: ^~~ BUILDSTDERR: thc-ipv6-lib.c:970:40: warning: pointer targets in passing argument 2 of 'thc_lookup_ipv6_mac' differ in signedness [-Wpointer-sign] BUILDSTDERR: ret = thc_lookup_ipv6_mac(interface, p1); BUILDSTDERR: ^~ BUILDSTDERR: thc-ipv6-lib.c:739:16: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: unsigned char *thc_lookup_ipv6_mac(char *interface, unsigned char *dst) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:970:7: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ret = thc_lookup_ipv6_mac(interface, p1); BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:973:10: warning: pointer targets in returning 'char *' from a function with return type 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: return ret; BUILDSTDERR: ^~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_inverse_packet': BUILDSTDERR: thc-ipv6-lib.c:979:15: warning: pointer targets in initialization of 'char *' from 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: char *src = &pkt[8], *dst = &pkt[24]; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:979:31: warning: pointer targets in initialization of 'char *' from 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: char *src = &pkt[8], *dst = &pkt[24]; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:1008:41: warning: pointer targets in passing argument 1 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] BUILDSTDERR: checksum = checksum_pseudo_header(src, dst, NXT_ICMP6, &pkt[iptr], pkt_len - iptr); BUILDSTDERR: ^~~ BUILDSTDERR: thc-ipv6-lib.c:335:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:1008:46: warning: pointer targets in passing argument 2 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] BUILDSTDERR: checksum = checksum_pseudo_header(src, dst, NXT_ICMP6, &pkt[iptr], pkt_len - iptr); BUILDSTDERR: ^~~ BUILDSTDERR: thc-ipv6-lib.c:335:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_send_raguard_bypass6': BUILDSTDERR: thc-ipv6-lib.c:1060:56: warning: unused variable 'last_size' [-Wunused-variable] BUILDSTDERR: int count, id = time(NULL) % 2000000000, offset = 0, last_size, more_runs = 1, rest = data_len, to_copy; BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:1060:7: warning: unused variable 'count' [-Wunused-variable] BUILDSTDERR: int count, id = time(NULL) % 2000000000, offset = 0, last_size, more_runs = 1, rest = data_len, to_copy; BUILDSTDERR: ^~~~~ BUILDSTDERR: thc-ipv6-lib.c:1058:16: warning: unused variable 'frag_len' [-Wunused-variable] BUILDSTDERR: int pkt_len, frag_len, mymtu = thc_get_mtu(interface); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_create_ipv6_extended': BUILDSTDERR: thc-ipv6-lib.c:1924:10: warning: pointer targets in returning 'char *' from a function with return type 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: return pkt; BUILDSTDERR: ^~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_add_ipv4_rudimentary': BUILDSTDERR: thc-ipv6-lib.c:2025:67: warning: pointer targets in passing argument 4 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] BUILDSTDERR: checksum = checksum_pseudo_header(NULL, NULL, NXT_ICMP4, ihdr + 20, THC_IPv4_RUDIMENTARY_LEN - 20); BUILDSTDERR: ~~~~~^~~~ BUILDSTDERR: thc-ipv6-lib.c:335:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:2040:58: warning: pointer targets in passing argument 4 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] BUILDSTDERR: checksum = checksum_pseudo_header(NULL, NULL, NXT_IP4, ihdr, 20); BUILDSTDERR: ^~~~ BUILDSTDERR: thc-ipv6-lib.c:335:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_open_ipv6': BUILDSTDERR: thc-ipv6-lib.c:2600:30: warning: pointer targets in passing argument 1 of 'thc_dump_data' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (debug) thc_dump_data(do_hdr, do_hdr_size + do_hdr_off, "PPPoE Header"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:69: BUILDSTDERR: thc-ipv6.h:147:13: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern void thc_dump_data(unsigned char *buf, int len, char *text); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:2661:30: warning: pointer targets in passing argument 1 of 'thc_dump_data' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (debug) thc_dump_data(do_hdr, do_hdr_size, "6in4 Header"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:69: BUILDSTDERR: thc-ipv6.h:147:13: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern void thc_dump_data(unsigned char *buf, int len, char *text); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_generate_pkt': BUILDSTDERR: thc-ipv6-lib.c:2724:44: warning: pointer targets in passing argument 1 of 'calculate_checksum' differ in signedness [-Wpointer-sign] BUILDSTDERR: i = calculate_checksum(do_hdr + 14 + do_hdr_off, 20); BUILDSTDERR: ~~~~~~~~~~~~^~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:316:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int calculate_checksum(unsigned char *data, int data_len) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:2740:18: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: mysrcmac = thc_get_own_mac(interface); BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:2742:18: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: mysrcmac = srcmac; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:2745:18: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: mydstmac = thc_get_mac(interface, hdr->src, hdr->dst); BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:2747:18: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: mydstmac = dstmac; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:2777:13: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: last_type = &hdr->pkt[7 + offset]; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:2785:16: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: checksum_src = hdr->original_src; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:2797:17: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: last_type = &hdr->pkt[bufptr]; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:2801:24: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: checksum_src = &hdr->pkt[bufptr + 4]; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:2828:42: warning: pointer targets in passing argument 1 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] BUILDSTDERR: do_checksum = checksum_pseudo_header(checksum_src, hdr->final_dst, NXT_PIM, &hdr->pkt[bufptr], ehdr->data_len); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:335:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:2851:47: warning: pointer targets in passing argument 1 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] BUILDSTDERR: ihdr->checksum = checksum_pseudo_header(checksum_src, hdr->final_dst, NXT_ICMP6, &hdr->pkt[bufptr], 8 + ihdr->data_len); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:335:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:2897:47: warning: pointer targets in passing argument 1 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] BUILDSTDERR: thdr->checksum = checksum_pseudo_header(checksum_src, hdr->final_dst, NXT_TCP, &hdr->pkt[bufptr], 20 + thdr->option_len + thdr->data_len); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:335:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:2935:47: warning: pointer targets in passing argument 1 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] BUILDSTDERR: uhdr->checksum = checksum_pseudo_header(checksum_src, hdr->final_dst, NXT_UDP, &hdr->pkt[bufptr], 8 + uhdr->data_len); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:335:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:2956:44: warning: pointer targets in passing argument 1 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] BUILDSTDERR: do_checksum = checksum_pseudo_header(checksum_src, hdr->final_dst, NXT_MIPV6, &hdr->pkt[bufptr], ehdr->data_len); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:335:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:2697:53: warning: variable 'is_ip4' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int type, bufptr, do_checksum = 0, offset = 0, i, is_ip4 = 0, malloc_size; BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_destroy_packet': BUILDSTDERR: thc-ipv6-lib.c:3045:14: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptrs[iptr] = pkt; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:3055:16: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptrs[iptr] = ehdr->data; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:3068:16: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptrs[iptr] = ihdr->data; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:3075:16: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptrs[iptr] = thdr->option; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:3077:16: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptrs[iptr] = thdr->data; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:3084:16: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptrs[iptr] = uhdr->data; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:3094:16: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptrs[iptr] = ehdr->data; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:3101:16: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptrs[iptr] = ehdr->data; BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_memstr': BUILDSTDERR: thc-ipv6-lib.c:3191:24: warning: pointer targets in returning 'char *' from a function with return type 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: return (haystack + i); BUILDSTDERR: ~~~~~~~~~~^~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_generate_cga': BUILDSTDERR: thc-ipv6-lib.c:3282:18: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: cga_hdr->pad = (char *) malloc(cga_hdr->pad_len); BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:3286:13: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((*cga = (char *) malloc(16)) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:3228:31: warning: variable 'ignore' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int klen, rand_fd, cgasize, ignore = 0; BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_generate_rsa': BUILDSTDERR: thc-ipv6-lib.c:3344:10: warning: pointer targets in passing argument 1 of 'SHA1' differ in signedness [-Wpointer-sign] BUILDSTDERR: SHA1(data2sign, data2sign_len, hash); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:45: BUILDSTDERR: /usr/include/openssl/sha.h:44:16: note: expected 'const unsigned char *' but argument is of type 'char *' BUILDSTDERR: unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md); BUILDSTDERR: ^~~~ BUILDSTDERR: thc-ipv6-lib.c:3356:43: warning: pointer targets in passing argument 4 of 'RSA_sign' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (RSA_sign(NID_sha1, hash, 20, rsa_hdr->sign, &sign_len, key->rsa) == 0) { BUILDSTDERR: ~~~~~~~^~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:46: BUILDSTDERR: /usr/include/openssl/rsa.h:313:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int RSA_sign(int type, const unsigned char *m, unsigned int m_length, BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:3356:51: warning: pointer targets in passing argument 5 of 'RSA_sign' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (RSA_sign(NID_sha1, hash, 20, rsa_hdr->sign, &sign_len, key->rsa) == 0) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from thc-ipv6-lib.c:46: BUILDSTDERR: /usr/include/openssl/rsa.h:313:5: note: expected 'unsigned int *' but argument is of type 'int *' BUILDSTDERR: int RSA_sign(int type, const unsigned char *m, unsigned int m_length, BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:3332:34: warning: variable 'ignore' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int rsa_hdr_len, sign_len, fd, ignore = 0; BUILDSTDERR: ^~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_add_send': BUILDSTDERR: thc-ipv6-lib.c:3434:21: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((ndp_opt_buff = (char *) malloc(ndp_opt_len)) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:3464:20: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((data2sign = (char *) malloc(data2sign_len)) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: thc-ipv6-lib.c:3480:76: warning: pointer targets in passing argument 4 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] BUILDSTDERR: ihdr->checksum = checksum_pseudo_header(hdr->src, hdr->dst, NXT_ICMP6, buff, 8 + ndp_opt_len); BUILDSTDERR: ^~~~ BUILDSTDERR: thc-ipv6-lib.c:335:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:3488:35: warning: pointer targets in passing argument 1 of 'thc_generate_rsa' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((rsa_hdr = thc_generate_rsa(data2sign, data2sign_len, cga_hdr, key)) == NULL) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c:3329:14: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: thc_rsa_hdr *thc_generate_rsa(char *data2sign, int data2sign_len, thc_cga_hdr * cga_hdr, thc_key_t * key) { BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: dnsdict6.c: In function 'dnsquerycode': BUILDSTDERR: dnsdict6.c:365:33: warning: pointer targets in passing argument 4 of '__res_query' differ in signedness [-Wpointer-sign] BUILDSTDERR: res_query(dom, ns_c_in, type, vbuf, sizeof(vbuf)); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from dnsdict6.c:27: BUILDSTDERR: /usr/include/resolv.h:191:6: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int res_query (const char *, int, int, unsigned char *, int) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: dnsdict6.c: In function 'main': BUILDSTDERR: dnsdict6.c:629:8: warning: unused variable 'typ' [-Wunused-variable] BUILDSTDERR: char typ = 't', **sub_orig; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/string.h:494, BUILDSTDERR: from thc-ipv6-lib.c:13: BUILDSTDERR: In function 'memcpy', BUILDSTDERR: inlined from 'thc_get_own_ipv6' at thc-ipv6-lib.c:656:7: BUILDSTDERR: /usr/include/bits/string_fortified.h:34:10: warning: '__builtin_memcpy' forming offset [35, 36] is out of the bounds [0, 34] of object 'save' with type 'unsigned char[34]' [-Warray-bounds] BUILDSTDERR: return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_get_own_ipv6': BUILDSTDERR: thc-ipv6-lib.c:536:32: note: 'save' declared here BUILDSTDERR: unsigned char ipv6[36] = "", save[34] = "", tmpbuf[34], buf[1024], *tmpdst = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/string.h:494, BUILDSTDERR: from thc-ipv6-lib.c:13: BUILDSTDERR: In function 'memcpy', BUILDSTDERR: inlined from 'thc_get_own_ipv6' at thc-ipv6-lib.c:664:7: BUILDSTDERR: /usr/include/bits/string_fortified.h:34:10: warning: '__builtin_memcpy' forming offset [35, 36] is out of the bounds [0, 34] of object 'save' with type 'unsigned char[34]' [-Warray-bounds] BUILDSTDERR: return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thc-ipv6-lib.c: In function 'thc_get_own_ipv6': BUILDSTDERR: thc-ipv6-lib.c:536:32: note: 'save' declared here BUILDSTDERR: unsigned char ipv6[36] = "", save[34] = "", tmpbuf[34], buf[1024], *tmpdst = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: dnsdict6.c: In function 'threaded_resolve': BUILDSTDERR: dnsdict6.c:274:36: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 199 [-Wformat-truncation=] BUILDSTDERR: snprintf(dom, sizeof(dom), "%s.%s", list[i], domain); BUILDSTDERR: ^~ ~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from dnsdict6.c:14: BUILDSTDERR: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 200 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: dnsdict6.c: In function 'threaded_resolve_srv': BUILDSTDERR: dnsdict6.c:391:39: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 198 [-Wformat-truncation=] BUILDSTDERR: snprintf(dom, sizeof(dom), "%s.%s.%s", list[i], type, domain); BUILDSTDERR: ^~ ~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from dnsdict6.c:14: BUILDSTDERR: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 3 or more bytes (assuming 258) into a destination of size 200 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o parasite6 parasite6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o dos-new-ip6 dos-new-ip6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o detect-new-ip6 detect-new-ip6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fake_router6 fake_router6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: parasite6.c: In function 'intercept': BUILDSTDERR: parasite6.c:70:8: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr2 = thc_ipv62notation(ipv6->pkt + 38); BUILDSTDERR: ^ BUILDSTDERR: parasite6.c:71:8: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr4 = thc_ipv62notation(ipv6->pkt + 22); BUILDSTDERR: ^ BUILDSTDERR: parasite6.c:101:10: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr2 = thc_ipv62notation(ipv62->pkt + 38); BUILDSTDERR: ^ BUILDSTDERR: parasite6.c:102:10: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr4 = thc_ipv62notation(ipv62->pkt + 22); BUILDSTDERR: ^ BUILDSTDERR: parasite6.c: In function 'main': BUILDSTDERR: parasite6.c:155:27: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *ownmac = mac; BUILDSTDERR: ^~~ BUILDSTDERR: parasite6.c:210:75: warning: pointer targets in passing argument 4 of 'thc_create_ipv6_extended' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((pkt = thc_create_ipv6_extended(interface, PREFER_LINK, &pkt_len, dummy, dummy, 255, 0, 0, 0, 0)) == NULL) BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from parasite6.c:10: BUILDSTDERR: thc-ipv6.h:122:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_create_ipv6_extended(char *interface, int prefer, int *pkt_len, unsigned char *src, unsigned char *dst, int ttl, int length, int label, int class, int version); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: parasite6.c:210:82: warning: pointer targets in passing argument 5 of 'thc_create_ipv6_extended' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((pkt = thc_create_ipv6_extended(interface, PREFER_LINK, &pkt_len, dummy, dummy, 255, 0, 0, 0, 0)) == NULL) BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from parasite6.c:10: BUILDSTDERR: thc-ipv6.h:122:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_create_ipv6_extended(char *interface, int prefer, int *pkt_len, unsigned char *src, unsigned char *dst, int ttl, int length, int label, int class, int version); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: parasite6.c:214:47: warning: pointer targets in passing argument 3 of 'thc_add_hdr_hopbyhop' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_hdr_hopbyhop(pkt, &pkt_len, buf2, sizeof(buf2)) < 0) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from parasite6.c:10: BUILDSTDERR: thc-ipv6.h:129:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_hdr_hopbyhop(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: parasite6.c:227:42: warning: pointer targets in passing argument 3 of 'thc_add_hdr_dst' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_hdr_dst(pkt, &pkt_len, buf3, sizeof(buf3)) < 0) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from parasite6.c:10: BUILDSTDERR: thc-ipv6.h:128:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_hdr_dst(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: parasite6.c:230:143: warning: pointer targets in passing argument 6 of 'thc_add_icmp6' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_icmp6(pkt, &pkt_len, ICMP6_NEIGHBORADV, 0, ICMP6_NEIGHBORADV_SOLICIT | ICMP6_NEIGHBORADV_OVERRIDE | ICMP6_NEIGHBORADV_ROUTER, dummy, 24, 0) < 0) BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from parasite6.c:10: BUILDSTDERR: thc-ipv6.h:131:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_icmp6(unsigned char *pkt, int *pkt_len, int type, int code, unsigned int flags, unsigned char *data, int data_len, int checksum); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: parasite6.c:232:45: warning: pointer targets in passing argument 3 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_generate_pkt(interface, ownmac, dummy, pkt, &pkt_len) < 0) BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from parasite6.c:10: BUILDSTDERR: thc-ipv6.h:140:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: fake_router6.c: In function 'send_rs_reply': BUILDSTDERR: fake_router6.c:40:45: warning: pointer targets in passing argument 3 of 'thc_add_hdr_hopbyhop' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_hdr_hopbyhop(pkt, &pkt_len, frbuf2, frbuf2len) < 0) BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from fake_router6.c:11: BUILDSTDERR: thc-ipv6.h:129:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_hdr_hopbyhop(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fake_router6.c:52:40: warning: pointer targets in passing argument 3 of 'thc_add_hdr_dst' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_hdr_dst(pkt, &pkt_len, buf3, sizeof(buf3)) < 0) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from fake_router6.c:11: BUILDSTDERR: thc-ipv6.h:128:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_hdr_dst(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: detect-new-ip6.c: In function 'intercept': BUILDSTDERR: detect-new-ip6.c:51:28: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr4 = thc_ipv62notation((char *) (ipv6hdr + 48)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from detect-new-ip6.c:11: BUILDSTDERR: thc-ipv6.h:151:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_ipv62notation(unsigned char *string); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fake_router6.c:55:68: warning: pointer targets in passing argument 6 of 'thc_add_icmp6' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_icmp6(pkt, &pkt_len, ICMP6_ROUTERADV, 0, 0xff080800, frbuf, frbuflen, 0) < 0) BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from fake_router6.c:11: BUILDSTDERR: thc-ipv6.h:131:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_icmp6(unsigned char *pkt, int *pkt_len, int type, int code, unsigned int flags, unsigned char *data, int data_len, int checksum); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: dos-new-ip6.c: In function 'intercept': BUILDSTDERR: dos-new-ip6.c:59:8: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr4 = thc_ipv62notation(ipv6->pkt + 22); BUILDSTDERR: ^ BUILDSTDERR: detect-new-ip6.c:51:8: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr4 = thc_ipv62notation((char *) (ipv6hdr + 48)); BUILDSTDERR: ^ BUILDSTDERR: fake_router6.c: In function 'main': BUILDSTDERR: fake_router6.c:71:46: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *routerip6, *route6, *mac6 = mac, *ip6; BUILDSTDERR: ^~~ BUILDSTDERR: dos-new-ip6.c:31:7: warning: variable 'len' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int len = header->caplen - 14; BUILDSTDERR: ^~~ BUILDSTDERR: fake_router6.c:111:9: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: frbuf = buf; BUILDSTDERR: ^ BUILDSTDERR: fake_router6.c:112:10: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: frbuf2 = buf2; BUILDSTDERR: ^ BUILDSTDERR: dos-new-ip6.c: In function 'main': BUILDSTDERR: dos-new-ip6.c:107:73: warning: pointer targets in passing argument 4 of 'thc_create_ipv6_extended' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((pkt = thc_create_ipv6_extended(interface, PREFER_LINK, &pkt_len, dummy, dst, 255, 0, 0, 0, 0)) == NULL) BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from dos-new-ip6.c:11: BUILDSTDERR: thc-ipv6.h:122:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_create_ipv6_extended(char *interface, int prefer, int *pkt_len, unsigned char *src, unsigned char *dst, int ttl, int length, int label, int class, int version); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: dos-new-ip6.c:109:86: warning: pointer targets in passing argument 6 of 'thc_add_icmp6' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_icmp6(pkt, &pkt_len, ICMP6_NEIGHBORADV, 0, ICMP6_NEIGHBORADV_OVERRIDE, dummy, 24, 0) < 0) BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from dos-new-ip6.c:11: BUILDSTDERR: thc-ipv6.h:131:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_icmp6(unsigned char *pkt, int *pkt_len, int type, int code, unsigned int flags, unsigned char *data, int data_len, int checksum); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fake_router6.c:119:34: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (argc - optind >= 7 && (ptr = argv[optind + 5]) != NULL) BUILDSTDERR: ^ BUILDSTDERR: fake_router6.c:120:12: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] BUILDSTDERR: sscanf(ptr, "%x:%x:%x:%x:%x:%x", (unsigned int *) &mac[0], (unsigned int *) &mac[1], (unsigned int *) &mac[2], (unsigned int *) &mac[3], (unsigned int *) &mac[4], BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from fake_router6.c:1: BUILDSTDERR: /usr/include/stdio.h:414:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fake_router6.c:139:32: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (routerip == NULL || (ptr = index(routerip, '/')) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: fake_router6.c:144:15: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] BUILDSTDERR: size = atoi(ptr); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from fake_router6.c:1: BUILDSTDERR: /usr/include/stdlib.h:361:1: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (atoi (const char *__nptr)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fake_router6.c:177:37: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init(interface, string)) == NULL) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from fake_router6.c:11: BUILDSTDERR: thc-ipv6.h:94:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern pcap_t *thc_pcap_init(char *interface, char *capture); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fake_router6.c:264:45: warning: pointer targets in passing argument 3 of 'thc_add_hdr_hopbyhop' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_hdr_hopbyhop(pkt, &pkt_len, frbuf2, 6) < 0) BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from fake_router6.c:11: BUILDSTDERR: thc-ipv6.h:129:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_hdr_hopbyhop(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fake_router6.c:276:40: warning: pointer targets in passing argument 3 of 'thc_add_hdr_dst' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_hdr_dst(pkt, &pkt_len, buf3, sizeof(buf3)) < 0) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from fake_router6.c:11: BUILDSTDERR: thc-ipv6.h:128:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_hdr_dst(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: fake_router6.c:79:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int rawmode = 0; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fake_router6.c: In function 'send_rs_reply': BUILDSTDERR: fake_router6.c:31:20: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: int pkt_len = 0, cnt, i; BUILDSTDERR: ^~~ BUILDSTDERR: fake_router6.c: In function 'main': BUILDSTDERR: fake_router6.c:76:34: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: int size, mtu = 1500, i, j, k, cnt; BUILDSTDERR: ^~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fake_advertise6 fake_advertise6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fake_solicitate6 fake_solicitate6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fake_mld6 fake_mld6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fake_mld26 fake_mld26.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: fake_advertise6.c: In function 'main': BUILDSTDERR: fake_advertise6.c:38:21: warning: unused variable 'pkt2_len' [-Wunused-variable] BUILDSTDERR: int pkt1_len = 0, pkt2_len = 0, prefer = PREFER_GLOBAL, i, do_hop = 0, do_dst = 0, do_frag = 0, cnt, type = NXT_ICMP6, wait = 5, loop = -1, do_full = 0; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fake_advertise6.c:38:99: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: int pkt1_len = 0, pkt2_len = 0, prefer = PREFER_GLOBAL, i, do_hop = 0, do_dst = 0, do_frag = 0, cnt, type = NXT_ICMP6, wait = 5, loop = -1, do_full = 0; BUILDSTDERR: ^~~ BUILDSTDERR: fake_solicitate6.c: In function 'main': BUILDSTDERR: fake_solicitate6.c:27:92: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: int pkt1_len = 0, flags, prefer = PREFER_GLOBAL, i, do_hop = 0, do_dst = 0, do_frag = 0, cnt, type = NXT_ICMP6, offset = 14; BUILDSTDERR: ^~~ BUILDSTDERR: fake_mld6.c: In function 'main': BUILDSTDERR: fake_mld6.c:90:16: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: multicast6 = thc_resolve6("::"); BUILDSTDERR: ^ BUILDSTDERR: fake_mld6.c:93:21: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((multicast6 = thc_resolve6(argv[3])) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: fake_mld6.c:105:12: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: dst6 = multicast6; BUILDSTDERR: ^ BUILDSTDERR: fake_mld6.c:129:45: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init_promisc(interface, string)) == NULL) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from fake_mld6.c:11: BUILDSTDERR: thc-ipv6.h:95:16: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fake_mld26.c: In function 'main': BUILDSTDERR: fake_mld26.c:117:16: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: multicast6 = thc_resolve6("::"); BUILDSTDERR: ^ BUILDSTDERR: fake_mld26.c:120:21: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((multicast6 = thc_resolve6(argv[3])) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: fake_mld26.c:132:12: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: dst6 = multicast6; BUILDSTDERR: ^ BUILDSTDERR: fake_mld26.c:160:45: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init_promisc(interface, string)) == NULL) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from fake_mld26.c:11: BUILDSTDERR: thc-ipv6.h:95:16: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fake_mldrouter6 fake_mldrouter6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o flood_mldrouter6 flood_mldrouter6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fake_mipv6 fake_mipv6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: flood_mldrouter6.c: In function 'main': BUILDSTDERR: flood_mldrouter6.c:23:25: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *mac6 = mac, *ip6 = thc_resolve6("fe80::ff:fe00:0"); BUILDSTDERR: ^~~ BUILDSTDERR: flood_mldrouter6.c:29:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int rawmode = 0; BUILDSTDERR: ^~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o redir6 redir6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o smurf6 smurf6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o alive6 alive6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o toobig6 toobig6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: smurf6.c: In function 'main': BUILDSTDERR: smurf6.c:27:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int rawmode = 0; BUILDSTDERR: ^~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o rsmurf6 rsmurf6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: alive6.c: In function 'warlord_checkFingerprint': BUILDSTDERR: alive6.c:275:25: warning: variable 'ip_mod' set but not used [-Wunused-but-set-variable] BUILDSTDERR: char *os, *end, *ptr, ip_mod, ip_ver = 0, ip_hdr_size = 0; BUILDSTDERR: ^~~~~~ BUILDSTDERR: alive6.c: In function 'check_packets': BUILDSTDERR: alive6.c:403:64: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (memcmp(ptr + 48 + offset, (char *) tagging, strlen(tagging)) == 0) { BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from alive6.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: alive6.c:424:18: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: snprintf(sport, sizeof(sport), "%d/", i); BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from alive6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (snprintf (char *__restrict __s, size_t __n, BUILDSTDERR: ^~~~~ BUILDSTDERR: alive6.c:438:16: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: snprintf(sport, sizeof(sport), "%d/", i); BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from alive6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (snprintf (char *__restrict __s, size_t __n, BUILDSTDERR: ^~~~~ BUILDSTDERR: alive6.c:441:39: warning: pointer targets in passing argument 1 of 'warlord_checkFingerprint' differ in signedness [-Wpointer-sign] BUILDSTDERR: os = warlord_checkFingerprint(ptr, len); BUILDSTDERR: ^~~ BUILDSTDERR: alive6.c:274:7: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: char *warlord_checkFingerprint(char *buffer, int len) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: alive6.c:506:18: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: snprintf(sport, sizeof(sport), "%d:%d/", ptr[40], ptr[41]); BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from alive6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (snprintf (char *__restrict __s, size_t __n, BUILDSTDERR: ^~~~~ BUILDSTDERR: alive6.c:551:12: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: p1 = "unreachable"; BUILDSTDERR: ^ BUILDSTDERR: alive6.c:554:12: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: p1 = "toobig"; BUILDSTDERR: ^ BUILDSTDERR: alive6.c:557:12: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: p1 = "time-to-live-exceeded"; BUILDSTDERR: ^ BUILDSTDERR: alive6.c: In function 'main': BUILDSTDERR: alive6.c:768:15: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: tagging = optarg; BUILDSTDERR: ^ BUILDSTDERR: alive6.c:831:17: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p2 = strdup(optarg)) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: alive6.c:835:20: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] BUILDSTDERR: p3 = index(p2, '/'); BUILDSTDERR: ^~ BUILDSTDERR: In file included from /usr/include/string.h:431, BUILDSTDERR: from alive6.c:3: BUILDSTDERR: /usr/include/strings.h:68:14: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern char *index (const char *__s, int __c) BUILDSTDERR: ^~~~~ BUILDSTDERR: alive6.c:835:12: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: p3 = index(p2, '/'); BUILDSTDERR: ^ BUILDSTDERR: alive6.c:837:23: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((i = atoi(p3)) < 8 || i > 120 || i % 8 != 0) { BUILDSTDERR: ^~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from alive6.c:1: BUILDSTDERR: /usr/include/stdlib.h:361:1: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (atoi (const char *__nptr)) BUILDSTDERR: ^~~~~ BUILDSTDERR: alive6.c:1000:12: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(string, "ip6"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from alive6.c:1: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: alive6.c:1002:13: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: sprintf(string, "dst %s", thc_ipv62notation(src6)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from alive6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:34:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) BUILDSTDERR: ^~~~~ BUILDSTDERR: alive6.c:1004:12: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, " and "); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from alive6.c:1: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: alive6.c:1006:14: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, "( icmp6 or "); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from alive6.c:1: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: alive6.c:1008:16: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, "udp "); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from alive6.c:1: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: alive6.c:1010:17: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, "or "); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from alive6.c:1: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: alive6.c:1012:16: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, "tcp "); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from alive6.c:1: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: alive6.c:1013:14: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, ")"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from alive6.c:1: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: alive6.c:1015:14: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, "icmp6"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from alive6.c:1: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: alive6.c:1041:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strlen(tagging) > 8) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from alive6.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: alive6.c:1043:43: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: for (i = 0; i < (sizeof(buf) / strlen(tagging)); i++) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from alive6.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: alive6.c:1044:30: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: memcpy(buf + i*(strlen(tagging)), tagging, strlen(tagging)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from alive6.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: alive6.c:1044:57: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: memcpy(buf + i*(strlen(tagging)), tagging, strlen(tagging)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from alive6.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: alive6.c:1048:37: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init(interface, string)) == NULL) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from alive6.c:16: BUILDSTDERR: thc-ipv6.h:94:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern pcap_t *thc_pcap_init(char *interface, char *capture); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: alive6.c:1301:42: warning: pointer targets in passing argument 3 of 'adress4to6' differ in signedness [-Wpointer-sign] BUILDSTDERR: bl = adress4to6(cur_dst, addr_cur, &bh); BUILDSTDERR: ^~~ BUILDSTDERR: alive6.c:601:5: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: int adress4to6(unsigned char *addr6, unsigned int addr4, char *state) { BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: alive6.c:1736:109: warning: pointer targets in passing argument 10 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, sp, synports[i] % 65536, (sp << 16) + sp, 0, TCP_SYN, 5760, 0, tcp_opt, TCP_OPT_LEN, NULL, 0) < 0) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from alive6.c:16: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: alive6.c:1747:15: warning: this 'else' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: } else BUILDSTDERR: ^~~~ BUILDSTDERR: alive6.c:1749:15: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' BUILDSTDERR: while(thc_send_pkt(interface, pkt, &pkt_len) < 0) { BUILDSTDERR: ^~~~~ BUILDSTDERR: alive6.c:1844:72: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, sp, udpports[i] % 65536, 0, dns6buf, sizeof(dns6buf)) < 0) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from alive6.c:16: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: alive6.c:686:127: warning: unused variable 'sendrc' [-Wunused-variable] BUILDSTDERR: int no_vendid = 0, no_nets = 0, local = -1, no_send = 1, no_send_local = 1, no_send_remote = 2, nos = 0, renew = 0, errcnt, sendrc; BUILDSTDERR: ^~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o implementation6 implementation6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: rsmurf6.c: In function 'main': BUILDSTDERR: rsmurf6.c:28:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int rawmode = 0; BUILDSTDERR: ^~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o implementation6d implementation6d.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: implementation6.c: In function 'main': BUILDSTDERR: implementation6.c:309:10: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, thc_ipv62notation(src6)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from implementation6.c:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: implementation6.c:309:18: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, thc_ipv62notation(src6)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from implementation6.c:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: implementation6.c:310:10: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string2, thc_ipv62notation(dst6)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from implementation6.c:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: implementation6.c:310:19: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string2, thc_ipv62notation(dst6)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from implementation6.c:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: implementation6.c:322:37: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init(interface, string)) == NULL) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from implementation6.c:19: BUILDSTDERR: thc-ipv6.h:94:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern pcap_t *thc_pcap_init(char *interface, char *capture); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: implementation6.c:1286:34: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] BUILDSTDERR: p = thc_pcap_init(interface, string2); BUILDSTDERR: ^~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o sendpees6 sendpees6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: In file included from implementation6.c:19: BUILDSTDERR: thc-ipv6.h:94:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern pcap_t *thc_pcap_init(char *interface, char *capture); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: implementation6.c:1294:34: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] BUILDSTDERR: p = thc_pcap_init(interface, string); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from implementation6.c:19: BUILDSTDERR: thc-ipv6.h:94:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern pcap_t *thc_pcap_init(char *interface, char *capture); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: implementation6.c:1355:34: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] BUILDSTDERR: p = thc_pcap_init(interface, string2); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from implementation6.c:19: BUILDSTDERR: thc-ipv6.h:94:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern pcap_t *thc_pcap_init(char *interface, char *capture); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: implementation6.c:1367:34: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] BUILDSTDERR: p = thc_pcap_init(interface, string); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from implementation6.c:19: BUILDSTDERR: thc-ipv6.h:94:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern pcap_t *thc_pcap_init(char *interface, char *capture); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: implementation6.c:1382:34: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] BUILDSTDERR: p = thc_pcap_init(interface, string2); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from implementation6.c:19: BUILDSTDERR: thc-ipv6.h:94:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern pcap_t *thc_pcap_init(char *interface, char *capture); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: implementation6.c:1394:34: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] BUILDSTDERR: p = thc_pcap_init(interface, string); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from implementation6.c:19: BUILDSTDERR: thc-ipv6.h:94:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern pcap_t *thc_pcap_init(char *interface, char *capture); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: implementation6d.c: In function 'main': BUILDSTDERR: implementation6d.c:163:36: warning: pointer targets in passing argument 2 of 'thc_pcap_function' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_pcap_function(interface, string, (char *) check_packet, 0, NULL) < 0) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from implementation6d.c:32: BUILDSTDERR: thc-ipv6.h:93:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_pcap_function(char *interface, char *capture, char *function, int promisc, char *opt); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: sendpees6.c: In function 'main': BUILDSTDERR: sendpees6.c:39:7: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: dev = argv[1]; BUILDSTDERR: ^ BUILDSTDERR: sendpees6.c:40:24: warning: pointer targets in passing argument 1 of 'thc_get_own_ipv6' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_get_own_ipv6(dev, NULL, PREFER_LINK) == NULL) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from sendpees6.c:18: BUILDSTDERR: thc-ipv6.h:103:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_get_own_ipv6(char *interface, unsigned char *dst, int prefer); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: sendpees6.c:54:30: warning: pointer targets in passing argument 1 of 'thc_generate_cga' differ in signedness [-Wpointer-sign] BUILDSTDERR: cga_opt = thc_generate_cga(prefix, key, &cga); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from sendpees6.c:18: BUILDSTDERR: thc-ipv6.h:369:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern thc_cga_hdr *thc_generate_cga(unsigned char *prefix, thc_key_t * key, unsigned char **cga); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: sendpees6.c:67:39: warning: pointer targets in passing argument 1 of 'thc_create_ipv6_extended' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((pkt = thc_create_ipv6_extended(dev, PREFER_GLOBAL, &pkt_len, cga, dst6, 0, 0, 0, 0, 0)) == NULL) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from sendpees6.c:18: BUILDSTDERR: thc-ipv6.h:122:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_create_ipv6_extended(char *interface, int prefer, int *pkt_len, unsigned char *src, unsigned char *dst, int ttl, int length, int label, int class, int version); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: sendpees6.c:71:71: warning: pointer targets in passing argument 6 of 'thc_add_send' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_send(pkt, &pkt_len, ICMP6_NEIGHBORSOL, 0xfacebabe, 0x0, dummy, 24, cga_opt, key, NULL, 0) < 0) { BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from sendpees6.c:18: BUILDSTDERR: thc-ipv6.h:371:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_send(unsigned char *pkt, int *pkt_len, int type, int code, unsigned int flags, unsigned char *data, int data_len, thc_cga_hdr * cga_hdr, thc_key_t * key, BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: sendpees6.c:77:24: warning: pointer targets in passing argument 1 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_generate_pkt(dev, srchw, dsthw, pkt, &pkt_len) < 0) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from sendpees6.c:18: BUILDSTDERR: thc-ipv6.h:140:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: sendpees6.c:77:29: warning: pointer targets in passing argument 2 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_generate_pkt(dev, srchw, dsthw, pkt, &pkt_len) < 0) { BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from sendpees6.c:18: BUILDSTDERR: thc-ipv6.h:140:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: sendpees6.c:77:36: warning: pointer targets in passing argument 3 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_generate_pkt(dev, srchw, dsthw, pkt, &pkt_len) < 0) { BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from sendpees6.c:18: BUILDSTDERR: thc-ipv6.h:140:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: sendpees6.c:85:18: warning: pointer targets in passing argument 1 of 'thc_send_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_send_pkt(dev, pkt, &pkt_len); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from sendpees6.c:18: BUILDSTDERR: thc-ipv6.h:141:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_send_pkt(char *interface, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o sendpeesmp6 sendpeesmp6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o randicmp6 randicmp6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: alive6.c:1413:42: warning: 'tip8' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: cip8 = fip8 + (step + cip8 - tip8); BUILDSTDERR: ~~~~~~~~~~~~~^~~~~~~ BUILDSTDERR: alive6.c:1439:16: warning: 'tip7' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (cip7 < tip7) { BUILDSTDERR: ^ BUILDSTDERR: alive6.c:1450:16: warning: 'tip6' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (cip6 + step <= tip6) { BUILDSTDERR: ^ BUILDSTDERR: alive6.c:1479:16: warning: 'tip5' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (cip5 < tip5) { BUILDSTDERR: ^ BUILDSTDERR: alive6.c:1487:12: warning: 'tip4' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (fip4 != tip4 && (inc_step || inc_next)) { BUILDSTDERR: ^ BUILDSTDERR: alive6.c:1507:12: warning: 'tip3' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (fip3 != tip3 && (inc_step || inc_next)) { BUILDSTDERR: ^ BUILDSTDERR: alive6.c:1527:12: warning: 'tip2' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (fip2 != tip2 && (inc_step || inc_next)) { BUILDSTDERR: ^ BUILDSTDERR: alive6.c:1547:12: warning: 'tip1' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (fip1 != tip1 && (inc_step || inc_next)) { BUILDSTDERR: ^ BUILDSTDERR: alive6.c:1413:20: warning: 'fip8' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: cip8 = fip8 + (step + cip8 - tip8); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: alive6.c:1433:20: warning: 'fip7' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: cip7 = fip7 + (step + cip7 - tip7); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: alive6.c:1453:20: warning: 'fip6' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: cip6 = fip6 + (step + cip6 - tip6); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: alive6.c:1473:20: warning: 'fip5' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: cip5 = fip5 + (step + cip5 - tip5); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: alive6.c:1487:12: warning: 'fip4' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (fip4 != tip4 && (inc_step || inc_next)) { BUILDSTDERR: ^ BUILDSTDERR: alive6.c:1507:12: warning: 'fip3' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (fip3 != tip3 && (inc_step || inc_next)) { BUILDSTDERR: ^ BUILDSTDERR: alive6.c:1527:12: warning: 'fip2' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (fip2 != tip2 && (inc_step || inc_next)) { BUILDSTDERR: ^ BUILDSTDERR: alive6.c:1547:12: warning: 'fip1' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (fip1 != tip1 && (inc_step || inc_next)) { BUILDSTDERR: ^ BUILDSTDERR: alive6.c:1410:22: warning: 'cip8' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (cip8 + step <= tip8) { BUILDSTDERR: ~~~~~^~~~~~ BUILDSTDERR: alive6.c:1430:22: warning: 'cip7' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (cip7 + step <= tip7) { BUILDSTDERR: ~~~~~^~~~~~ BUILDSTDERR: alive6.c:1450:22: warning: 'cip6' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (cip6 + step <= tip6) { BUILDSTDERR: ~~~~~^~~~~~ BUILDSTDERR: alive6.c:1470:22: warning: 'cip5' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (cip5 + step <= tip5) { BUILDSTDERR: ~~~~~^~~~~~ BUILDSTDERR: alive6.c:1490:22: warning: 'cip4' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (cip4 + step <= tip4) { BUILDSTDERR: ~~~~~^~~~~~ BUILDSTDERR: alive6.c:1510:22: warning: 'cip3' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (cip3 + step <= tip3) { BUILDSTDERR: ~~~~~^~~~~~ BUILDSTDERR: alive6.c:1530:22: warning: 'cip2' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (cip2 + step <= tip2) { BUILDSTDERR: ~~~~~^~~~~~ BUILDSTDERR: alive6.c:1550:22: warning: 'cip1' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (cip1 + step <= tip1) { BUILDSTDERR: ~~~~~^~~~~~ BUILDSTDERR: alive6.c:1237:14: warning: 'ip3' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: ip3++; BUILDSTDERR: ~~~^~ BUILDSTDERR: alive6.c:1240:14: warning: 'ip2' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: ip2++; BUILDSTDERR: ~~~^~ BUILDSTDERR: alive6.c:1244:14: warning: 'ip1' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: ip1++; BUILDSTDERR: ~~~^~ BUILDSTDERR: alive6.c:1917:28: warning: 'ok' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (curr > 1 || list > 0 || ok != 0 || tcount > alive_no || still_not_there == 1) { BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ BUILDSTDERR: alive6.c:686:119: warning: 'errcnt' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: int no_vendid = 0, no_nets = 0, local = -1, no_send = 1, no_send_local = 1, no_send_remote = 2, nos = 0, renew = 0, errcnt, sendrc; BUILDSTDERR: ^~~~~~ BUILDSTDERR: alive6.c:1292:16: warning: 'cur_dst' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: p2 = thc_ipv62notation(cur_dst); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: sendpeesmp6.c: In function 'main': BUILDSTDERR: sendpeesmp6.c:79:7: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: dev = argv[1]; /* read interface from commandline */ BUILDSTDERR: ^ BUILDSTDERR: sendpeesmp6.c:80:13: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((addr = thc_resolve6(argv[3])) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: sendpeesmp6.c:84:24: warning: pointer targets in passing argument 1 of 'thc_get_own_ipv6' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_get_own_ipv6(dev, NULL, PREFER_LINK) == NULL) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from sendpeesmp6.c:17: BUILDSTDERR: thc-ipv6.h:103:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_get_own_ipv6(char *interface, unsigned char *dst, int prefer); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: sendpeesmp6.c:97:30: warning: pointer targets in passing argument 1 of 'thc_generate_cga' differ in signedness [-Wpointer-sign] BUILDSTDERR: cga_opt = thc_generate_cga(prefix, key, &cga); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from sendpeesmp6.c:17: BUILDSTDERR: thc-ipv6.h:369:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern thc_cga_hdr *thc_generate_cga(unsigned char *prefix, thc_key_t * key, unsigned char **cga); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: sendpeesmp6.c:111:23: warning: pointer targets in passing argument 1 of 'thc_get_mac' differ in signedness [-Wpointer-sign] BUILDSTDERR: tgthw = thc_get_mac(dev, cga, dst6); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from sendpeesmp6.c:17: BUILDSTDERR: thc-ipv6.h:105:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_get_mac(char *interface, unsigned char *src, unsigned char *dst); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: sendpeesmp6.c:145:43: warning: pointer targets in passing argument 1 of 'thc_create_ipv6_extended' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((pkt = thc_create_ipv6_extended(dev, PREFER_LINK, &pkt_len, cga, dst6, 0, 0, 0, 0, 0)) == NULL) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from sendpeesmp6.c:17: BUILDSTDERR: thc-ipv6.h:122:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_create_ipv6_extended(char *interface, int prefer, int *pkt_len, unsigned char *src, unsigned char *dst, int ttl, int length, int label, int class, int version); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: sendpeesmp6.c:151:70: warning: pointer targets in passing argument 6 of 'thc_add_send' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_send(pkt, &pkt_len, ICMP6_NEIGHBORSOL, 0x0, flags, soldummy, 24, cga_opt, key, NULL, 0) < 0) { BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from sendpeesmp6.c:17: BUILDSTDERR: thc-ipv6.h:371:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_send(unsigned char *pkt, int *pkt_len, int type, int code, unsigned int flags, unsigned char *data, int data_len, thc_cga_hdr * cga_hdr, thc_key_t * key, BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: sendpeesmp6.c:158:38: warning: pointer targets in passing argument 1 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((result = thc_generate_pkt(dev, test, tgthw, pkt, &pkt_len)) < 0) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from sendpeesmp6.c:17: BUILDSTDERR: thc-ipv6.h:140:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: sendpeesmp6.c:168:22: warning: pointer targets in passing argument 1 of 'thc_send_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_send_pkt(dev, pkt, &pkt_len); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from sendpeesmp6.c:17: BUILDSTDERR: thc-ipv6.h:141:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_send_pkt(char *interface, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fuzz_ip6 fuzz_ip6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o flood_mld6 flood_mld6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: fuzz_ip6.c: In function 'main': BUILDSTDERR: fuzz_ip6.c:346:15: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((srcmac = thc_get_own_mac(interface)) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: fuzz_ip6.c:376:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((real_dst6 = thc_resolve6(argv[optind + 1])) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: fuzz_ip6.c:408:10: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, thc_ipv62notation(src6)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from fuzz_ip6.c:1: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fuzz_ip6.c:408:18: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, thc_ipv62notation(src6)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from fuzz_ip6.c:1: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fuzz_ip6.c:419:7: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: dns = thc_resolve6("ff02::fb"); BUILDSTDERR: ^ BUILDSTDERR: fuzz_ip6.c:420:10: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: route6 = thc_resolve6("2a01::"); BUILDSTDERR: ^ BUILDSTDERR: fuzz_ip6.c:422:37: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init(interface, string)) == NULL) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from fuzz_ip6.c:11: BUILDSTDERR: thc-ipv6.h:94:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern pcap_t *thc_pcap_init(char *interface, char *capture); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fuzz_ip6.c:430:35: warning: pointer targets in passing argument 3 of 'check_alive' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (check_alive(p, interface, srcmac, mac, src6, real_dst6) == 0) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: fuzz_ip6.c:209:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int check_alive(pcap_t * p, char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *src, unsigned char *dst) { BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fuzz_ip6.c:430:54: warning: pointer targets in passing argument 6 of 'check_alive' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (check_alive(p, interface, srcmac, mac, src6, real_dst6) == 0) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fuzz_ip6.c:209:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int check_alive(pcap_t * p, char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *src, unsigned char *dst) { BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fuzz_ip6.c:481:40: warning: pointer targets in passing argument 3 of 'addfuzz' differ in signedness [-Wpointer-sign] BUILDSTDERR: addfuzz(&fuzzbuf, &fuzzbuf_sz, buf3); BUILDSTDERR: ^~~~ BUILDSTDERR: fuzz_ip6.c:197:6: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: void addfuzz(char **fuzzbuf, int *fuzzbuf_sz, char *fuzztype) { BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fuzz_ip6.c:536:38: warning: pointer targets in passing argument 3 of 'addfuzz' differ in signedness [-Wpointer-sign] BUILDSTDERR: addfuzz(&fuzzbuf, &fuzzbuf_sz, buf3); BUILDSTDERR: ^~~~ BUILDSTDERR: fuzz_ip6.c:197:6: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: void addfuzz(char **fuzzbuf, int *fuzzbuf_sz, char *fuzztype) { BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fuzz_ip6.c:579:84: warning: pointer targets in passing argument 10 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, 65532, port, test_current, 0, TCP_SYN, 5760, 0, (unsigned char *) buf, 20, (unsigned char *) buf, 20) < 0) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from fuzz_ip6.c:11: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fuzz_ip6.c:579:111: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, 65532, port, test_current, 0, TCP_SYN, 5760, 0, (unsigned char *) buf, 20, (unsigned char *) buf, 20) < 0) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from fuzz_ip6.c:11: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fuzz_ip6.c:609:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: tmp6 = thc_get_own_ipv6(interface, dst6, PREFER_GLOBAL); BUILDSTDERR: ^ BUILDSTDERR: fuzz_ip6.c:611:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: tmp6 = someaddr6; BUILDSTDERR: ^ BUILDSTDERR: fuzz_ip6.c:625:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: tmp6 = thc_get_own_ipv6(interface, dst6, PREFER_GLOBAL); BUILDSTDERR: ^ BUILDSTDERR: fuzz_ip6.c:627:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: tmp6 = someaddr6; BUILDSTDERR: ^ BUILDSTDERR: fuzz_ip6.c:631:10: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: tmp6 = thc_resolve6("ff00::"); BUILDSTDERR: ^ BUILDSTDERR: fuzz_ip6.c:636:10: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: tmp6 = thc_get_own_ipv6(interface, dst6, PREFER_GLOBAL); BUILDSTDERR: ^ BUILDSTDERR: fuzz_ip6.c:642:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: tmp6 = thc_get_own_ipv6(interface, dst6, PREFER_GLOBAL); BUILDSTDERR: ^ BUILDSTDERR: fuzz_ip6.c:644:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: tmp6 = someaddr6; BUILDSTDERR: ^ BUILDSTDERR: fuzz_ip6.c:656:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: tmp6 = someaddr6; BUILDSTDERR: ^ BUILDSTDERR: fuzz_ip6.c:658:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: tmp6 = thc_resolve6("ff05::3"); BUILDSTDERR: ^ BUILDSTDERR: fuzz_ip6.c:844:35: warning: pointer targets in passing argument 2 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_generate_pkt(interface, srcmac, mac, pkt, &pkt_len) < 0) BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from fuzz_ip6.c:11: BUILDSTDERR: thc-ipv6.h:140:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_ip6.c:1071:41: warning: pointer targets in passing argument 3 of 'check_alive' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (check_alive(p, interface, srcmac, mac, src6, real_dst6) == 0) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: fuzz_ip6.c:209:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int check_alive(pcap_t * p, char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *src, unsigned char *dst) { BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fuzz_ip6.c:1071:60: warning: pointer targets in passing argument 6 of 'check_alive' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (check_alive(p, interface, srcmac, mac, src6, real_dst6) == 0) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fuzz_ip6.c:209:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int check_alive(pcap_t * p, char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *src, unsigned char *dst) { BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fuzz_ip6.c:1088:35: warning: pointer targets in passing argument 3 of 'check_alive' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (check_alive(p, interface, srcmac, mac, src6, real_dst6) == 0) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: fuzz_ip6.c:209:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int check_alive(pcap_t * p, char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *src, unsigned char *dst) { BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fuzz_ip6.c:1088:54: warning: pointer targets in passing argument 6 of 'check_alive' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (check_alive(p, interface, srcmac, mac, src6, real_dst6) == 0) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fuzz_ip6.c:209:5: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: int check_alive(pcap_t * p, char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *src, unsigned char *dst) { BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: flood_mld6.c: In function 'main': BUILDSTDERR: flood_mld6.c:23:25: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *mac6 = mac, *ip6 = thc_resolve6("fe80::ff:fe00:0"); BUILDSTDERR: ^~~ BUILDSTDERR: flood_mld6.c:29:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int rawmode = 0; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fuzz_ip6.c:946:57: warning: array subscript 7 is above array bounds of 'unsigned int[2]' [-Warray-bounds] BUILDSTDERR: hdr->pkt[test_pos] = hdr->pkt[test_pos] ^ xors[test_cnt - COUNT_BYTE - 1]; BUILDSTDERR: ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o flood_mld26 flood_mld26.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: flood_mld26.c: In function 'main': BUILDSTDERR: flood_mld26.c:25:25: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *mac6 = mac, *ip6 = thc_resolve6("fe80::ff:fe00:0"); BUILDSTDERR: ^~~ BUILDSTDERR: flood_mld26.c:31:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int rawmode = 0; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: flood_mld26.c:28:13: warning: variable 'prefer' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int i, j, prefer = PREFER_LINK; BUILDSTDERR: ^~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o flood_router6 flood_router6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: flood_router6.c: In function 'main': BUILDSTDERR: flood_router6.c:25:46: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *routerip6, *route6, *mac6 = mac, *ip6; BUILDSTDERR: ^~~ BUILDSTDERR: flood_router6.c:30:20: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int pkt_len = 0, rawmode = 0, count = 0, do_hop = 0, do_frag = 0, cnt, do_dst = 0, offset = 14; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: flood_router6.c:30:69: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: int pkt_len = 0, rawmode = 0, count = 0, do_hop = 0, do_frag = 0, cnt, do_dst = 0, offset = 14; BUILDSTDERR: ^~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o flood_advertise6 flood_advertise6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o flood_solicitate6 flood_solicitate6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o trace6 trace6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o exploit6 exploit6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: flood_advertise6.c: In function 'main': BUILDSTDERR: flood_advertise6.c:24:25: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *mac6 = mac, *ip6; BUILDSTDERR: ^~~ BUILDSTDERR: flood_advertise6.c:29:73: warning: variable 'keepmac' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int pkt_len = 0, flags, rawmode = 0, count = 0, prefer = PREFER_LINK, keepmac = 0; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: flood_advertise6.c:29:27: warning: unused variable 'rawmode' [-Wunused-variable] BUILDSTDERR: int pkt_len = 0, flags, rawmode = 0, count = 0, prefer = PREFER_LINK, keepmac = 0; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: flood_solicitate6.c: In function 'main': BUILDSTDERR: flood_solicitate6.c:25:25: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *mac6 = mac, *ip6, *query6, *smac = NULL; BUILDSTDERR: ^~~ BUILDSTDERR: flood_solicitate6.c:47:10: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: smac = srcmac; BUILDSTDERR: ^ BUILDSTDERR: flood_solicitate6.c:30:20: warning: unused variable 'rawmode' [-Wunused-variable] BUILDSTDERR: int pkt_len = 0, rawmode = 0, count = 0; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: trace6.c: In function 'check_packets': BUILDSTDERR: trace6.c:109:23: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: remark[pos] = strdup("\t[ping reply received]"); BUILDSTDERR: ^ BUILDSTDERR: trace6.c:156:25: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: remark[pos] = strdup("\t[unreachable message received]"); BUILDSTDERR: ^ BUILDSTDERR: trace6.c:179:25: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: remark[pos] = strdup("\t[parameter problem received]"); BUILDSTDERR: ^ BUILDSTDERR: trace6.c:202:23: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: remark[pos] = strdup("\t[TCP SYN-ACK reply received]"); BUILDSTDERR: ^ BUILDSTDERR: trace6.c:205:23: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: remark[pos] = strdup("\t[TCP RST reply received]"); BUILDSTDERR: ^ BUILDSTDERR: trace6.c:208:23: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: remark[pos] = strdup("\t[TCP unknown reply received]"); BUILDSTDERR: ^ BUILDSTDERR: trace6.c:219:21: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: remark[pos] = strdup("\t[UDP reply received]"); BUILDSTDERR: ^ BUILDSTDERR: trace6.c:243:25: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: remark[pos] = strdup("\t[port unreachable message received]"); BUILDSTDERR: ^ BUILDSTDERR: trace6.c:247:25: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: remark[pos] = strdup("\t[unreachable message received]"); BUILDSTDERR: ^ BUILDSTDERR: trace6.c: In function 'main': BUILDSTDERR: trace6.c:330:13: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: interface = argv[optind]; BUILDSTDERR: ^ BUILDSTDERR: trace6.c:336:29: warning: pointer targets in passing argument 1 of 'thc_get_own_ipv6' differ in signedness [-Wpointer-sign] BUILDSTDERR: src6 = thc_get_own_ipv6(interface, dst6, PREFER_GLOBAL); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from trace6.c:12: BUILDSTDERR: thc-ipv6.h:103:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_get_own_ipv6(char *interface, unsigned char *dst, int prefer); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: trace6.c:337:28: warning: pointer targets in passing argument 1 of 'thc_get_own_mac' differ in signedness [-Wpointer-sign] BUILDSTDERR: srcmac = thc_get_own_mac(interface); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from trace6.c:12: BUILDSTDERR: thc-ipv6.h:101:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_get_own_mac(char *interface); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: trace6.c:360:42: warning: pointer targets in passing argument 1 of 'thc_get_mac' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (rawmode == 0 && (mac = thc_get_mac(interface, src6, dst6)) == NULL) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from trace6.c:12: BUILDSTDERR: thc-ipv6.h:105:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_get_mac(char *interface, unsigned char *src, unsigned char *dst); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: trace6.c:364:10: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, thc_ipv62notation(src6)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from trace6.c:1: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: trace6.c:364:18: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, thc_ipv62notation(src6)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from trace6.c:1: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: trace6.c:368:15: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: remark[i] = strdup(""); BUILDSTDERR: ^ BUILDSTDERR: trace6.c:372:26: warning: pointer targets in passing argument 1 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init(interface, string)) == NULL) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from trace6.c:12: BUILDSTDERR: thc-ipv6.h:94:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern pcap_t *thc_pcap_init(char *interface, char *capture); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: trace6.c:372:37: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init(interface, string)) == NULL) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from trace6.c:12: BUILDSTDERR: thc-ipv6.h:94:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern pcap_t *thc_pcap_init(char *interface, char *capture); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: trace6.c:377:26: warning: pointer targets in passing argument 1 of 'thc_get_mtu' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((mtu = thc_get_mtu(interface)) < 1280) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from trace6.c:12: BUILDSTDERR: thc-ipv6.h:102:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_get_mtu(char *interface); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: trace6.c:425:47: warning: pointer targets in passing argument 1 of 'thc_create_ipv6_extended' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((pkt = thc_create_ipv6_extended(interface, PREFER_GLOBAL, &pkt_len, src6, dst6, i, 0, 0, 0, 0)) == NULL) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from trace6.c:12: BUILDSTDERR: thc-ipv6.h:122:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_create_ipv6_extended(char *interface, int prefer, int *pkt_len, unsigned char *src, unsigned char *dst, int ttl, int length, int label, int class, int version); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: trace6.c:458:52: warning: pointer targets in passing argument 1 of 'thc_create_ipv6_extended' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((pkt2 = thc_create_ipv6_extended(interface, 0, &pkt2_len, dst6, foo6, i, 0, 0, 0, 0)) == NULL) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from trace6.c:12: BUILDSTDERR: thc-ipv6.h:122:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_create_ipv6_extended(char *interface, int prefer, int *pkt_len, unsigned char *src, unsigned char *dst, int ttl, int length, int label, int class, int version); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: trace6.c:462:32: warning: pointer targets in passing argument 1 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_generate_pkt(interface, foomac, foomac, pkt2, &pkt2_len); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from trace6.c:12: BUILDSTDERR: thc-ipv6.h:140:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: trace6.c:484:88: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, baseport + i, dport, 0, buf_len > 0 ? buf : NULL, buf_len) < 0) BUILDSTDERR: ^ BUILDSTDERR: In file included from trace6.c:12: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: trace6.c:486:125: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: } else if (thc_add_tcp(pkt, &pkt_len, baseport + i, dport, pid, 0, TCP_SYN, 5760, 0, NULL, 0, buf_len > 0 ? buf : NULL, buf_len) < 0) BUILDSTDERR: ^ BUILDSTDERR: In file included from trace6.c:12: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: trace6.c:489:41: warning: pointer targets in passing argument 1 of 'thc_generate_and_send_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_generate_and_send_pkt(interface, srcmac, mac, pkt, &pkt_len) < 0) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from trace6.c:12: BUILDSTDERR: thc-ipv6.h:139:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_generate_and_send_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: trace6.c:523:21: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: position[up_to] = strdup("!!!"); BUILDSTDERR: ^ BUILDSTDERR: trace6.c:534:16: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: snprintf(text, sizeof(text), " with starting MTU %d", orig_mtu); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from trace6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (snprintf (char *__restrict __s, size_t __n, BUILDSTDERR: ^~~~~ BUILDSTDERR: trace6.c:548:20: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: snprintf(text, sizeof(text), " - new MTU %d", rmtu[i]); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from trace6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (snprintf (char *__restrict __s, size_t __n, BUILDSTDERR: ^~~~~ BUILDSTDERR: trace6.c:550:20: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: snprintf(text, sizeof(text), " - new MTU %d - 6in4 tunnel endpoint", rmtu[i]); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from trace6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (snprintf (char *__restrict __s, size_t __n, BUILDSTDERR: ^~~~~ BUILDSTDERR: trace6.c:552:20: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: snprintf(text, sizeof(text), " - new MTU %d - PPP or Teredo tunnel endpoint", rmtu[i]); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from trace6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (snprintf (char *__restrict __s, size_t __n, BUILDSTDERR: ^~~~~ BUILDSTDERR: trace6.c:554:20: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: snprintf(text, sizeof(text), " - new MTU %d - PPTP tunnel endpoint", rmtu[i]); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from trace6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (snprintf (char *__restrict __s, size_t __n, BUILDSTDERR: ^~~~~ BUILDSTDERR: trace6.c:556:20: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: snprintf(text, sizeof(text), " - new MTU %d - AYIYA tunnel endpoint", rmtu[i]); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from trace6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (snprintf (char *__restrict __s, size_t __n, BUILDSTDERR: ^~~~~ BUILDSTDERR: trace6.c:558:20: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: snprintf(text, sizeof(text), " - new MTU %d", rmtu[i]); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from trace6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (snprintf (char *__restrict __s, size_t __n, BUILDSTDERR: ^~~~~ BUILDSTDERR: trace6.c:560:20: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: snprintf(text, sizeof(text), " - new MTU %d", rmtu[i]); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from trace6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (snprintf (char *__restrict __s, size_t __n, BUILDSTDERR: ^~~~~ BUILDSTDERR: trace6.c:566:49: warning: pointer targets in passing argument 1 of 'thc_resolve6' differ in signedness [-Wpointer-sign] BUILDSTDERR: he = gethostbyaddr(thc_resolve6(position[i]), 16, AF_INET6); BUILDSTDERR: ~~~~~~~~^~~ BUILDSTDERR: In file included from trace6.c:12: BUILDSTDERR: thc-ipv6.h:99:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_resolve6(char *target); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: exploit6.c: In function 'main': BUILDSTDERR: exploit6.c:106:10: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, thc_ipv62notation(src6)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from exploit6.c:6: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: exploit6.c:106:18: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, thc_ipv62notation(src6)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from exploit6.c:6: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: exploit6.c:107:10: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string2, thc_ipv62notation(dst6)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from exploit6.c:6: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: exploit6.c:107:19: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string2, thc_ipv62notation(dst6)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from exploit6.c:6: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: exploit6.c:124:37: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init(interface, string)) == NULL) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from exploit6.c:16: BUILDSTDERR: thc-ipv6.h:94:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern pcap_t *thc_pcap_init(char *interface, char *capture); BUILDSTDERR: ^~~~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o denial6 denial6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: exploit6.c:66:34: warning: unused variable 'pkt_len3' [-Wunused-variable] BUILDSTDERR: int pkt_len = 0, pkt_len2 = 0, pkt_len3 = 0, noping = 0, mtu = 1500; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: exploit6.c:66:20: warning: unused variable 'pkt_len2' [-Wunused-variable] BUILDSTDERR: int pkt_len = 0, pkt_len2 = 0, pkt_len3 = 0, noping = 0, mtu = 1500; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: exploit6.c:65:45: warning: unused variable 'pkt3' [-Wunused-variable] BUILDSTDERR: unsigned char *pkt = NULL, *pkt2 = NULL, *pkt3 = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: exploit6.c:65:31: warning: unused variable 'pkt2' [-Wunused-variable] BUILDSTDERR: unsigned char *pkt = NULL, *pkt2 = NULL, *pkt3 = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: exploit6.c:63:14: warning: unused variable 'j' [-Wunused-variable] BUILDSTDERR: int i = 0, j, srcmtu, fragsize, offset = 14; BUILDSTDERR: ^ BUILDSTDERR: exploit6.c:61:50: warning: unused variable 'routers' [-Wunused-variable] BUILDSTDERR: unsigned char *srcmac = NULL, *dstmac = NULL, *routers[2], null_buffer[6]; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: exploit6.c:60:61: warning: variable 'mcast6' set but not used [-Wunused-but-set-variable] BUILDSTDERR: unsigned char *dst6, *ldst6 = malloc(16), *src6, *lsrc6, *mcast6, *route6, *mal; BUILDSTDERR: ^~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fake_dhcps6 fake_dhcps6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: denial6.c: In function 'main': BUILDSTDERR: denial6.c:276:15: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: randptr = ipv6->pkt + do_hdr_size + 40 + 8 + 4; BUILDSTDERR: ^ BUILDSTDERR: denial6.c:278:15: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: randptr = ipv6->pkt + 14 + 40 + 8 + 4; BUILDSTDERR: ^ BUILDSTDERR: denial6.c:49:60: warning: unused variable 'mtu' [-Wunused-variable] BUILDSTDERR: int pkt_len = 0, pkt_len2 = 0, pkt_len3 = 0, noping = 0, mtu = 1500; BUILDSTDERR: ^~~ BUILDSTDERR: denial6.c:49:48: warning: unused variable 'noping' [-Wunused-variable] BUILDSTDERR: int pkt_len = 0, pkt_len2 = 0, pkt_len3 = 0, noping = 0, mtu = 1500; BUILDSTDERR: ^~~~~~ BUILDSTDERR: denial6.c:49:34: warning: unused variable 'pkt_len3' [-Wunused-variable] BUILDSTDERR: int pkt_len = 0, pkt_len2 = 0, pkt_len3 = 0, noping = 0, mtu = 1500; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: denial6.c:49:20: warning: unused variable 'pkt_len2' [-Wunused-variable] BUILDSTDERR: int pkt_len = 0, pkt_len2 = 0, pkt_len3 = 0, noping = 0, mtu = 1500; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: denial6.c:48:45: warning: unused variable 'pkt3' [-Wunused-variable] BUILDSTDERR: unsigned char *pkt = NULL, *pkt2 = NULL, *pkt3 = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: denial6.c:48:31: warning: unused variable 'pkt2' [-Wunused-variable] BUILDSTDERR: unsigned char *pkt = NULL, *pkt2 = NULL, *pkt3 = NULL; BUILDSTDERR: ^~~~ BUILDSTDERR: denial6.c:47:24: warning: variable 'fragsize' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int i, j, k, srcmtu, fragsize; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: denial6.c:46:17: warning: unused variable 'hdr' [-Wunused-variable] BUILDSTDERR: thc_ipv6_hdr *hdr; BUILDSTDERR: ^~~ BUILDSTDERR: denial6.c:45:50: warning: unused variable 'routers' [-Wunused-variable] BUILDSTDERR: unsigned char *srcmac = NULL, *dstmac = NULL, *routers[2], null_buffer[6]; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: denial6.c:44:79: warning: unused variable 'mal' [-Wunused-variable] BUILDSTDERR: unsigned char *dst6, *ldst6 = malloc(16), *src6, *lsrc6, *mcast6, *route6, *mal; BUILDSTDERR: ^~~ BUILDSTDERR: denial6.c:44:70: warning: unused variable 'route6' [-Wunused-variable] BUILDSTDERR: unsigned char *dst6, *ldst6 = malloc(16), *src6, *lsrc6, *mcast6, *route6, *mal; BUILDSTDERR: ^~~~~~ BUILDSTDERR: denial6.c:44:61: warning: variable 'mcast6' set but not used [-Wunused-but-set-variable] BUILDSTDERR: unsigned char *dst6, *ldst6 = malloc(16), *src6, *lsrc6, *mcast6, *route6, *mal; BUILDSTDERR: ^~~~~~ BUILDSTDERR: denial6.c:42:28: warning: unused variable 'tmplen' [-Wunused-variable] BUILDSTDERR: int test = 0, count = 1, tmplen; BUILDSTDERR: ^~~~~~ BUILDSTDERR: fake_dhcps6.c: In function 'main': BUILDSTDERR: fake_dhcps6.c:25:37: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *routerip6, *mac6 = mac, *ip6, *ptr, *ptr1, *ptr2, *ptr3; BUILDSTDERR: ^~~ BUILDSTDERR: fake_dhcps6.c:50:25: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (argc >= 6 && (ptr = argv[5]) != NULL) BUILDSTDERR: ^ BUILDSTDERR: fake_dhcps6.c:51:12: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] BUILDSTDERR: sscanf(ptr, "%x:%x:%x:%x:%x:%x", (unsigned int *) &mac[0], (unsigned int *) &mac[1], (unsigned int *) &mac[2], (unsigned int *) &mac[3], (unsigned int *) &mac[4], BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from fake_dhcps6.c:1: BUILDSTDERR: /usr/include/stdio.h:414:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fake_dhcps6.c:67:12: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((ptr = index(routerip, '/')) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: fake_dhcps6.c:72:15: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] BUILDSTDERR: size = atoi(ptr); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from fake_dhcps6.c:1: BUILDSTDERR: /usr/include/stdlib.h:361:1: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (atoi (const char *__nptr)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fake_dhcps6.c:115:50: warning: pointer targets in passing argument 3 of 'thc_bind_multicast_to_socket' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_bind_multicast_to_socket(s, interface, thc_resolve6("ff02::1:2")) < 0 || thc_bind_multicast_to_socket(s, interface, thc_resolve6("ff02::1:3")) < 0) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from fake_dhcps6.c:13: BUILDSTDERR: thc-ipv6.h:155:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_bind_multicast_to_socket(int s, char *interface, char *src); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fake_dhcps6.c:115:127: warning: pointer targets in passing argument 3 of 'thc_bind_multicast_to_socket' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_bind_multicast_to_socket(s, interface, thc_resolve6("ff02::1:2")) < 0 || thc_bind_multicast_to_socket(s, interface, thc_resolve6("ff02::1:3")) < 0) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from fake_dhcps6.c:13: BUILDSTDERR: thc-ipv6.h:155:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_bind_multicast_to_socket(int s, char *interface, char *src); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fake_dhcps6.c:153:23: warning: pointer targets in passing argument 1 of 'thc_dump_data' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_dump_data(rdatabuf, len, "Received Packet"); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from fake_dhcps6.c:13: BUILDSTDERR: thc-ipv6.h:147:13: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern void thc_dump_data(unsigned char *buf, int len, char *text); BUILDSTDERR: ^~~~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o flood_dhcpc6 flood_dhcpc6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: fake_dhcps6.c:155:32: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr2 = thc_ipv62notation((char *) &ddst.sin6_addr); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from fake_dhcps6.c:13: BUILDSTDERR: thc-ipv6.h:151:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_ipv62notation(unsigned char *string); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fake_dhcps6.c:158:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr1 = "Solicitate"; BUILDSTDERR: ^ BUILDSTDERR: fake_dhcps6.c:161:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr1 = "Advertise (illegal, ignored)"; BUILDSTDERR: ^ BUILDSTDERR: fake_dhcps6.c:164:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr1 = "Request"; BUILDSTDERR: ^ BUILDSTDERR: fake_dhcps6.c:167:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr1 = "Confirm"; BUILDSTDERR: ^ BUILDSTDERR: fake_dhcps6.c:170:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr1 = "Renew"; BUILDSTDERR: ^ BUILDSTDERR: fake_dhcps6.c:173:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr1 = "Rebind"; BUILDSTDERR: ^ BUILDSTDERR: fake_dhcps6.c:176:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr1 = "Reply (illegal, ignored)"; BUILDSTDERR: ^ BUILDSTDERR: fake_dhcps6.c:179:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr1 = "Release (ignored)"; BUILDSTDERR: ^ BUILDSTDERR: fake_dhcps6.c:182:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr1 = "Decline (ignored)"; BUILDSTDERR: ^ BUILDSTDERR: fake_dhcps6.c:185:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr1 = "Reconfigure (illegal, ignored)"; BUILDSTDERR: ^ BUILDSTDERR: fake_dhcps6.c:188:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr1 = "Information Request (ignored)"; BUILDSTDERR: ^ BUILDSTDERR: fake_dhcps6.c:191:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr1 = "Relay Forward (ignored)"; BUILDSTDERR: ^ BUILDSTDERR: fake_dhcps6.c:194:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr1 = "Relay Reply (ignored)"; BUILDSTDERR: ^ BUILDSTDERR: fake_dhcps6.c:197:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr1 = "Unknown (ignored)"; BUILDSTDERR: ^ BUILDSTDERR: fake_dhcps6.c:248:49: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr3 = thc_ipv62notation(wdatabuf + i + 4); BUILDSTDERR: ~~~~~~~~~~~~~^~~ BUILDSTDERR: In file included from fake_dhcps6.c:13: BUILDSTDERR: thc-ipv6.h:151:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_ipv62notation(unsigned char *string); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fake_dhcps6.c:280:25: warning: pointer targets in passing argument 1 of 'thc_dump_data' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_dump_data(wdatabuf, len, "Reply Packet"); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from fake_dhcps6.c:13: BUILDSTDERR: thc-ipv6.h:147:13: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern void thc_dump_data(unsigned char *buf, int len, char *text); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fake_dhcps6.c:288:36: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr2 = thc_ipv62notation((char *) &ddst.sin6_addr); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from fake_dhcps6.c:13: BUILDSTDERR: thc-ipv6.h:151:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_ipv62notation(unsigned char *string); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fake_dhcps6.c:27:13: warning: variable 'fromlen' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int size, fromlen = 0, /*mtu = 1500, */ i, j, k, l, m, s, len, t, mlen, csize = 0; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fake_dhcps6.c:292:21: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: } else if (m) BUILDSTDERR: ^ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fake_dns6d fake_dns6d.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: flood_dhcpc6.c: In function 'check_packets': BUILDSTDERR: flood_dhcpc6.c:103:46: warning: pointer targets in passing argument 2 of 'thc_generate_and_send_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_generate_and_send_pkt(interface, smac, ptr + 6, pkt, &pkt_len) < 0) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from flood_dhcpc6.c:13: BUILDSTDERR: thc-ipv6.h:139:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_generate_and_send_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: flood_dhcpc6.c: In function 'main': BUILDSTDERR: flood_dhcpc6.c:114:25: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *mac6 = mac, *src, *dst; BUILDSTDERR: ^~~ BUILDSTDERR: flood_dhcpc6.c:171:45: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init_promisc(interface, "ip6 and udp and dst port 546")) == NULL) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from flood_dhcpc6.c:13: BUILDSTDERR: thc-ipv6.h:95:16: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: flood_dhcpc6.c:214:14: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((pkt = thc_create_ipv6_extended(interface, PREFER_LINK, &pkt_len, src, dst, 1, 0, 0, 0, 0)) == NULL) BUILDSTDERR: ^ BUILDSTDERR: flood_dhcpc6.c:216:21: warning: pointer targets in passing argument 1 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, 546, 547, 0, wdatabuf, len) < 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from flood_dhcpc6.c:13: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: flood_dhcpc6.c:219:58: warning: pointer targets in passing argument 4 of 'thc_generate_and_send_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_generate_and_send_pkt(interface, mac6, NULL, pkt, &pkt_len) < 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from flood_dhcpc6.c:13: BUILDSTDERR: thc-ipv6.h:139:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_generate_and_send_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: flood_dhcpc6.c:221:30: warning: pointer targets in passing argument 1 of 'thc_destroy_packet' differ in signedness [-Wpointer-sign] BUILDSTDERR: pkt = thc_destroy_packet(pkt); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from flood_dhcpc6.c:13: BUILDSTDERR: thc-ipv6.h:142:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_destroy_packet(unsigned char *pkt); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: flood_dhcpc6.c:221:9: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: pkt = thc_destroy_packet(pkt); BUILDSTDERR: ^ BUILDSTDERR: flood_dhcpc6.c: In function 'check_packets': gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fragmentation6 fragmentation6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: flood_dhcpc6.c:103:9: warning: 'smac' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (thc_generate_and_send_pkt(interface, smac, ptr + 6, pkt, &pkt_len) < 0) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o kill_router6 kill_router6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: fake_dns6d.c: In function 'check_packets': BUILDSTDERR: fake_dns6d.c:30:113: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *ptr = (unsigned char *) data, *ptr2, *ptr3, *dst6, *src6, *dmac = NULL, *pkt, *look, *lwrite = lookup; BUILDSTDERR: ^~~~~~ BUILDSTDERR: fake_dns6d.c:64:10: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: src6 = ip6; // then use this as a spoofed source BUILDSTDERR: ^ BUILDSTDERR: fake_dns6d.c:70:40: warning: pointer targets in passing argument 2 of 'thc_generate_and_send_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_generate_and_send_pkt(interface, mac6, dmac, pkt, &pkt_len); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from fake_dns6d.c:13: BUILDSTDERR: thc-ipv6.h:139:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_generate_and_send_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fake_dns6d.c: In function 'main': BUILDSTDERR: fake_dns6d.c:119:10: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: mac6 = thc_get_own_mac(interface); BUILDSTDERR: ^ BUILDSTDERR: fake_dns6d.c:122:9: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ip6 = thc_resolve6(argv[3]); BUILDSTDERR: ^ BUILDSTDERR: fake_dns6d.c:124:9: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ip6 = thc_get_own_ipv6(interface, NULL, PREFER_LINK); BUILDSTDERR: ^ BUILDSTDERR: fake_dns6d.c:131:13: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: routerip6 = thc_resolve6(argv[2]); BUILDSTDERR: ^ BUILDSTDERR: fake_dns6d.c:146:45: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init_promisc(interface, "ip6 and udp and (dst port 53 or dst port 5353)")) == NULL) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from fake_dns6d.c:13: BUILDSTDERR: thc-ipv6.h:95:16: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fake_dnsupdate6 fake_dnsupdate6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: kill_router6.c: In function 'send_ra_kill': BUILDSTDERR: kill_router6.c:50:45: warning: pointer targets in passing argument 3 of 'thc_add_hdr_hopbyhop' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_hdr_hopbyhop(pkt, &pkt_len, frbuf2, frbuf2len) < 0) BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from kill_router6.c:11: BUILDSTDERR: thc-ipv6.h:129:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_hdr_hopbyhop(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: kill_router6.c:62:40: warning: pointer targets in passing argument 3 of 'thc_add_hdr_dst' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_hdr_dst(pkt, &pkt_len, buf3, sizeof(buf3)) < 0) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from kill_router6.c:11: BUILDSTDERR: thc-ipv6.h:128:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_hdr_dst(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: kill_router6.c:65:68: warning: pointer targets in passing argument 6 of 'thc_add_icmp6' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_icmp6(pkt, &pkt_len, ICMP6_ROUTERADV, 0, 0x40080000, frbuf, frbuflen, 0) < 0) BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from kill_router6.c:11: BUILDSTDERR: thc-ipv6.h:131:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_icmp6(unsigned char *pkt, int *pkt_len, int type, int code, unsigned int flags, unsigned char *data, int data_len, int checksum); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: kill_router6.c: In function 'main': BUILDSTDERR: kill_router6.c:83:25: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *mac6 = mac, *ip6; BUILDSTDERR: ^~~ BUILDSTDERR: kill_router6.c:86:27: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *dstmac = dmac; BUILDSTDERR: ^~~~ BUILDSTDERR: kill_router6.c:121:9: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: frbuf = buf; BUILDSTDERR: ^ BUILDSTDERR: kill_router6.c:122:10: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: frbuf2 = buf2; BUILDSTDERR: ^ BUILDSTDERR: kill_router6.c:129:34: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (argc - optind >= 4 && (ptr = argv[optind + 3]) != NULL) BUILDSTDERR: ^ BUILDSTDERR: kill_router6.c:130:12: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] BUILDSTDERR: sscanf(ptr, "%x:%x:%x:%x:%x:%x", (unsigned int *) &dmac[0], (unsigned int *) &dmac[1], (unsigned int *) &dmac[2], (unsigned int *) &dmac[3], (unsigned int *) &dmac[4], BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from kill_router6.c:1: BUILDSTDERR: /usr/include/stdio.h:414:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: kill_router6.c:134:34: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (argc - optind >= 3 && (ptr = argv[optind + 2]) != NULL) BUILDSTDERR: ^ BUILDSTDERR: kill_router6.c:135:12: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] BUILDSTDERR: sscanf(ptr, "%x:%x:%x:%x:%x:%x", (unsigned int *) &mac[0], (unsigned int *) &mac[1], (unsigned int *) &mac[2], (unsigned int *) &mac[3], (unsigned int *) &mac[4], BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from kill_router6.c:1: BUILDSTDERR: /usr/include/stdio.h:414:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: kill_router6.c:156:45: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init_promisc(interface, string)) == NULL) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from kill_router6.c:11: BUILDSTDERR: thc-ipv6.h:95:16: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: kill_router6.c:178:40: warning: pointer targets in passing argument 3 of 'thc_add_hdr_dst' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_hdr_dst(pkt, &pkt_len, buf3, sizeof(buf3)) < 0) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from kill_router6.c:11: BUILDSTDERR: thc-ipv6.h:128:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_hdr_dst(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: kill_router6.c:90:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int rawmode = 0; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fragmentation6.c: In function 'main': BUILDSTDERR: fragmentation6.c:36:20: warning: variable 'fragsize' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int offset = 14, fragsize = 0; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: kill_router6.c: In function 'send_ra_kill': BUILDSTDERR: kill_router6.c:31:20: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: int pkt_len = 0, cnt, i, len = header->caplen - 14, offset = 14; BUILDSTDERR: ^~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o ndpexhaust6 ndpexhaust6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: kill_router6.c: In function 'main': BUILDSTDERR: kill_router6.c:87:10: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: int i, cnt, offset = 14; BUILDSTDERR: ^~~ BUILDSTDERR: fake_dnsupdate6.c: In function 'main': BUILDSTDERR: fake_dnsupdate6.c:56:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((dst = thc_resolve6(argv[3])) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: ndpexhaust6.c: In function 'main': BUILDSTDERR: ndpexhaust6.c:56:10: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: dstnet = argv[2]; // hier stehts dstnet drin BUILDSTDERR: ^ BUILDSTDERR: ndpexhaust6.c:57:38: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (dstnet == NULL || (ptr = index(dstnet, '/')) == NULL) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/string.h:431, BUILDSTDERR: from ndpexhaust6.c:3: BUILDSTDERR: /usr/include/strings.h:68:14: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern char *index (const char *__s, int __c) BUILDSTDERR: ^~~~~ BUILDSTDERR: ndpexhaust6.c:57:30: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (dstnet == NULL || (ptr = index(dstnet, '/')) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: ndpexhaust6.c:63:15: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] BUILDSTDERR: size = atoi(ptr); // prefix lenght BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from ndpexhaust6.c:1: BUILDSTDERR: /usr/include/stdlib.h:361:1: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (atoi (const char *__nptr)) BUILDSTDERR: ^~~~~ BUILDSTDERR: ndpexhaust6.c:70:23: warning: pointer targets in passing argument 1 of 'thc_resolve6' differ in signedness [-Wpointer-sign] BUILDSTDERR: dst6 = thc_resolve6(dstnet); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from ndpexhaust6.c:11: BUILDSTDERR: thc-ipv6.h:99:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_resolve6(char *target); BUILDSTDERR: ^~~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o detect_sniffer6 detect_sniffer6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o dump_router6 dump_router6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fake_router26 fake_router26.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: detect_sniffer6.c: In function 'main': BUILDSTDERR: fragmentation6.c:848:10: warning: 'tos' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if ((pkt3 = thc_create_ipv6_extended(interface, PREFER_GLOBAL, &pkt_len3, src6, dst6, 64, 0, count, ++tos, 0)) == NULL) BUILDSTDERR: ^ BUILDSTDERR: detect_sniffer6.c:130:18: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, thc_ipv62notation(src6)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from detect_sniffer6.c:2: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: detect_sniffer6.c:143:47: warning: pointer targets in passing argument 3 of 'thc_pcap_check' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_pcap_check(p, (char *) check_packets, buf); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from detect_sniffer6.c:13: BUILDSTDERR: thc-ipv6.h:97:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_pcap_check(pcap_t * p, char *function, char *opt); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: dump_router6.c: In function 'main': BUILDSTDERR: dump_router6.c:203:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int rawmode = 0; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: fake_router26.c: In function 'send_rs_reply': BUILDSTDERR: fake_router26.c:72:45: warning: pointer targets in passing argument 3 of 'thc_add_hdr_hopbyhop' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_hdr_hopbyhop(pkt, &pkt_len, frbuf2, frbuf2len) < 0) BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from fake_router26.c:12: BUILDSTDERR: thc-ipv6.h:129:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_hdr_hopbyhop(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fake_router26.c:84:40: warning: pointer targets in passing argument 3 of 'thc_add_hdr_dst' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_hdr_dst(pkt, &pkt_len, buf3, sizeof(buf3)) < 0) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from fake_router26.c:12: BUILDSTDERR: thc-ipv6.h:128:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_hdr_dst(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: fake_router26.c:87:68: warning: pointer targets in passing argument 6 of 'thc_add_icmp6' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_icmp6(pkt, &pkt_len, ICMP6_ROUTERADV, 0, 0xff080800, frbuf, frbuflen, 0) < 0) BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from fake_router26.c:12: BUILDSTDERR: thc-ipv6.h:131:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_icmp6(unsigned char *pkt, int *pkt_len, int type, int code, unsigned int flags, unsigned char *data, int data_len, int checksum); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: fake_router26.c: In function 'exit_cleanup': BUILDSTDERR: fake_router26.c:105:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: prefix = thc_resolve6("2001:db8::"); BUILDSTDERR: ^ BUILDSTDERR: fake_router26.c:107:55: warning: pointer targets in passing argument 7 of 'thc_routeradv6' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_routeradv6(interface, NULL, NULL, NULL, 0, 0, prefix, 0, 0, 0); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from fake_router26.c:12: BUILDSTDERR: thc-ipv6.h:111:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_routeradv6(char *interface, unsigned char *src, unsigned char *dst, unsigned char *srcmac, unsigned char default_ttl, int managed, unsigned char *prefix, int prefixlen, int mtu, unsigned int lifetime); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fake_router26.c:109:55: warning: pointer targets in passing argument 7 of 'thc_routeradv6' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_routeradv6(interface, NULL, NULL, NULL, 0, 0, prefix, 0, 0, 0); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from fake_router26.c:12: BUILDSTDERR: thc-ipv6.h:111:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_routeradv6(char *interface, unsigned char *src, unsigned char *dst, unsigned char *srcmac, unsigned char default_ttl, int managed, unsigned char *prefix, int prefixlen, int mtu, unsigned int lifetime); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fake_router26.c:111:55: warning: pointer targets in passing argument 7 of 'thc_routeradv6' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_routeradv6(interface, NULL, NULL, NULL, 0, 0, prefix, 0, 0, 0); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from fake_router26.c:12: BUILDSTDERR: thc-ipv6.h:111:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_routeradv6(char *interface, unsigned char *src, unsigned char *dst, unsigned char *srcmac, unsigned char default_ttl, int managed, unsigned char *prefix, int prefixlen, int mtu, unsigned int lifetime); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: fake_router26.c: In function 'main': BUILDSTDERR: fake_router26.c:144:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: dstmac = dmac; BUILDSTDERR: ^ BUILDSTDERR: fake_router26.c:149:12: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: mac6 = mac; BUILDSTDERR: ^ BUILDSTDERR: fake_router26.c:154:12: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: fmac = smac; BUILDSTDERR: ^ BUILDSTDERR: fake_router26.c:183:34: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (optarg == NULL || (ptr = index(optarg, '/')) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: fake_router26.c:188:24: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((size = atoi(ptr)) < 0 && size > 255) { // yes we allow bad sizes :-) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from fake_router26.c:1: BUILDSTDERR: /usr/include/stdlib.h:361:1: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (atoi (const char *__nptr)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fake_router26.c:244:34: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (optarg == NULL || (ptr = index(optarg, '/')) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: fake_router26.c:249:24: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((size = atoi(ptr)) < 0 && size > 255) { // yes we allow bad sizes :-) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from fake_router26.c:1: BUILDSTDERR: /usr/include/stdlib.h:361:1: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (atoi (const char *__nptr)) BUILDSTDERR: ^~~~~ BUILDSTDERR: fake_router26.c:274:18: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: searchlist = optarg; BUILDSTDERR: ^ BUILDSTDERR: fake_router26.c:321:13: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr = strtok(optarg, ","); BUILDSTDERR: ^ BUILDSTDERR: fake_router26.c:323:27: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (strncasecmp(ptr, "man", 3) == 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/string.h:431, BUILDSTDERR: from fake_router26.c:3: BUILDSTDERR: /usr/include/strings.h:120:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fake_router26.c:325:32: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: else if (strncasecmp(ptr, "oth", 3) == 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/string.h:431, BUILDSTDERR: from fake_router26.c:3: BUILDSTDERR: /usr/include/strings.h:120:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fake_router26.c:327:32: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: else if (strncasecmp(ptr, "hom", 3) == 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/string.h:431, BUILDSTDERR: from fake_router26.c:3: BUILDSTDERR: /usr/include/strings.h:120:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fake_router26.c:329:32: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: else if (strncasecmp(ptr, "prox", 4) == 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/string.h:431, BUILDSTDERR: from fake_router26.c:3: BUILDSTDERR: /usr/include/strings.h:120:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fake_router26.c:331:32: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: else if (strncasecmp(ptr, "res", 3) == 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/string.h:431, BUILDSTDERR: from fake_router26.c:3: BUILDSTDERR: /usr/include/strings.h:120:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fake_router26.c:333:32: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] BUILDSTDERR: else if (strncasecmp(ptr, "unk", 3) == 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/string.h:431, BUILDSTDERR: from fake_router26.c:3: BUILDSTDERR: /usr/include/strings.h:120:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fake_router26.c:339:15: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr = strtok(NULL, ","); BUILDSTDERR: ^ BUILDSTDERR: fake_router26.c:382:9: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: frbuf = buf; BUILDSTDERR: ^ BUILDSTDERR: fake_router26.c:383:10: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: frbuf2 = buf2; BUILDSTDERR: ^ BUILDSTDERR: fake_router26.c:487:27: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (searchlist[strlen(searchlist) - 1] == '.') BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from fake_router26.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: fake_router26.c:488:25: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: searchlist[strlen(searchlist) - 1] = 0; BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from fake_router26.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: fake_router26.c:490:26: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] BUILDSTDERR: while ((ptr = strstr(searchlist, ".,")) != NULL) { BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from fake_router26.c:3: BUILDSTDERR: /usr/include/string.h:329:14: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern char *strstr (const char *__haystack, const char *__needle) BUILDSTDERR: ^~~~~~ BUILDSTDERR: fake_router26.c:490:17: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: while ((ptr = strstr(searchlist, ".,")) != NULL) { BUILDSTDERR: ^ BUILDSTDERR: fake_router26.c:491:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: m = strlen(ptr); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from fake_router26.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: fake_router26.c:498:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: j = strlen(searchlist); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from fake_router26.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: fake_router26.c:501:19: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr = index(&searchlist[l], '.'); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/string.h:431, BUILDSTDERR: from fake_router26.c:3: BUILDSTDERR: /usr/include/strings.h:68:14: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern char *index (const char *__s, int __c) BUILDSTDERR: ^~~~~ BUILDSTDERR: fake_router26.c:501:11: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr = index(&searchlist[l], '.'); BUILDSTDERR: ^ BUILDSTDERR: fake_router26.c:502:33: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (ptr == NULL || (index(&searchlist[l], ',') != NULL && (char*)ptr > (char*)index(&searchlist[l], ','))) { BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/string.h:431, BUILDSTDERR: from fake_router26.c:3: BUILDSTDERR: /usr/include/strings.h:68:14: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern char *index (const char *__s, int __c) BUILDSTDERR: ^~~~~ BUILDSTDERR: fake_router26.c:502:91: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (ptr == NULL || (index(&searchlist[l], ',') != NULL && (char*)ptr > (char*)index(&searchlist[l], ','))) { BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/string.h:431, BUILDSTDERR: from fake_router26.c:3: BUILDSTDERR: /usr/include/strings.h:68:14: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern char *index (const char *__s, int __c) BUILDSTDERR: ^~~~~ BUILDSTDERR: fake_router26.c:504:21: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr = index(&searchlist[l], ','); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/string.h:431, BUILDSTDERR: from fake_router26.c:3: BUILDSTDERR: /usr/include/strings.h:68:14: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern char *index (const char *__s, int __c) BUILDSTDERR: ^~~~~ BUILDSTDERR: fake_router26.c:504:13: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr = index(&searchlist[l], ','); BUILDSTDERR: ^ BUILDSTDERR: fake_router26.c:508:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: n = strlen(&searchlist[l]); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from fake_router26.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: fake_router26.c:536:45: warning: pointer targets in passing argument 3 of 'thc_add_hdr_hopbyhop' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_hdr_hopbyhop(pkt, &pkt_len, frbuf2, 6) < 0) BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from fake_router26.c:12: BUILDSTDERR: thc-ipv6.h:129:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_hdr_hopbyhop(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fake_router26.c:549:40: warning: pointer targets in passing argument 3 of 'thc_add_hdr_dst' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_hdr_dst(pkt, &pkt_len, buf3, sizeof(buf3)) < 0) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from fake_router26.c:12: BUILDSTDERR: thc-ipv6.h:128:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_hdr_dst(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: fake_router26.c:560:37: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init(interface, string)) == NULL) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from fake_router26.c:12: BUILDSTDERR: thc-ipv6.h:94:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern pcap_t *thc_pcap_init(char *interface, char *capture); BUILDSTDERR: ^~~~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o flood_router26 flood_router26.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: flood_router26.c: In function 'main': BUILDSTDERR: flood_router26.c:38:25: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *mac6 = mac, *ip6; BUILDSTDERR: ^~~ BUILDSTDERR: flood_router26.c:43:20: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int pkt_len = 0, rawmode = 0, count = 0, deanon = 0, do_alert = 0, do_hop = 0, do_frag = 0, do_dst = 0, bsize = -1, do_dhcp = 0, do_full = 0; BUILDSTDERR: ^~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o passive_discovery6 passive_discovery6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: passive_discovery6.c: In function 'detect': BUILDSTDERR: passive_discovery6.c:35:15: warning: pointer targets in initialization of 'char *' from 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: char *ptr = data, *ptr2; BUILDSTDERR: ^~~~ BUILDSTDERR: passive_discovery6.c:41:19: warning: pointer targets in passing argument 1 of 'thc_dump_data' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_dump_data(ptr, 8, "packet"); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from passive_discovery6.c:11: BUILDSTDERR: thc-ipv6.h:147:13: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern void thc_dump_data(unsigned char *buf, int len, char *text); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: passive_discovery6.c:84:34: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr2 = thc_ipv62notation((char *) (ptr + offset)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from passive_discovery6.c:11: BUILDSTDERR: thc-ipv6.h:151:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_ipv62notation(unsigned char *string); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: passive_discovery6.c:84:14: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr2 = thc_ipv62notation((char *) (ptr + offset)); BUILDSTDERR: ^ BUILDSTDERR: passive_discovery6.c: In function 'main': BUILDSTDERR: passive_discovery6.c:136:15: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: replace = thc_resolve6(optarg); BUILDSTDERR: ^ BUILDSTDERR: passive_discovery6.c:155:8: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: glob = thc_get_own_ipv6(interface, NULL, PREFER_GLOBAL); BUILDSTDERR: ^ BUILDSTDERR: passive_discovery6.c:156:6: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ll = thc_get_own_ipv6(interface, NULL, PREFER_LINK); BUILDSTDERR: ^ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o dnsrevenum6 dnsrevenum6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o inverse_lookup6 inverse_lookup6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o node_query6 node_query6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: dnsrevenum6.c: In function 'deeper': BUILDSTDERR: dnsrevenum6.c:193:26: warning: pointer targets in passing argument 1 of 'dnssocket' differ in signedness [-Wpointer-sign] BUILDSTDERR: sock = dnssocket(dst); BUILDSTDERR: ^~~ BUILDSTDERR: dnsrevenum6.c:41:5: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: int dnssocket(char *server) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: dnsrevenum6.c:204:20: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(name, "Found: "); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from dnsrevenum6.c:18: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: dnsrevenum6.c:216:20: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(name, foo); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from dnsrevenum6.c:18: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: dnsrevenum6.c:216:26: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(name, foo); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from dnsrevenum6.c:18: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: dnsrevenum6.c:218:20: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(name, " is "); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from dnsrevenum6.c:18: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: dnsrevenum6.c:224:61: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: strncat(name, ptr2 + 1, sizeof(name) - strlen(name) - 4); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from dnsrevenum6.c:21: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: dnsrevenum6.c:224:23: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strncat(name, ptr2 + 1, sizeof(name) - strlen(name) - 4); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from dnsrevenum6.c:18: BUILDSTDERR: /usr/include/bits/string_fortified.h:133:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strncat (char *__restrict __dest, const char *__restrict __src, BUILDSTDERR: ^~~~~ BUILDSTDERR: dnsrevenum6.c:224:34: warning: pointer targets in passing argument 2 of 'strncat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strncat(name, ptr2 + 1, sizeof(name) - strlen(name) - 4); BUILDSTDERR: ~~~~~^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from dnsrevenum6.c:18: BUILDSTDERR: /usr/include/bits/string_fortified.h:133:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strncat (char *__restrict __dest, const char *__restrict __src, BUILDSTDERR: ^~~~~ BUILDSTDERR: dnsrevenum6.c:225:22: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(name, "."); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from dnsrevenum6.c:18: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: dnsrevenum6.c:230:22: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(name, " is "); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from dnsrevenum6.c:18: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: dnsrevenum6.c:236:63: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: strncat(name, ptr2 + 1, sizeof(name) - strlen(name) - 4); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from dnsrevenum6.c:21: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: dnsrevenum6.c:236:25: warning: pointer targets in passing argument 1 of 'strncat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strncat(name, ptr2 + 1, sizeof(name) - strlen(name) - 4); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from dnsrevenum6.c:18: BUILDSTDERR: /usr/include/bits/string_fortified.h:133:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strncat (char *__restrict __dest, const char *__restrict __src, BUILDSTDERR: ^~~~~ BUILDSTDERR: dnsrevenum6.c:236:36: warning: pointer targets in passing argument 2 of 'strncat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strncat(name, ptr2 + 1, sizeof(name) - strlen(name) - 4); BUILDSTDERR: ~~~~~^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from dnsrevenum6.c:18: BUILDSTDERR: /usr/include/bits/string_fortified.h:133:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strncat (char *__restrict __dest, const char *__restrict __src, BUILDSTDERR: ^~~~~ BUILDSTDERR: dnsrevenum6.c:237:24: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(name, "."); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from dnsrevenum6.c:18: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: dnsrevenum6.c:278:22: warning: pointer targets in passing argument 1 of 'dnssocket' differ in signedness [-Wpointer-sign] BUILDSTDERR: sock = dnssocket(dst); BUILDSTDERR: ^~~ BUILDSTDERR: dnsrevenum6.c:41:5: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: int dnssocket(char *server) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: dnsrevenum6.c: In function 'main': BUILDSTDERR: dnsrevenum6.c:291:7: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: prg = argv[0]; BUILDSTDERR: ^ BUILDSTDERR: dnsrevenum6.c:317:7: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: dst = argv[1]; BUILDSTDERR: ^ BUILDSTDERR: dnsrevenum6.c:318:7: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr = argv[2]; BUILDSTDERR: ^ BUILDSTDERR: dnsrevenum6.c:329:21: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: for (i = strlen(ptr) - 1; i >= 0 && ok == 1; i--) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from dnsrevenum6.c:21: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: dnsrevenum6.c:342:20: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] BUILDSTDERR: } else if (index(ptr, ':') != NULL && (ptr2 = index(ptr, '/')) != NULL) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/string.h:431, BUILDSTDERR: from dnsrevenum6.c:21: BUILDSTDERR: /usr/include/strings.h:68:14: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern char *index (const char *__s, int __c) BUILDSTDERR: ^~~~~ BUILDSTDERR: dnsrevenum6.c:342:55: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] BUILDSTDERR: } else if (index(ptr, ':') != NULL && (ptr2 = index(ptr, '/')) != NULL) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/string.h:431, BUILDSTDERR: from dnsrevenum6.c:21: BUILDSTDERR: /usr/include/strings.h:68:14: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern char *index (const char *__s, int __c) BUILDSTDERR: ^~~~~ BUILDSTDERR: dnsrevenum6.c:342:47: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: } else if (index(ptr, ':') != NULL && (ptr2 = index(ptr, '/')) != NULL) { BUILDSTDERR: ^ BUILDSTDERR: dnsrevenum6.c:344:16: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] BUILDSTDERR: len = atoi(ptr2); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from dnsrevenum6.c:18: BUILDSTDERR: /usr/include/stdlib.h:361:1: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (atoi (const char *__nptr)) BUILDSTDERR: ^~~~~ BUILDSTDERR: dnsrevenum6.c:355:30: warning: pointer targets in passing argument 1 of 'thc_resolve6' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((dest = thc_resolve6(ptr)) == NULL) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from dnsrevenum6.c:33: BUILDSTDERR: thc-ipv6.h:99:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_resolve6(char *target); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: dnsrevenum6.c:379:18: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(buf_end + 1, "ip6"); BUILDSTDERR: ~~~~~~~~^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from dnsrevenum6.c:18: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: dnsrevenum6.c:381:18: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcpy(buf_end + 5, "arpa"); BUILDSTDERR: ~~~~~~~~^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from dnsrevenum6.c:18: BUILDSTDERR: /usr/include/bits/string_fortified.h:88:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: dnsrevenum6.c:391:20: warning: pointer targets in passing argument 1 of 'dnssocket' differ in signedness [-Wpointer-sign] BUILDSTDERR: sock = dnssocket(dst); BUILDSTDERR: ^~~ BUILDSTDERR: dnsrevenum6.c:41:5: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: int dnssocket(char *server) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: dnsrevenum6.c:403:26: warning: pointer targets in passing argument 1 of 'dnssocket' differ in signedness [-Wpointer-sign] BUILDSTDERR: sock = dnssocket(dst); BUILDSTDERR: ^~~ BUILDSTDERR: dnsrevenum6.c:41:5: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: int dnssocket(char *server) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: inverse_lookup6.c: In function 'check_packets': BUILDSTDERR: inverse_lookup6.c:48:113: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] BUILDSTDERR: printf("Empty Inverse Neighbor Discovery message received by %s for %s\n", thc_ipv62notation((char *) ptr + 8), mac); BUILDSTDERR: ~~~~~~~~~~~~~^~~ BUILDSTDERR: In file included from inverse_lookup6.c:11: BUILDSTDERR: thc-ipv6.h:151:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_ipv62notation(unsigned char *string); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: inverse_lookup6.c:55:135: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] BUILDSTDERR: printf("Inverse Advertisement Discovery message received by %s for %s (%d entries):\n", thc_ipv62notation((char *) orig_ptr + 8), mac, j); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~^~~ BUILDSTDERR: In file included from inverse_lookup6.c:11: BUILDSTDERR: thc-ipv6.h:151:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_ipv62notation(unsigned char *string); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: inverse_lookup6.c:58:67: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] BUILDSTDERR: printf(" %s\n", thc_ipv62notation((char *) ptr + 7 + i * 16)); BUILDSTDERR: ~~~~~~~~~~~~~~~~~^~~~~~~~ BUILDSTDERR: In file included from inverse_lookup6.c:11: BUILDSTDERR: thc-ipv6.h:151:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_ipv62notation(unsigned char *string); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: inverse_lookup6.c: In function 'main': BUILDSTDERR: inverse_lookup6.c:87:7: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: mac = argv[2]; BUILDSTDERR: ^ BUILDSTDERR: node_query6.c: In function 'dump_node_reply': BUILDSTDERR: node_query6.c:67:46: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] BUILDSTDERR: printf(" %s\n", thc_ipv62notation((char *) (ipv6hdr+ i))); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from node_query6.c:11: BUILDSTDERR: thc-ipv6.h:151:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_ipv62notation(unsigned char *string); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: node_query6.c: In function 'main': BUILDSTDERR: node_query6.c:102:25: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *mac6 = mac; BUILDSTDERR: ^~~ BUILDSTDERR: node_query6.c:108:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int rawmode = 0; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: dnsrevenum6.c: In function 'deeper': BUILDSTDERR: dnsrevenum6.c:211:57: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: dst6[15 - i/2] = (tochar(ptr2[1]) * 16) + j; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~^~~ BUILDSTDERR: node_query6.c:136:7: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: cnt += getpid(); BUILDSTDERR: ^~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o address6 address6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o covert_send6 covert_send6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o covert_send6d covert_send6d.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o inject_alive6 inject_alive6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: address6.c: In function 'main': BUILDSTDERR: address6.c:35:13: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((dst6 = index(argv[1], '/')) != NULL) BUILDSTDERR: ^ BUILDSTDERR: address6.c:43:44: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] BUILDSTDERR: if (dst6[8] + dst6[9] == 0 && dst6[10] == 0xff & dst6[11] == 0xff) { BUILDSTDERR: ~~~~~~~~~^~~~~~~ BUILDSTDERR: address6.c:53:17: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: sprintf(ipv4, "%d.%d.%d.%d", dst6[9], dst6[11], dst6[13], dst6[15]); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from address6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:34:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) BUILDSTDERR: ^~~~~ BUILDSTDERR: address6.c:54:23: warning: pointer targets in passing argument 1 of 'inet_aton' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (inet_aton(ipv4, &in) != 0) { BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from address6.c:11: BUILDSTDERR: /usr/include/arpa/inet.h:73:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int inet_aton (const char *__cp, struct in_addr *__inp) __THROW; BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: address6.c:61:15: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: sprintf(ipv4, "%d.%d.%d.%d", dst6[12], dst6[13], dst6[14], dst6[15]); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from address6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:34:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) BUILDSTDERR: ^~~~~ BUILDSTDERR: address6.c:62:21: warning: pointer targets in passing argument 1 of 'inet_aton' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (inet_aton(ipv4, &in) != 0) { BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from address6.c:11: BUILDSTDERR: /usr/include/arpa/inet.h:73:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int inet_aton (const char *__cp, struct in_addr *__inp) __THROW; BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: address6.c:72:28: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: for (i = 0; i < strlen(ptr); i++) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from address6.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: address6.c:78:29: warning: pointer targets in passing argument 1 of 'inet_aton' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (j == 0 && inet_aton(ptr, &in) != 0) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from address6.c:11: BUILDSTDERR: /usr/include/arpa/inet.h:73:12: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int inet_aton (const char *__cp, struct in_addr *__inp) __THROW; BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: address6.c:80:30: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: for (i = 0; i < strlen(ptr); i++) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from address6.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: address6.c:98:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((ptr = index(argv[2], '/')) != NULL) BUILDSTDERR: ^ BUILDSTDERR: address6.c:108:9: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr = argv[1]; BUILDSTDERR: ^ BUILDSTDERR: address6.c:110:25: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((dst6 = index(ptr, '.')) != NULL) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/string.h:431, BUILDSTDERR: from address6.c:3: BUILDSTDERR: /usr/include/strings.h:68:14: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern char *index (const char *__s, int __c) BUILDSTDERR: ^~~~~ BUILDSTDERR: address6.c:110:17: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((dst6 = index(ptr, '.')) != NULL) BUILDSTDERR: ^ BUILDSTDERR: address6.c:112:22: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] BUILDSTDERR: ipv4[i] = atoi(ptr); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from address6.c:1: BUILDSTDERR: /usr/include/stdlib.h:361:1: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (atoi (const char *__nptr)) BUILDSTDERR: ^~~~~ BUILDSTDERR: address6.c:142:17: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: sprintf(ipv6, "::%d:%d:%d:%d", ipv4[0], ipv4[1], ipv4[2], ipv4[3]); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from address6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:34:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) BUILDSTDERR: ^~~~~ BUILDSTDERR: address6.c:143:29: warning: pointer targets in passing argument 1 of 'thc_resolve6' differ in signedness [-Wpointer-sign] BUILDSTDERR: dst6 = thc_resolve6(ipv6); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from address6.c:13: BUILDSTDERR: thc-ipv6.h:99:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_resolve6(char *target); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: address6.c:151:17: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: sprintf(ipv6, "::%d", ipv4[3]); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from address6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:34:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) BUILDSTDERR: ^~~~~ BUILDSTDERR: address6.c:152:29: warning: pointer targets in passing argument 1 of 'thc_resolve6' differ in signedness [-Wpointer-sign] BUILDSTDERR: dst6 = thc_resolve6(ipv6); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from address6.c:13: BUILDSTDERR: thc-ipv6.h:99:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_resolve6(char *target); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: covert_send6.c: In function 'main': BUILDSTDERR: covert_send6.c:47:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int rawmode = 0, tcp_port = -1; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: inject_alive6.c: In function 'main': BUILDSTDERR: inject_alive6.c:148:47: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init_promisc(interface, "it does not matter what we put here")) == NULL) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from inject_alive6.c:12: BUILDSTDERR: thc-ipv6.h:95:16: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: inject_alive6.c:159:13: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: hdr.pkt = sndbuf; BUILDSTDERR: ^ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o firewall6 firewall6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o ndpexhaust26 ndpexhaust26.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fake_pim6 fake_pim6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: firewall6.c: In function 'main': BUILDSTDERR: firewall6.c:239:10: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, thc_ipv62notation(src)); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from firewall6.c:6: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: firewall6.c:239:18: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, thc_ipv62notation(src)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from firewall6.c:6: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: firewall6.c:242:37: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init(interface, string)) == NULL) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:94:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern pcap_t *thc_pcap_init(char *interface, char *capture); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: firewall6.c:286:106: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 1000) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:289:62: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 1000) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o thcsyn6 thcsyn6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: firewall6.c:934:106: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 2500) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:937:62: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 2500) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:989:106: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 2500) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:992:62: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 2500) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1044:106: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 2500) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1047:62: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 2500) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1142:106: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 2500) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1145:62: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 2500) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1197:106: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 2500) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1200:62: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 2500) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1252:106: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 2500) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1255:62: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 2500) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1307:106: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 2500) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1310:62: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 2500) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1340:106: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 0) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1343:62: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 0) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1416:106: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 0) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1419:62: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 0) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1492:106: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 40) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1495:62: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 40) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: ndpexhaust26.c: In function 'main': BUILDSTDERR: ndpexhaust26.c:152:45: warning: pointer targets in passing argument 3 of 'thc_add_hdr_hopbyhop' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_hdr_hopbyhop(pkt, &pkt_len, buf2, 6) < 0) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from ndpexhaust26.c:11: BUILDSTDERR: thc-ipv6.h:129:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_hdr_hopbyhop(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: firewall6.c:1693:128: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, hdr->pkt + hdr->pkt_len - 12, 12) == -1) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1724:104: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, sports[i], port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 0) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: firewall6.c:1744:61: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, sports2[i], port, 0, buf, 1000) == -1) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from firewall6.c:16: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: thcsyn6.c: In function 'main': BUILDSTDERR: thcsyn6.c:172:47: warning: pointer targets in passing argument 3 of 'thc_add_hdr_hopbyhop' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_hdr_hopbyhop(pkt, &pkt_len, buf2, 6) < 0) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from thcsyn6.c:11: BUILDSTDERR: thc-ipv6.h:129:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_hdr_hopbyhop(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thcsyn6.c:180:44: warning: pointer targets in passing argument 3 of 'thc_add_hdr_dst' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_hdr_dst(pkt, &pkt_len, buf2, 6) < 0) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from thcsyn6.c:11: BUILDSTDERR: thc-ipv6.h:128:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_hdr_dst(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: thcsyn6.c:38:91: warning: variable 'dont_crc' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int i, type = TCP_SYN, alert = 0, randsrc = 0, randdst = 0, randsrcp = 1, randdstp = 0, dont_crc = 0, seq, do_dst = 0, do_frag = 0, fastopen = 0, olen = 0; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: thcsyn6.c:191:9: warning: 'port' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (thc_add_tcp(pkt, &pkt_len, sport, port, seq, 0, type, 0x3840, 0, buf3, olen, NULL, 0) < 0) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thcsyn6.c:191:9: warning: 'sport' may be used uninitialized in this function [-Wmaybe-uninitialized] gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o redirsniff6 redirsniff6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o flood_redir6 flood_redir6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o four2six four2six.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: redirsniff6.c: In function 'intercept': BUILDSTDERR: redirsniff6.c:60:7: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr = thc_ipv62notation((unsigned char*)data + 14 + 8); BUILDSTDERR: ^ BUILDSTDERR: redirsniff6.c:61:8: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr2 = thc_ipv62notation((unsigned char*)data + 14 + 8 + 16); BUILDSTDERR: ^ BUILDSTDERR: redirsniff6.c: In function 'main': BUILDSTDERR: redirsniff6.c:131:20: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, thc_ipv62notation(src6)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from redirsniff6.c:1: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: redirsniff6.c:135:20: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, thc_ipv62notation(dest6)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from redirsniff6.c:1: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: redirsniff6.c:68:20: warning: variable 'offset' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int rawmode = 0, offset = 14; BUILDSTDERR: ^~~~~~ BUILDSTDERR: redirsniff6.c:68:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int rawmode = 0, offset = 14; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: flood_redir6.c: In function 'main': BUILDSTDERR: flood_redir6.c:25:25: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *mac6 = mac; BUILDSTDERR: ^~~ BUILDSTDERR: flood_redir6.c:30:34: warning: unused variable 'rawmode' [-Wunused-variable] BUILDSTDERR: int pkt_len = 0, pkt_len2 = 0, rawmode = 0, count = 0, do_alert = 0, do_hop = 0, do_frag = 0, do_dst = 0; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: four2six.c: In function 'main': BUILDSTDERR: four2six.c:34:85: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: int pkt1_len = 0, prefer = PREFER_GLOBAL, i, do_hop = 0, do_dst = 0, do_frag = 0, cnt, type = NXT_ICMP6, offset = 14; BUILDSTDERR: ^~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o dump_dhcp6 dump_dhcp6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o flood_rs6 flood_rs6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fuzz_dhcps6 fuzz_dhcps6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: dump_dhcp6.c: In function 'check_packets': BUILDSTDERR: dump_dhcp6.c:68:29: warning: variable 'rlen' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int len = header->caplen, rlen, i, j, k; BUILDSTDERR: ^~~~ BUILDSTDERR: dump_dhcp6.c: In function 'main': BUILDSTDERR: dump_dhcp6.c:232:25: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *mac6 = mac, *src, *dst, *vendorid = NULL, *ptr; BUILDSTDERR: ^~~ BUILDSTDERR: dump_dhcp6.c:254:16: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: vendorid = optarg; BUILDSTDERR: ^ BUILDSTDERR: dump_dhcp6.c:285:45: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init_promisc(interface, "ip6 and udp and dst port 546")) == NULL) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from dump_dhcp6.c:14: BUILDSTDERR: thc-ipv6.h:95:16: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: dump_dhcp6.c:312:22: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((ptr = index(vendorid, ',')) == NULL) { BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/string.h:431, BUILDSTDERR: from dump_dhcp6.c:3: BUILDSTDERR: /usr/include/strings.h:68:14: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern char *index (const char *__s, int __c) BUILDSTDERR: ^~~~~ BUILDSTDERR: dump_dhcp6.c:312:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((ptr = index(vendorid, ',')) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: dump_dhcp6.c:317:14: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] BUILDSTDERR: i = atoi(vendorid); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from dump_dhcp6.c:1: BUILDSTDERR: /usr/include/stdlib.h:361:1: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (atoi (const char *__nptr)) BUILDSTDERR: ^~~~~ BUILDSTDERR: dump_dhcp6.c:320:39: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: wdatabuf[len+2] = (4 + 2 + strlen(ptr)) / 256; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from dump_dhcp6.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: dump_dhcp6.c:321:39: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: wdatabuf[len+3] = (4 + 2 + strlen(ptr)) % 256; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from dump_dhcp6.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: dump_dhcp6.c:326:30: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: wdatabuf[len+8] = strlen(ptr) / 256; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from dump_dhcp6.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: dump_dhcp6.c:327:30: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: wdatabuf[len+9] = strlen(ptr) % 256; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from dump_dhcp6.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: dump_dhcp6.c:328:45: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: memcpy(wdatabuf + len + 10, ptr, strlen(ptr)); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from dump_dhcp6.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: dump_dhcp6.c:329:58: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: memcpy(wdatabuf2 + len2, wdatabuf + len, 10 + strlen(ptr)); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from dump_dhcp6.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: dump_dhcp6.c:330:24: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: len += 10 + strlen(ptr); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from dump_dhcp6.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: dump_dhcp6.c:331:25: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] BUILDSTDERR: len2 += 10 + strlen(ptr); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from dump_dhcp6.c:3: BUILDSTDERR: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern size_t strlen (const char *__s) BUILDSTDERR: ^~~~~~ BUILDSTDERR: dump_dhcp6.c:334:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((pkt = thc_create_ipv6_extended(interface, PREFER_LINK, &pkt_len, src, dst, 1, 0, 0, 0, 0)) == NULL) BUILDSTDERR: ^ BUILDSTDERR: dump_dhcp6.c:336:19: warning: pointer targets in passing argument 1 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, 546, 547, 0, wdatabuf, len) < 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from dump_dhcp6.c:14: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: dump_dhcp6.c:338:56: warning: pointer targets in passing argument 4 of 'thc_generate_and_send_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_generate_and_send_pkt(interface, mac6, NULL, pkt, &pkt_len) < 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from dump_dhcp6.c:14: BUILDSTDERR: thc-ipv6.h:139:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_generate_and_send_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: dump_dhcp6.c:340:13: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((pkt2 = thc_create_ipv6_extended(interface, PREFER_LINK, &pkt2_len, src, dst, 1, 0, 0, 0, 0)) == NULL) BUILDSTDERR: ^ BUILDSTDERR: dump_dhcp6.c:342:19: warning: pointer targets in passing argument 1 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt2, &pkt2_len, 546, 547, 0, wdatabuf2, len2) < 0) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from dump_dhcp6.c:14: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: dump_dhcp6.c:344:56: warning: pointer targets in passing argument 4 of 'thc_generate_and_send_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_generate_and_send_pkt(interface, mac6, NULL, pkt2, &pkt2_len) < 0) BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from dump_dhcp6.c:14: BUILDSTDERR: thc-ipv6.h:139:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_generate_and_send_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: dump_dhcp6.c:349:28: warning: pointer targets in passing argument 1 of 'thc_destroy_packet' differ in signedness [-Wpointer-sign] BUILDSTDERR: pkt = thc_destroy_packet(pkt); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from dump_dhcp6.c:14: BUILDSTDERR: thc-ipv6.h:142:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_destroy_packet(unsigned char *pkt); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: dump_dhcp6.c:349:7: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: pkt = thc_destroy_packet(pkt); BUILDSTDERR: ^ BUILDSTDERR: dump_dhcp6.c:236:7: warning: variable 'do_all' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int do_all = 1, use_real_mac = 1, use_real_link = 1; BUILDSTDERR: ^~~~~~ BUILDSTDERR: flood_rs6.c: In function 'main': BUILDSTDERR: flood_rs6.c:32:70: warning: variable 'do_dst' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int pkt_len2 = 0, rawmode = 0, count = 0, do_hop = 0, do_frag = 0, do_dst = 0; BUILDSTDERR: ^~~~~~ BUILDSTDERR: flood_rs6.c:32:45: warning: variable 'do_hop' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int pkt_len2 = 0, rawmode = 0, count = 0, do_hop = 0, do_frag = 0, do_dst = 0; BUILDSTDERR: ^~~~~~ BUILDSTDERR: flood_rs6.c:32:21: warning: unused variable 'rawmode' [-Wunused-variable] BUILDSTDERR: int pkt_len2 = 0, rawmode = 0, count = 0, do_hop = 0, do_frag = 0, do_dst = 0; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: flood_rs6.c:30:13: warning: unused variable 'type' [-Wunused-variable] BUILDSTDERR: int i, k, type = NXT_ICMP6, offset = 14, mychecksum, prefer = PREFER_LINK; BUILDSTDERR: ^~~~ BUILDSTDERR: fuzz_dhcps6.c: In function 'try_send_pkt': BUILDSTDERR: fuzz_dhcps6.c:231:33: warning: pointer targets in passing argument 2 of 'thc_send_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_send_pkt(interface, pkt, pkt_len) < 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from fuzz_dhcps6.c:19: BUILDSTDERR: thc-ipv6.h:141:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_send_pkt(char *interface, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcps6.c: In function 'check_alive': BUILDSTDERR: fuzz_dhcps6.c:263:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((pkt = thc_create_ipv6_extended(interface, PREFER_LINK, &pkt_len, NULL, dst, 1, 0, 0, 0, 0)) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: fuzz_dhcps6.c:268:19: warning: pointer targets in passing argument 1 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, 546, 547, 0, wdatabuf, len) < 0) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from fuzz_dhcps6.c:19: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fuzz_dhcps6.c:273:47: warning: pointer targets in passing argument 4 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_generate_pkt(interface, mac6, NULL, pkt, &pkt_len) < 0) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from fuzz_dhcps6.c:19: BUILDSTDERR: thc-ipv6.h:140:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcps6.c:295:35: warning: pointer targets in passing argument 2 of 'thc_send_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_send_pkt(interface, pkt, &pkt_len) < 0) { //Don't want to use try_send_pkt as it could take longer than timeout BUILDSTDERR: ^~~ BUILDSTDERR: In file included from fuzz_dhcps6.c:19: BUILDSTDERR: thc-ipv6.h:141:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_send_pkt(char *interface, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcps6.c:297:33: warning: pointer targets in passing argument 2 of 'thc_send_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_send_pkt(interface, pkt, &pkt_len); //Retry sending packet after short time if sending failed BUILDSTDERR: ^~~ BUILDSTDERR: In file included from fuzz_dhcps6.c:19: BUILDSTDERR: thc-ipv6.h:141:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_send_pkt(char *interface, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcps6.c:312:22: warning: pointer targets in passing argument 1 of 'thc_destroy_packet' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_destroy_packet(pkt); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from fuzz_dhcps6.c:19: BUILDSTDERR: thc-ipv6.h:142:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_destroy_packet(unsigned char *pkt); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcps6.c: In function 'fuzz_loop': BUILDSTDERR: fuzz_dhcps6.c:333:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf("fuzzbuf(%d): %s\n", strlen(fuzzbuf), fuzzbuf); BUILDSTDERR: ~^ ~~~~~~~~~~~~~~~ BUILDSTDERR: %ld BUILDSTDERR: fuzz_dhcps6.c:486:41: warning: pointer targets in passing argument 2 of 'thc_send_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: while(thc_send_pkt(interface, pkt, pkt_len) < 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from fuzz_dhcps6.c:19: BUILDSTDERR: thc-ipv6.h:141:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_send_pkt(char *interface, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcps6.c:324:21: warning: unused variable 'frag_offset' [-Wunused-variable] BUILDSTDERR: int fragment = 0, frag_offset = 0; BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fuzz_dhcps6.c:324:7: warning: unused variable 'fragment' [-Wunused-variable] BUILDSTDERR: int fragment = 0, frag_offset = 0; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fuzz_dhcps6.c: In function 'construct_from_adv_and_fuzz': BUILDSTDERR: fuzz_dhcps6.c:661:37: warning: pointer targets in passing argument 2 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_generate_pkt(interface, smac, ptr + 6, pkt, &pkt_len) < 0) { BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from fuzz_dhcps6.c:19: BUILDSTDERR: thc-ipv6.h:140:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcps6.c:666:19: warning: pointer targets in passing argument 1 of 'fuzz_loop' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (fuzz_loop(pkt, &pkt_len) < 0) { BUILDSTDERR: ^~~ BUILDSTDERR: fuzz_dhcps6.c:317:5: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: int fuzz_loop(char* pkt, int* pkt_len) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: fuzz_dhcps6.c: In function 'main': BUILDSTDERR: fuzz_dhcps6.c:687:25: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *mac6 = mac, *src, *dst; BUILDSTDERR: ^~~ BUILDSTDERR: fuzz_dhcps6.c:792:45: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init_promisc(interface, "ip6 and udp and dst port 546")) == NULL) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from fuzz_dhcps6.c:19: BUILDSTDERR: thc-ipv6.h:95:16: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcps6.c:905:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((pkt = thc_create_ipv6_extended(interface, PREFER_LINK, &pkt_len, src, dst, 1, 0, 0, 0, 0)) == NULL) BUILDSTDERR: ^ BUILDSTDERR: fuzz_dhcps6.c:907:19: warning: pointer targets in passing argument 1 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, 546, 547, 0, wdatabuf, len) < 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from fuzz_dhcps6.c:19: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fuzz_dhcps6.c:910:47: warning: pointer targets in passing argument 4 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_generate_pkt(interface, mac6, NULL, pkt, &pkt_len) < 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from fuzz_dhcps6.c:19: BUILDSTDERR: thc-ipv6.h:140:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcps6.c:922:33: warning: pointer targets in passing argument 2 of 'thc_send_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_send_pkt(interface, pkt, &pkt_len) < 0) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from fuzz_dhcps6.c:19: BUILDSTDERR: thc-ipv6.h:141:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_send_pkt(char *interface, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcps6.c:941:28: warning: pointer targets in passing argument 1 of 'thc_destroy_packet' differ in signedness [-Wpointer-sign] BUILDSTDERR: pkt = thc_destroy_packet(pkt); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from fuzz_dhcps6.c:19: BUILDSTDERR: thc-ipv6.h:142:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_destroy_packet(unsigned char *pkt); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcps6.c:941:7: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: pkt = thc_destroy_packet(pkt); BUILDSTDERR: ^ BUILDSTDERR: fuzz_dhcps6.c:690:7: warning: unused variable 'do_all' [-Wunused-variable] BUILDSTDERR: int do_all = 1, use_real_mac = 1, use_real_link = 1; BUILDSTDERR: ^~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fuzz_dhcpc6 fuzz_dhcpc6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o toobigsniff6 toobigsniff6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto BUILDSTDERR: fuzz_dhcps6.c: In function 'construct_from_adv_and_fuzz': BUILDSTDERR: fuzz_dhcps6.c:661:9: warning: 'smac' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (thc_generate_pkt(interface, smac, ptr + 6, pkt, &pkt_len) < 0) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c:206:23: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *mac6 = mac, *src; //creates mac6 address usuing BUILDSTDERR: ^~~ BUILDSTDERR: fuzz_dhcpc6.c: In function 'fuzz_loop': BUILDSTDERR: fuzz_dhcpc6.c:300:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf("fuzzing_mask(%d): %s\n", strlen(fuzzing_mask), fuzzing_mask); BUILDSTDERR: ~^ ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: %ld BUILDSTDERR: fuzz_dhcpc6.c:477:42: warning: pointer targets in passing argument 2 of 'thc_send_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: while (thc_send_pkt(interface, pkt, pkt_len) < 0) BUILDSTDERR: ^~~ BUILDSTDERR: In file included from fuzz_dhcpc6.c:13: BUILDSTDERR: thc-ipv6.h:141:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_send_pkt(char *interface, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c:291:21: warning: unused variable 'frag_offset' [-Wunused-variable] BUILDSTDERR: int fragment = 0, frag_offset = 0; BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c:291:7: warning: unused variable 'fragment' [-Wunused-variable] BUILDSTDERR: int fragment = 0, frag_offset = 0; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c: In function 'dhcpc_listener': BUILDSTDERR: fuzz_dhcpc6.c:497:50: warning: pointer targets in passing argument 3 of 'thc_bind_multicast_to_socket' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_bind_multicast_to_socket(s, interface, thc_resolve6("ff02::1:2")) < 0) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from fuzz_dhcpc6.c:13: BUILDSTDERR: thc-ipv6.h:155:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_bind_multicast_to_socket(int s, char *interface, char *src); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c:528:32: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr2 = thc_ipv62notation((char *) &ddst.sin6_addr); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from fuzz_dhcpc6.c:13: BUILDSTDERR: thc-ipv6.h:151:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_ipv62notation(unsigned char *string); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c:530:33: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: strncpy((char *) &victim, ptr2, sizeof(victim)); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from fuzz_dhcpc6.c:1: BUILDSTDERR: /usr/include/bits/string_fortified.h:103:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, BUILDSTDERR: ^~~~~ BUILDSTDERR: fuzz_dhcpc6.c: In function 'main': BUILDSTDERR: fuzz_dhcpc6.c:665:25: warning: format '%x' expects argument of type 'unsigned int *', but argument 3 has type 'char *' [-Wformat=] BUILDSTDERR: sscanf(optarg, "%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x", (char *) &cid[0], (char *) &cid[1], (char *) &cid[2], (char *) &cid[3], (char *) &cid[4], (char *) &cid[5], BUILDSTDERR: ~~^ ~~~~~~~~~~~~~~~~ BUILDSTDERR: %2hhx BUILDSTDERR: fuzz_dhcpc6.c:665:28: warning: format '%x' expects argument of type 'unsigned int *', but argument 4 has type 'char *' [-Wformat=] BUILDSTDERR: sscanf(optarg, "%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x", (char *) &cid[0], (char *) &cid[1], (char *) &cid[2], (char *) &cid[3], (char *) &cid[4], (char *) &cid[5], BUILDSTDERR: ~~^ ~~~~~~~~~~~~~~~~ BUILDSTDERR: %2hhx BUILDSTDERR: fuzz_dhcpc6.c:665:31: warning: format '%x' expects argument of type 'unsigned int *', but argument 5 has type 'char *' [-Wformat=] BUILDSTDERR: sscanf(optarg, "%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x", (char *) &cid[0], (char *) &cid[1], (char *) &cid[2], (char *) &cid[3], (char *) &cid[4], (char *) &cid[5], BUILDSTDERR: ~~^ ~~~~~~~~~~~~~~~~ BUILDSTDERR: %2hhx BUILDSTDERR: fuzz_dhcpc6.c:665:34: warning: format '%x' expects argument of type 'unsigned int *', but argument 6 has type 'char *' [-Wformat=] BUILDSTDERR: sscanf(optarg, "%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x", (char *) &cid[0], (char *) &cid[1], (char *) &cid[2], (char *) &cid[3], (char *) &cid[4], (char *) &cid[5], BUILDSTDERR: ~~^ ~~~~~~~~~~~~~~~~ BUILDSTDERR: %2hhx BUILDSTDERR: fuzz_dhcpc6.c:665:37: warning: format '%x' expects argument of type 'unsigned int *', but argument 7 has type 'char *' [-Wformat=] BUILDSTDERR: sscanf(optarg, "%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x", (char *) &cid[0], (char *) &cid[1], (char *) &cid[2], (char *) &cid[3], (char *) &cid[4], (char *) &cid[5], BUILDSTDERR: ~~^ ~~~~~~~~~~~~~~~~ BUILDSTDERR: %2hhx BUILDSTDERR: fuzz_dhcpc6.c:665:40: warning: format '%x' expects argument of type 'unsigned int *', but argument 8 has type 'char *' [-Wformat=] BUILDSTDERR: sscanf(optarg, "%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x", (char *) &cid[0], (char *) &cid[1], (char *) &cid[2], (char *) &cid[3], (char *) &cid[4], (char *) &cid[5], BUILDSTDERR: ~~^ ~~~~~~~~~~~~~~~~ BUILDSTDERR: %2hhx BUILDSTDERR: fuzz_dhcpc6.c:665:43: warning: format '%x' expects argument of type 'unsigned int *', but argument 9 has type 'char *' [-Wformat=] BUILDSTDERR: sscanf(optarg, "%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x", (char *) &cid[0], (char *) &cid[1], (char *) &cid[2], (char *) &cid[3], (char *) &cid[4], (char *) &cid[5], BUILDSTDERR: ~~^ BUILDSTDERR: %2hhx BUILDSTDERR: (char *) &cid[6], (char *) &cid[7], (char *) &cid[8], (char *) &cid[9], (char *) &cid[10], (char *) &cid[11], (char *) &cid[12], (char *) &cid[13]); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c:665:46: warning: format '%x' expects argument of type 'unsigned int *', but argument 10 has type 'char *' [-Wformat=] BUILDSTDERR: sscanf(optarg, "%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x", (char *) &cid[0], (char *) &cid[1], (char *) &cid[2], (char *) &cid[3], (char *) &cid[4], (char *) &cid[5], BUILDSTDERR: ~~^ BUILDSTDERR: %2hhx BUILDSTDERR: (char *) &cid[6], (char *) &cid[7], (char *) &cid[8], (char *) &cid[9], (char *) &cid[10], (char *) &cid[11], (char *) &cid[12], (char *) &cid[13]); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c:665:49: warning: format '%x' expects argument of type 'unsigned int *', but argument 11 has type 'char *' [-Wformat=] BUILDSTDERR: sscanf(optarg, "%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x", (char *) &cid[0], (char *) &cid[1], (char *) &cid[2], (char *) &cid[3], (char *) &cid[4], (char *) &cid[5], BUILDSTDERR: ~~^ BUILDSTDERR: %2hhx BUILDSTDERR: (char *) &cid[6], (char *) &cid[7], (char *) &cid[8], (char *) &cid[9], (char *) &cid[10], (char *) &cid[11], (char *) &cid[12], (char *) &cid[13]); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c:665:52: warning: format '%x' expects argument of type 'unsigned int *', but argument 12 has type 'char *' [-Wformat=] BUILDSTDERR: sscanf(optarg, "%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x", (char *) &cid[0], (char *) &cid[1], (char *) &cid[2], (char *) &cid[3], (char *) &cid[4], (char *) &cid[5], BUILDSTDERR: ~~^ BUILDSTDERR: %2hhx BUILDSTDERR: (char *) &cid[6], (char *) &cid[7], (char *) &cid[8], (char *) &cid[9], (char *) &cid[10], (char *) &cid[11], (char *) &cid[12], (char *) &cid[13]); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c:665:55: warning: format '%x' expects argument of type 'unsigned int *', but argument 13 has type 'char *' [-Wformat=] BUILDSTDERR: sscanf(optarg, "%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x", (char *) &cid[0], (char *) &cid[1], (char *) &cid[2], (char *) &cid[3], (char *) &cid[4], (char *) &cid[5], BUILDSTDERR: ~~^ BUILDSTDERR: %2hhx BUILDSTDERR: (char *) &cid[6], (char *) &cid[7], (char *) &cid[8], (char *) &cid[9], (char *) &cid[10], (char *) &cid[11], (char *) &cid[12], (char *) &cid[13]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c:665:58: warning: format '%x' expects argument of type 'unsigned int *', but argument 14 has type 'char *' [-Wformat=] BUILDSTDERR: sscanf(optarg, "%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x", (char *) &cid[0], (char *) &cid[1], (char *) &cid[2], (char *) &cid[3], (char *) &cid[4], (char *) &cid[5], BUILDSTDERR: ~~^ BUILDSTDERR: %2hhx BUILDSTDERR: (char *) &cid[6], (char *) &cid[7], (char *) &cid[8], (char *) &cid[9], (char *) &cid[10], (char *) &cid[11], (char *) &cid[12], (char *) &cid[13]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c:665:61: warning: format '%x' expects argument of type 'unsigned int *', but argument 15 has type 'char *' [-Wformat=] BUILDSTDERR: sscanf(optarg, "%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x", (char *) &cid[0], (char *) &cid[1], (char *) &cid[2], (char *) &cid[3], (char *) &cid[4], (char *) &cid[5], BUILDSTDERR: ~~^ BUILDSTDERR: %2hhx BUILDSTDERR: (char *) &cid[6], (char *) &cid[7], (char *) &cid[8], (char *) &cid[9], (char *) &cid[10], (char *) &cid[11], (char *) &cid[12], (char *) &cid[13]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c:665:64: warning: format '%x' expects argument of type 'unsigned int *', but argument 16 has type 'char *' [-Wformat=] BUILDSTDERR: sscanf(optarg, "%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x", (char *) &cid[0], (char *) &cid[1], (char *) &cid[2], (char *) &cid[3], (char *) &cid[4], (char *) &cid[5], BUILDSTDERR: ~~^ BUILDSTDERR: %2hhx BUILDSTDERR: (char *) &cid[6], (char *) &cid[7], (char *) &cid[8], (char *) &cid[9], (char *) &cid[10], (char *) &cid[11], (char *) &cid[12], (char *) &cid[13]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c:709:45: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init_promisc(interface, "ip6 and udp and dst port 547")) == NULL) { BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from fuzz_dhcpc6.c:13: BUILDSTDERR: thc-ipv6.h:95:16: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c: In function 'do_fuzzer': BUILDSTDERR: fuzz_dhcpc6.c:811:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((pkt = thc_create_ipv6_extended(interface, PREFER_LINK, &pkt_len, src, dst, 1, 0, 0, 0, 0)) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: fuzz_dhcpc6.c:815:19: warning: pointer targets in passing argument 1 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_udp(pkt, &pkt_len, 547, 546, 0, wdatabuf, opt_off) < 0) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from fuzz_dhcpc6.c:13: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c:820:47: warning: pointer targets in passing argument 4 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_generate_pkt(interface, mac6, NULL, pkt, &pkt_len) < 0) { BUILDSTDERR: ^~~ BUILDSTDERR: In file included from fuzz_dhcpc6.c:13: BUILDSTDERR: thc-ipv6.h:140:12: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c:828:28: warning: pointer targets in passing argument 1 of 'thc_destroy_packet' differ in signedness [-Wpointer-sign] BUILDSTDERR: pkt = thc_destroy_packet(pkt); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from fuzz_dhcpc6.c:13: BUILDSTDERR: thc-ipv6.h:142:23: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: extern unsigned char *thc_destroy_packet(unsigned char *pkt); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fuzz_dhcpc6.c:828:7: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: pkt = thc_destroy_packet(pkt); BUILDSTDERR: ^ BUILDSTDERR: fuzz_dhcpc6.c: In function 'fuzz_loop': BUILDSTDERR: fuzz_dhcpc6.c:490:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: } BUILDSTDERR: ^ BUILDSTDERR: toobigsniff6.c: In function 'send_toobig': BUILDSTDERR: toobigsniff6.c:47:15: warning: pointer targets in passing argument 1 of 'thc_toobig6' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_toobig6(interface, src6, mac6, NULL, mtu, ipv6hdr, len); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from toobigsniff6.c:11: BUILDSTDERR: thc-ipv6.h:113:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_toobig6(char *interface, unsigned char *src, unsigned char *srcmac, unsigned char *dstmac, unsigned int mtu, unsigned char *pkt, int pkt_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: toobigsniff6.c: In function 'main': BUILDSTDERR: toobigsniff6.c:87:13: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: interface = argv[optind]; BUILDSTDERR: ^ BUILDSTDERR: toobigsniff6.c:88:26: warning: pointer targets in passing argument 1 of 'thc_get_own_mac' differ in signedness [-Wpointer-sign] BUILDSTDERR: mac6 = thc_get_own_mac(interface); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from toobigsniff6.c:11: BUILDSTDERR: thc-ipv6.h:101:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_get_own_mac(char *interface); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: toobigsniff6.c:89:27: warning: pointer targets in passing argument 1 of 'thc_get_own_ipv6' differ in signedness [-Wpointer-sign] BUILDSTDERR: src6 = thc_get_own_ipv6(interface, NULL, PREFER_GLOBAL); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from toobigsniff6.c:11: BUILDSTDERR: thc-ipv6.h:103:23: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern unsigned char *thc_get_own_ipv6(char *interface, unsigned char *dst, int prefer); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: toobigsniff6.c:107:26: warning: pointer targets in passing argument 1 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] BUILDSTDERR: if ((p = thc_pcap_init(interface, string)) == NULL) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from toobigsniff6.c:11: BUILDSTDERR: thc-ipv6.h:94:16: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern pcap_t *thc_pcap_init(char *interface, char *capture); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: toobigsniff6.c:59:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int rawmode = 0, i; BUILDSTDERR: ^~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o flood_unreach6 flood_unreach6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o thcping6 thcping6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto -lrt gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o fragrouter6 fragrouter6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto -lnetfilter_queue || /bin/echo -e "\nCompilation of fragrouter6 failed, you have to install libnetfilter-queue-dev for this!\n" BUILDSTDERR: flood_unreach6.c: In function 'main': BUILDSTDERR: flood_unreach6.c:26:25: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: unsigned char *mac6 = mac; BUILDSTDERR: ^~~ BUILDSTDERR: flood_unreach6.c:31:34: warning: unused variable 'rawmode' [-Wunused-variable] BUILDSTDERR: int pkt_len = 0, pkt_len2 = 0, rawmode = 0, count = 0, do_alert = 0, do_hop = 0, do_frag = 0, do_dst = 0; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: flood_unreach6.c:29:47: warning: unused variable 'rand_newrouter' [-Wunused-variable] BUILDSTDERR: int i, j, k, type = NXT_ICMP6, offset = 14, rand_newrouter = 1, rand_src = 0, unreach = 0; BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: flood_unreach6.c:29:13: warning: unused variable 'k' [-Wunused-variable] BUILDSTDERR: int i, j, k, type = NXT_ICMP6, offset = 14, rand_newrouter = 1, rand_src = 0, unreach = 0; BUILDSTDERR: ^ BUILDSTDERR: flood_unreach6.c:28:116: warning: unused variable 'newrouter' [-Wunused-variable] BUILDSTDERR: unsigned char *dst = thc_resolve6("ff02::1"), *src = NULL, *fake_dst = NULL, *dstmac = NULL, *oldrouter = NULL, *newrouter = NULL; BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: flood_unreach6.c:28:63: warning: unused variable 'fake_dst' [-Wunused-variable] BUILDSTDERR: unsigned char *dst = thc_resolve6("ff02::1"), *src = NULL, *fake_dst = NULL, *dstmac = NULL, *oldrouter = NULL, *newrouter = NULL; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: flood_unreach6.c:25:33: warning: unused variable 'newroutermac' [-Wunused-variable] BUILDSTDERR: char *interface, mac[6] = "", newroutermac[6]; BUILDSTDERR: ^~~~~~~~~~~~ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_HAVE_SSL -o connsplit6 connsplit6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto -lnetfilter_queue || /bin/echo -e "\nCompilation of connsplit6 failed, you have to install libnetfilter-queue-dev for this!\n" BUILDSTDERR: thcping6.c: In function 'check_packets': BUILDSTDERR: thcping6.c:94:13: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] BUILDSTDERR: sprintf(frag, " (fragmented: 0x%08lx)", fragid); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from thcping6.c:1: BUILDSTDERR: /usr/include/bits/stdio2.h:34:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) BUILDSTDERR: ^~~~~ BUILDSTDERR: thcping6.c: In function 'main': BUILDSTDERR: thcping6.c:503:111: warning: pointer targets in passing argument 10 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt1, &pkt1_len, port + flood + client, port, (port << 16) + port, 0, TCP_SYN, 5760, 0, (unsigned char *) &buf2, olen, (unsigned char *) &buf, dlen) < 0) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from thcping6.c:13: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: thcping6.c:503:142: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] BUILDSTDERR: if (thc_add_tcp(pkt1, &pkt1_len, port + flood + client, port, (port << 16) + port, 0, TCP_SYN, 5760, 0, (unsigned char *) &buf2, olen, (unsigned char *) &buf, dlen) < 0) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from thcping6.c:13: BUILDSTDERR: thc-ipv6.h:133:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_tcp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int sequence, unsigned int ack, unsigned char flags, unsigned short int window, unsigned short int urgent, char *option, int option_len, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: thcping6.c:505:77: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] BUILDSTDERR: } else if (thc_add_udp(pkt1, &pkt1_len, port + flood + client, port, 0, (unsigned char *) &buf, dlen) < 0) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from thcping6.c:13: BUILDSTDERR: thc-ipv6.h:134:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_add_udp(unsigned char *pkt, int *pkt_len, unsigned short int sport, unsigned short int dport, unsigned int checksum, char *data, int data_len); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: thcping6.c:548:20: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] BUILDSTDERR: strcat(string, thc_ipv62notation(src6)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from thcping6.c:1: BUILDSTDERR: /usr/include/bits/string_fortified.h:126:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) BUILDSTDERR: ^~~~~ BUILDSTDERR: thcping6.c:583:47: warning: pointer targets in passing argument 3 of 'thc_pcap_check' differ in signedness [-Wpointer-sign] BUILDSTDERR: thc_pcap_check(p, (char *) check_packets, buf); BUILDSTDERR: ^~~ BUILDSTDERR: In file included from thcping6.c:13: BUILDSTDERR: thc-ipv6.h:97:12: note: expected 'char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern int thc_pcap_check(pcap_t * p, char *function, char *opt); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: connsplit6.c: In function 'netfilter_queue_callback': BUILDSTDERR: connsplit6.c:186:13: warning: unused variable 'port' [-Wunused-variable] BUILDSTDERR: int port = THC_SPLITCONNECT_PORT, pport; BUILDSTDERR: ^~~~ BUILDSTDERR: connsplit6.c:91:16: warning: unused variable 'hdr' [-Wunused-variable] BUILDSTDERR: thc_ipv6_hdr hdr; BUILDSTDERR: ^~~ BUILDSTDERR: connsplit6.c:90:33: warning: unused variable 'buflen' [-Wunused-variable] BUILDSTDERR: int i, j, k, proto, drop = 0, buflen = 0; BUILDSTDERR: ^~~~~~ BUILDSTDERR: connsplit6.c:90:23: warning: unused variable 'drop' [-Wunused-variable] BUILDSTDERR: int i, j, k, proto, drop = 0, buflen = 0; BUILDSTDERR: ^~~~ BUILDSTDERR: connsplit6.c:90:13: warning: unused variable 'k' [-Wunused-variable] BUILDSTDERR: int i, j, k, proto, drop = 0, buflen = 0; BUILDSTDERR: ^ BUILDSTDERR: connsplit6.c:90:10: warning: unused variable 'j' [-Wunused-variable] BUILDSTDERR: int i, j, k, proto, drop = 0, buflen = 0; BUILDSTDERR: ^ BUILDSTDERR: connsplit6.c:90:7: warning: unused variable 'i' [-Wunused-variable] BUILDSTDERR: int i, j, k, proto, drop = 0, buflen = 0; BUILDSTDERR: ^ BUILDSTDERR: connsplit6.c:87:53: warning: unused variable 'dstmac' [-Wunused-variable] BUILDSTDERR: unsigned char *packet, payload[2048], buf[2048], *dstmac; BUILDSTDERR: ^~~~~~ BUILDSTDERR: connsplit6.c:87:41: warning: unused variable 'buf' [-Wunused-variable] BUILDSTDERR: unsigned char *packet, payload[2048], buf[2048], *dstmac; BUILDSTDERR: ^~~ BUILDSTDERR: connsplit6.c:86:25: warning: unused variable 'temp_id' [-Wunused-variable] BUILDSTDERR: unsigned int len, id, temp_id; BUILDSTDERR: ^~~~~~~ + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.PMX0sr + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64 + cd thc-ipv6-3.4 + make install DESTDIR=/builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64 echo parasite6 dos-new-ip6 detect-new-ip6 fake_router6 fake_advertise6 fake_solicitate6 fake_mld6 fake_mld26 fake_mldrouter6 flood_mldrouter6 fake_mipv6 redir6 smurf6 alive6 toobig6 rsmurf6 implementation6 implementation6d sendpees6 sendpeesmp6 randicmp6 fuzz_ip6 flood_mld6 flood_mld26 flood_router6 flood_advertise6 flood_solicitate6 trace6 exploit6 denial6 fake_dhcps6 flood_dhcpc6 fake_dns6d fragmentation6 kill_router6 fake_dnsupdate6 ndpexhaust6 detect_sniffer6 dump_router6 fake_router26 flood_router26 passive_discovery6 dnsrevenum6 inverse_lookup6 node_query6 address6 covert_send6 covert_send6d inject_alive6 firewall6 ndpexhaust26 fake_pim6 thcsyn6 redirsniff6 flood_redir6 four2six dump_dhcp6 flood_rs6 fuzz_dhcps6 fuzz_dhcpc6 toobigsniff6 flood_unreach6 dnssecwalk dnsdict6 thcping6 fragrouter6 connsplit6 parasite6 dos-new-ip6 detect-new-ip6 fake_router6 fake_advertise6 fake_solicitate6 fake_mld6 fake_mld26 fake_mldrouter6 flood_mldrouter6 fake_mipv6 redir6 smurf6 alive6 toobig6 rsmurf6 implementation6 implementation6d sendpees6 sendpeesmp6 randicmp6 fuzz_ip6 flood_mld6 flood_mld26 flood_router6 flood_advertise6 flood_solicitate6 trace6 exploit6 denial6 fake_dhcps6 flood_dhcpc6 fake_dns6d fragmentation6 kill_router6 fake_dnsupdate6 ndpexhaust6 detect_sniffer6 dump_router6 fake_router26 flood_router26 passive_discovery6 dnsrevenum6 inverse_lookup6 node_query6 address6 covert_send6 covert_send6d inject_alive6 firewall6 ndpexhaust26 fake_pim6 thcsyn6 redirsniff6 flood_redir6 four2six dump_dhcp6 flood_rs6 fuzz_dhcps6 fuzz_dhcpc6 toobigsniff6 flood_unreach6 dnssecwalk dnsdict6 thcping6 fragrouter6 connsplit6 install -m0755 -d /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin install -m0755 parasite6 dos-new-ip6 detect-new-ip6 fake_router6 fake_advertise6 fake_solicitate6 fake_mld6 fake_mld26 fake_mldrouter6 flood_mldrouter6 fake_mipv6 redir6 smurf6 alive6 toobig6 rsmurf6 implementation6 implementation6d sendpees6 sendpeesmp6 randicmp6 fuzz_ip6 flood_mld6 flood_mld26 flood_router6 flood_advertise6 flood_solicitate6 trace6 exploit6 denial6 fake_dhcps6 flood_dhcpc6 fake_dns6d fragmentation6 kill_router6 fake_dnsupdate6 ndpexhaust6 detect_sniffer6 dump_router6 fake_router26 flood_router26 passive_discovery6 dnsrevenum6 inverse_lookup6 node_query6 address6 covert_send6 covert_send6d inject_alive6 firewall6 ndpexhaust26 fake_pim6 thcsyn6 redirsniff6 flood_redir6 four2six dump_dhcp6 flood_rs6 fuzz_dhcps6 fuzz_dhcpc6 toobigsniff6 flood_unreach6 dnssecwalk dnsdict6 thcping6 fragrouter6 connsplit6 grep6.pl *.sh /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin install -m0755 -d /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/share/man/man8 install -m0644 -D thc-ipv6.8 /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/share/man/man8 install -m0644 -D parasite6.8 dos-new-ip6.8 detect-new-ip6.8 fake_router6.8 fake_advertise6.8 fake_solicitate6.8 fake_mld6.8 fake_mld26.8 fake_mldrouter6.8 flood_mldrouter6.8 fake_mipv6.8 redir6.8 smurf6.8 alive6.8 toobig6.8 rsmurf6.8 implementation6.8 implementation6d.8 sendpees6.8 sendpeesmp6.8 randicmp6.8 fuzz_ip6.8 flood_mld6.8 flood_mld26.8 flood_router6.8 flood_advertise6.8 flood_solicitate6.8 trace6.8 exploit6.8 denial6.8 fake_dhcps6.8 flood_dhcpc6.8 fake_dns6d.8 fragmentation6.8 kill_router6.8 fake_dnsupdate6.8 ndpexhaust6.8 detect_sniffer6.8 dump_router6.8 fake_router26.8 flood_router26.8 passive_discovery6.8 dnsrevenum6.8 inverse_lookup6.8 node_query6.8 address6.8 covert_send6.8 covert_send6d.8 inject_alive6.8 firewall6.8 ndpexhaust26.8 fake_pim6.8 thcsyn6.8 redirsniff6.8 flood_redir6.8 four2six.8 dump_dhcp6.8 flood_rs6.8 fuzz_dhcps6.8 fuzz_dhcpc6.8 toobigsniff6.8 flood_unreach6.8 dnssecwalk.8 dnsdict6.8 thcping6.8 fragrouter6.8 connsplit6.8 /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/share/man/man8 + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 3.4-3.fc29 --unique-debug-suffix -3.4-3.fc29.riscv64 --unique-debug-src-base thc-ipv6-3.4-3.fc29.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/thc-ipv6-3.4 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/alive6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_router26 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_dnsupdate6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/alive6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_router26 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/inject_alive6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_dnsupdate6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/inject_alive6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/exploit6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/sendpeesmp6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/exploit6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/sendpeesmp6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/covert_send6d extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/covert_send6d explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/ndpexhaust26 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/ndpexhaust26 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/connsplit6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/connsplit6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_dns6d extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_dns6d explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/parasite6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/parasite6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_router6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_router6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_mldrouter6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_mldrouter6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fragmentation6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_dhcps6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fragmentation6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_dhcps6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/sendpees6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/sendpees6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/covert_send6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/covert_send6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/implementation6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/implementation6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/address6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/address6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_router6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_router6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_redir6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_redir6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/dump_dhcp6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/redirsniff6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/dump_dhcp6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/redirsniff6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/node_query6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/node_query6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_pim6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_pim6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/rsmurf6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/rsmurf6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/thcsyn6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/thcsyn6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_dhcpc6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_dhcpc6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fragrouter6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fragrouter6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/four2six extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/four2six explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_mld26 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_mld26 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fuzz_dhcpc6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fuzz_dhcpc6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/toobigsniff6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/toobigsniff6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/dnsdict6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/dnsdict6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/dump_router6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/dump_router6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/detect-new-ip6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/detect-new-ip6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/firewall6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/firewall6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/detect_sniffer6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/detect_sniffer6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/dnssecwalk explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_solicitate6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_solicitate6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/dnssecwalk explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_advertise6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_advertise6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/toobig6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/toobig6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/thcping6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/thcping6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/randicmp6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/randicmp6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_mld6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_mld6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_router26 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_router26 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_mld6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_mld6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/kill_router6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/kill_router6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_mldrouter6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_mldrouter6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/dos-new-ip6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/dos-new-ip6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/implementation6d extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/implementation6d explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fuzz_dhcps6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fuzz_dhcps6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fuzz_ip6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fuzz_ip6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/denial6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/ndpexhaust6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_mipv6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/denial6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_mipv6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/ndpexhaust6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_advertise6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_advertise6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_mld26 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_mld26 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_solicitate6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/fake_solicitate6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/inverse_lookup6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/inverse_lookup6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_rs6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_rs6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/redir6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/redir6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/passive_discovery6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/smurf6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/passive_discovery6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/smurf6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_unreach6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/flood_unreach6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/dnsrevenum6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/dnsrevenum6 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/trace6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/bin/trace6 /usr/lib/rpm/sepdebugcrcfix: Updated 67 CRC32s, 0 CRC32s did match. BUILDSTDERR: 2451 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig BUILDSTDERR: /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /usr/bin/trace62list.sh from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/dos_mld6.sh from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/thc-ipv6-setup.sh from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/six2four.sh from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/local_discovery6.sh from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/dnsrevenum6.sh from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/create_network_map.sh from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/connsplit6.sh from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/alive2map.sh from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/axfr-reverse.sh from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/dnssecwalk.sh from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/fragrouter6.sh from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/axfr.sh from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/extract_networks6.sh from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/extract_hosts6.sh from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/6to4test.sh from /bin/bash to #!/usr/bin/bash Processing files: thc-ipv6-3.4-3.fc29.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.e06kMM + umask 022 + cd /builddir/build/BUILD + cd thc-ipv6-3.4 + DOCDIR=/builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/share/doc/thc-ipv6 + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/share/doc/thc-ipv6 + cp -pr CHANGES /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/share/doc/thc-ipv6 + cp -pr LICENSE /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/share/doc/thc-ipv6 + cp -pr LICENSE.OPENSSL /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/share/doc/thc-ipv6 + cp -pr README /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/share/doc/thc-ipv6 + cp -pr HOWTO-INJECT /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64/usr/share/doc/thc-ipv6 + exit 0 Provides: thc-ipv6 = 3.4-3.fc29 thc-ipv6(riscv-64) = 3.4-3.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/bash /usr/bin/perl ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libcrypto.so.1.1()(64bit) libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) libnetfilter_queue.so.1()(64bit) libpcap.so.1()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.27)(64bit) libresolv.so.2()(64bit) libresolv.so.2(GLIBC_2.27)(64bit) librt.so.1()(64bit) libssl.so.1.1()(64bit) perl(Socket) perl(Socket6) rtld(GNU_HASH) Processing files: thc-ipv6-debugsource-3.4-3.fc29.riscv64 Provides: thc-ipv6-debugsource = 3.4-3.fc29 thc-ipv6-debugsource(riscv-64) = 3.4-3.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: thc-ipv6-debuginfo-3.4-3.fc29.riscv64 Provides: debuginfo(build-id) = 04f6c39686d8c08f147ff4531861109c1f10f072 debuginfo(build-id) = 07db1a43ecae67bc8a3d43233d232bc8ca35d686 debuginfo(build-id) = 097c226024e2a468bdce9735b1a385c99d867e3b debuginfo(build-id) = 132a4a5924591eafabcb13805a95ddff5b3979e0 debuginfo(build-id) = 1464c29ce3491a75456c66ea332600456f60da3c debuginfo(build-id) = 156b894799219e0bd2d7d0098f498bfe44fff6cc debuginfo(build-id) = 187877bf0bd43b63a8c78a59084fd46d9e07b8cf debuginfo(build-id) = 27873304593b8ff7b32f7f388bdeb80b32d1ae05 debuginfo(build-id) = 293e49f799f6d4628415d0c1d8d5ffd5eaafb4a2 debuginfo(build-id) = 2c12c452e0a0aab2d761ae4990279434d5c0d2ad debuginfo(build-id) = 2ccbf8bef9d62d1da6424e85e23f2ffb05ade0cf debuginfo(build-id) = 3165b0553e5a23a9fb261aa81172a18e010187b8 debuginfo(build-id) = 321917a5d3d7401444e4c34018d3c436eb0ccfb4 debuginfo(build-id) = 39caf4aa4585314beba3d4ed8e76f14c46a669ca debuginfo(build-id) = 3c085d4a7dfe42684809aea467e5cd9b9c4f64cd debuginfo(build-id) = 3fa906bea4babd81ea4d2756247a4753e9523a53 debuginfo(build-id) = 47eda0014569592816410d7e15f9cc8365ed4a7a debuginfo(build-id) = 4810d7c906f0f270a6a9b82c2af381f624d8ef83 debuginfo(build-id) = 4b18666e5f4a7b5e6c0586c41bb09b062734e942 debuginfo(build-id) = 4bf7944741170ef6f84bb0fbb5d63b37578ce063 debuginfo(build-id) = 4d2d114fc50698de638e8dd90e605e99beedcafb debuginfo(build-id) = 4db36cc1dd14d531ca501b3ce987f28372198d03 debuginfo(build-id) = 4fe19b578836ae7043d63671a00869d771fcfef0 debuginfo(build-id) = 54b8865288fbba5767033a2f6da4f59ef07c8f13 debuginfo(build-id) = 561fee472a6a84185089e0f2ea99fa3892e0e85b debuginfo(build-id) = 576ad71b94c5c1bdfd71ef70fa2d8a1f9e34d3d1 debuginfo(build-id) = 5a845571158a1208bb6cab2c82d820db138df91b debuginfo(build-id) = 5f47f39c4dbad9da573a9bb998d2192014c58e85 debuginfo(build-id) = 65ef8c29f5d22086b589fdaeadee3246e9518ab5 debuginfo(build-id) = 6c2c52b59d9a63eb5cf1ac2922a845738b3febbb debuginfo(build-id) = 6c408af230bca934a8d7c528e7bfb35ef25f84d4 debuginfo(build-id) = 7123a3b26b67e74921dcb75756a049e04f08fb6f debuginfo(build-id) = 727611dec73fe0d8c111f79f654330e60b8e9089 debuginfo(build-id) = 7466a77701eeedf2a107450f948018d7b6f72546 debuginfo(build-id) = 79268f151fd5f0a604347257019c982ebcb29b3a debuginfo(build-id) = 7b821ffb34271d176fad595aa081571241c91bd9 debuginfo(build-id) = 7d034e05af8dab1fc898c1088791f4e9502ab61c debuginfo(build-id) = 80632857fc7ff641e4b2fd723510cd0dc5ec2343 debuginfo(build-id) = 81b22e25ca12fe175d294eef1e5c75dc6fc5212f debuginfo(build-id) = 8339bf66dd686fc09466ffa9216cc9da532d322a debuginfo(build-id) = 843b1b904d32c8aef18842e46f7f51c03cde33b9 debuginfo(build-id) = 84ff5f6a42823767562615c1e38fac2a35091647 debuginfo(build-id) = 8acd8fa87d4179a271ade4e7dc1b59c9d189780b debuginfo(build-id) = 8f0c6f678936433dffb371b4a9122846e9a5a81c debuginfo(build-id) = 9339e2eca13d6795bdac827ff44f93254e6c0f07 debuginfo(build-id) = 958eef917af2958d3baa9f511bd13a9890022b35 debuginfo(build-id) = 9a76a8f6aa17e2e01c47765290de412a3db7aaf1 debuginfo(build-id) = a131072a837934556a03bd27cc99f8e53375c4d6 debuginfo(build-id) = a621b9811f0cd3a34dcf40c3225599cbbec355e8 debuginfo(build-id) = b48f844cd1fbd196e8be6770804847868af3133d debuginfo(build-id) = b4a85fa3c2841a06919c65cd2698c4d06b327784 debuginfo(build-id) = b555a7555f6a5d0cf766108341cf91c68af50ec1 debuginfo(build-id) = bf685365e70eab7aa9d1de3582916c145a79a395 debuginfo(build-id) = c5d9dbbb3b299b39d10189b12222d3e4ebdf73af debuginfo(build-id) = caac4feb29657f72660dd7b9ded10d5b0366772f debuginfo(build-id) = cf10f3fd866e0bea9841d577539419e2df6f6836 debuginfo(build-id) = d69c0680f1ab813d2ca6a217847ce2a3394f817d debuginfo(build-id) = dab2793ace804bc396bd2431c02e018498262a0c debuginfo(build-id) = dcd3a3ca4b43e08226aaa0799f489f1de8506c2b debuginfo(build-id) = de6ce1eae58a2d1e7c361e1cc3b47c8c3bf698c0 debuginfo(build-id) = df82f22d891aeeb1e88c180fa301592ebf7a7eba debuginfo(build-id) = e5a62dc6e0ef4a90f35e57eae0fd034eca5439ac debuginfo(build-id) = e733e471e9c72f029ff77b391967776f40045d87 debuginfo(build-id) = f9b085da4e7aa5dd6ec3bce6aa51d137d24851eb debuginfo(build-id) = fa740be09ded3efd130710804d58b01e10d5316a debuginfo(build-id) = fb9e1bb0366a0c067a70875979fb949995ac0a93 debuginfo(build-id) = fdb079790ee7598dea78db4858aae29aa1089b5a thc-ipv6-debuginfo = 3.4-3.fc29 thc-ipv6-debuginfo(riscv-64) = 3.4-3.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: thc-ipv6-debugsource(riscv-64) = 3.4-3.fc29 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64 Wrote: /builddir/build/RPMS/thc-ipv6-3.4-3.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/thc-ipv6-debugsource-3.4-3.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/thc-ipv6-debuginfo-3.4-3.fc29.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.ymQO7X + umask 022 + cd /builddir/build/BUILD + cd thc-ipv6-3.4 + /usr/bin/rm -rf /builddir/build/BUILDROOT/thc-ipv6-3.4-3.fc29.riscv64 + exit 0 Child return code was: 0