Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/thc-ipv6.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-a2a4e6f9e015cfb47e47387be8d6301410848ebb/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=996) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/thc-ipv6.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/thc-ipv6-2.5-2.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/thc-ipv6.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-a2a4e6f9e015cfb47e47387be8d6301410848ebb/root'shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/thc-ipv6.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: armv7hl Building for target armv7hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Qbb0dL + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf thc-ipv6-2.5 + /usr/bin/gzip -dc /builddir/build/SOURCES/thc-ipv6-2.5.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd thc-ipv6-2.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.OKKZ8r + umask 022 + cd /builddir/build/BUILD + cd thc-ipv6-2.5 + sed -i 's|^PREFIX=/usr/local|PREFIX=/usr|' Makefile + sed -i '/^CFLAGS=-O2/d' Makefile + make -j4 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c -o thc-ipv6-lib.o thc-ipv6-lib.c gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o dnssecwalk dnssecwalk.c gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o dnsdict6 dnsdict6.c -lpthread -lresolv thc-ipv6-lib.c: In function 'thc_ipv6_dummymac': thc-ipv6-lib.c:102:3: warning: pointer targets in return differ in signedness [-Wpointer-sign] return ptr; ^ thc-ipv6-lib.c: In function 'thc_pcap_function': thc-ipv6-lib.c:126:5: warning: pointer targets in passing argument 4 of 'pcap_dispatch' differ in signedness [-Wpointer-sign] if (pcap_dispatch(pcap_link, 1, (pcap_handler) function, opt) < 0) ^ In file included from /usr/include/pcap.h:45:0, from thc-ipv6-lib.c:39: /usr/include/pcap/pcap.h:373:5: note: expected 'u_char *' but argument is of type 'char *' int pcap_dispatch(pcap_t *, int, pcap_handler, u_char *); ^ thc-ipv6-lib.c: In function 'thc_pcap_init_promisc': thc-ipv6-lib.c:173:5: warning: pointer targets in passing argument 3 of 'pcap_compile' differ in signedness [-Wpointer-sign] if (pcap_compile(pcap_link, &fcode, capture, 1, 0) < 0) ^ In file included from /usr/include/pcap.h:45:0, from thc-ipv6-lib.c:39: /usr/include/pcap/pcap.h:389:5: note: expected 'const char *' but argument is of type 'unsigned char *' int pcap_compile(pcap_t *, struct bpf_program *, const char *, int, ^ thc-ipv6-lib.c: In function 'thc_pcap_check': thc-ipv6-lib.c:183:3: warning: pointer targets in passing argument 4 of 'pcap_dispatch' differ in signedness [-Wpointer-sign] return pcap_dispatch(pcap_link, 1, (pcap_handler) function, opt); ^ In file included from /usr/include/pcap.h:45:0, from thc-ipv6-lib.c:39: /usr/include/pcap/pcap.h:373:5: note: expected 'u_char *' but argument is of type 'char *' int pcap_dispatch(pcap_t *, int, pcap_handler, u_char *); ^ thc-ipv6-lib.c: In function 'thc_notation2beauty': thc-ipv6-lib.c:197:3: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (ipv6[39] != 0 || strlen(ipv6) != 39) ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:203:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr = ipv6 + i * 4 + i; ^ thc-ipv6-lib.c:231:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (ipv6[strlen(ipv6) - 1] == '0' && ipv6[strlen(ipv6) - 2] == ':' && ptr2 - buf + 1 + strlen(buf2) == strlen(buf)) ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:231:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (ipv6[strlen(ipv6) - 1] == '0' && ipv6[strlen(ipv6) - 2] == ':' && ptr2 - buf + 1 + strlen(buf2) == strlen(buf)) ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:232:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ipv6[strlen(ipv6) - 1] = 0; ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:234:5: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] strcpy(ipv6, buf); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from thc-ipv6-lib.c:12: /usr/include/bits/string3.h:102:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ thc-ipv6-lib.c: In function 'thc_ipv62string': thc-ipv6-lib.c:259:3: warning: pointer targets in return differ in signedness [-Wpointer-sign] return string; ^ thc-ipv6-lib.c: In function 'thc_ipv62notation': thc-ipv6-lib.c:299:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((res = thc_ipv62string(ipv6)) == NULL) ^ thc-ipv6-lib.c:301:3: warning: pointer targets in passing argument 1 of 'thc_string2notation' differ in signedness [-Wpointer-sign] ptr = thc_string2notation(res); ^ thc-ipv6-lib.c:277:16: note: expected 'unsigned char *' but argument is of type 'char *' unsigned char *thc_string2notation(unsigned char *string) { ^ thc-ipv6-lib.c:301:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr = thc_string2notation(res); ^ thc-ipv6-lib.c:303:3: warning: pointer targets in return differ in signedness [-Wpointer-sign] return ptr; ^ thc-ipv6-lib.c: In function 'thc_resolve6': thc-ipv6-lib.c:399:3: warning: pointer targets in passing argument 3 of 'getnameinfo' differ in signedness [-Wpointer-sign] if (getnameinfo(glob_result->ai_addr, glob_result->ai_addrlen, out, sizeof(out), NULL, 0, NI_NUMERICHOST) != 0) ^ In file included from thc-ipv6-lib.c:26:0: /usr/include/netdb.h:677:12: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' extern int getnameinfo (const struct sockaddr *__restrict __sa, ^ thc-ipv6-lib.c:401:3: warning: pointer targets in passing argument 2 of 'inet_pton' differ in signedness [-Wpointer-sign] if (inet_pton(AF_INET6, out, glob_addr) < 0) ^ In file included from thc-ipv6-lib.c:25:0: /usr/include/arpa/inet.h:58:12: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' extern int inet_pton (int __af, const char *__restrict __cp, ^ thc-ipv6-lib.c:409:5: warning: pointer targets in passing argument 1 of 'thc_dump_data' differ in signedness [-Wpointer-sign] thc_dump_data(ret_addr, 16, "Target Resolve IPv6"); ^ In file included from thc-ipv6-lib.c:40:0: thc-ipv6.h:142:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void thc_dump_data(unsigned char *buf, int len, char *text); ^ thc-ipv6-lib.c:411:3: warning: pointer targets in return differ in signedness [-Wpointer-sign] return ret_addr; ^ thc-ipv6-lib.c: In function 'thc_get_own_mac': thc-ipv6-lib.c:487:5: warning: pointer targets in passing argument 1 of 'thc_dump_data' differ in signedness [-Wpointer-sign] thc_dump_data(mac, 6, "Own MAC address"); ^ In file included from thc-ipv6-lib.c:40:0: thc-ipv6.h:142:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void thc_dump_data(unsigned char *buf, int len, char *text); ^ thc-ipv6-lib.c:488:3: warning: pointer targets in return differ in signedness [-Wpointer-sign] return mac; ^ thc-ipv6-lib.c: In function 'thc_get_own_ipv6': thc-ipv6-lib.c:526:5: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] while (done < 2 && fgets(buf, sizeof(buf), f) != NULL) { ^ In file included from /usr/include/stdio.h:937:0, from thc-ipv6-lib.c:12: /usr/include/bits/stdio2.h:253:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ thc-ipv6-lib.c:527:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ thc-ipv6-lib.c:527:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ thc-ipv6-lib.c:527:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ thc-ipv6-lib.c:527:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:527:7: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:528:9: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] sscanf(buf, "%s %x %x %x %s", tmpbuf, &a, &b, &c, bla); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from thc-ipv6-lib.c:12: /usr/include/stdio.h:448:12: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, ^ thc-ipv6-lib.c:541:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:541:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:541:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:541:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:541:11: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ thc-ipv6-lib.c:541:11: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:541:11: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:541:11: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:541:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:541:11: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ thc-ipv6-lib.c:541:11: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:541:11: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:541:11: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:541:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:541:11: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ thc-ipv6-lib.c:541:11: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:541:11: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:541:11: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:541:11: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:541:11: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:541:11: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:541:11: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:541:11: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:541:11: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) ^ thc-ipv6-lib.c:564:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) ^ thc-ipv6-lib.c:564:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:564:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:564:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) ^ thc-ipv6-lib.c:564:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) ^ thc-ipv6-lib.c:564:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:564:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:564:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) ^ thc-ipv6-lib.c:564:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) ^ thc-ipv6-lib.c:564:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:564:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:564:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) ^ thc-ipv6-lib.c:564:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (strncmp(tmpdst, "fc", 2) == 0 || strncmp(tmpdst, "fd", 2) == 0)) ^ thc-ipv6-lib.c:564:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:564:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:564:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:564:16: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:574:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ( ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (tmpdst[0] == '2' || tmpdst[0] == '3')) ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:574:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ( ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (tmpdst[0] == '2' || tmpdst[0] == '3')) ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:574:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] ( ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (tmpdst[0] == '2' || tmpdst[0] == '3')) ^ thc-ipv6-lib.c:574:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:574:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:574:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] ( ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (tmpdst[0] == '2' || tmpdst[0] == '3')) ^ thc-ipv6-lib.c:574:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:574:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:574:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:574:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:574:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:574:16: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:574:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ( ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (tmpdst[0] == '2' || tmpdst[0] == '3')) ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:574:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ( ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (tmpdst[0] == '2' || tmpdst[0] == '3')) ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:574:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] ( ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (tmpdst[0] == '2' || tmpdst[0] == '3')) ^ thc-ipv6-lib.c:574:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:574:16: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:574:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] ( ((strncmp(tmpbuf, "fc", 2) == 0 || strncmp(tmpbuf, "fd", 2) == 0) && (tmpdst[0] == '2' || tmpdst[0] == '3')) ^ thc-ipv6-lib.c:574:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:574:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:574:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:574:16: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:574:16: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:574:16: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:576:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ((strncmp(tmpdst, "fc", 2) == 0 && strncmp(tmpdst, "fd", 2) == 0) && (tmpbuf[0] == '2' || tmpbuf[0] == '3')) ) ) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:576:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ((strncmp(tmpdst, "fc", 2) == 0 && strncmp(tmpdst, "fd", 2) == 0) && (tmpbuf[0] == '2' || tmpbuf[0] == '3')) ) ) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:576:18: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] ((strncmp(tmpdst, "fc", 2) == 0 && strncmp(tmpdst, "fd", 2) == 0) && (tmpbuf[0] == '2' || tmpbuf[0] == '3')) ) ) { ^ thc-ipv6-lib.c:576:18: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:576:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:576:18: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] ((strncmp(tmpdst, "fc", 2) == 0 && strncmp(tmpdst, "fd", 2) == 0) && (tmpbuf[0] == '2' || tmpbuf[0] == '3')) ) ) { ^ thc-ipv6-lib.c:576:18: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:576:18: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:576:18: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:576:18: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:576:18: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:576:18: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:576:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ((strncmp(tmpdst, "fc", 2) == 0 && strncmp(tmpdst, "fd", 2) == 0) && (tmpbuf[0] == '2' || tmpbuf[0] == '3')) ) ) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:576:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] ((strncmp(tmpdst, "fc", 2) == 0 && strncmp(tmpdst, "fd", 2) == 0) && (tmpbuf[0] == '2' || tmpbuf[0] == '3')) ) ) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:576:18: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] ((strncmp(tmpdst, "fc", 2) == 0 && strncmp(tmpdst, "fd", 2) == 0) && (tmpbuf[0] == '2' || tmpbuf[0] == '3')) ) ) { ^ thc-ipv6-lib.c:576:18: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:576:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:576:18: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] ((strncmp(tmpdst, "fc", 2) == 0 && strncmp(tmpdst, "fd", 2) == 0) && (tmpbuf[0] == '2' || tmpbuf[0] == '3')) ) ) { ^ thc-ipv6-lib.c:576:18: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:576:18: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:576:18: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:576:18: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:576:18: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:576:18: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:588:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (done < 2 && strlen(&ipv6[2]) == 0 && strlen(&save[2]) > 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:588:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (done < 2 && strlen(&ipv6[2]) == 0 && strlen(&save[2]) > 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:596:3: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strlen(&save[2]) > 0 && prefer == PREFER_GLOBAL && strncmp(ipv6 + 2, "fe80", 2) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:596:3: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strlen(&save[2]) > 0 && prefer == PREFER_GLOBAL && strncmp(ipv6 + 2, "fe80", 2) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:596:3: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strlen(&save[2]) > 0 && prefer == PREFER_GLOBAL && strncmp(ipv6 + 2, "fe80", 2) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:596:3: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strlen(&save[2]) > 0 && prefer == PREFER_GLOBAL && strncmp(ipv6 + 2, "fe80", 2) == 0) { ^ thc-ipv6-lib.c:596:3: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:596:3: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:596:3: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strlen(&save[2]) > 0 && prefer == PREFER_GLOBAL && strncmp(ipv6 + 2, "fe80", 2) == 0) { ^ thc-ipv6-lib.c:596:3: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:596:3: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:596:3: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:596:3: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:596:3: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:596:3: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:602:3: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strlen(&ipv6[2]) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:615:3: warning: pointer targets in passing argument 1 of 'thc_resolve6' differ in signedness [-Wpointer-sign] myipv6 = thc_resolve6(tmpdst); ^ thc-ipv6-lib.c:370:16: note: expected 'char *' but argument is of type 'unsigned char *' unsigned char *thc_resolve6(char *target) { ^ thc-ipv6-lib.c:615:10: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] myipv6 = thc_resolve6(tmpdst); ^ thc-ipv6-lib.c:619:5: warning: pointer targets in passing argument 1 of 'thc_dump_data' differ in signedness [-Wpointer-sign] thc_dump_data(myipv6, 16, "Own IPv6 address"); ^ In file included from thc-ipv6-lib.c:40:0: thc-ipv6.h:142:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void thc_dump_data(unsigned char *buf, int len, char *text); ^ thc-ipv6-lib.c:620:3: warning: pointer targets in return differ in signedness [-Wpointer-sign] return myipv6; ^ thc-ipv6-lib.c: In function 'thc_lookup_ipv6_mac': thc-ipv6-lib.c:686:11: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((p1 = thc_get_own_ipv6(interface, dst, PREFER_LINK)) == NULL) ^ thc-ipv6-lib.c:689:3: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] if ((p2 = thc_ipv62notation(p1)) == NULL) { ^ thc-ipv6-lib.c:294:16: note: expected 'unsigned char *' but argument is of type 'char *' unsigned char *thc_ipv62notation(unsigned char *ipv6) { ^ thc-ipv6-lib.c:689:11: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((p2 = thc_ipv62notation(p1)) == NULL) { ^ thc-ipv6-lib.c:701:5: warning: pointer targets in passing argument 2 of 'thc_neighborsol6' differ in signedness [-Wpointer-sign] thc_neighborsol6(interface, mysrc, NULL, dst, NULL, NULL); ^ In file included from thc-ipv6-lib.c:40:0: thc-ipv6.h:106:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_neighborsol6(char *interface, unsigned char *src, unsigned char *dst, unsigned char *target, unsigned char *srcmac, unsigned char *dstmac); ^ thc-ipv6-lib.c: In function 'thc_look_neighborcache': thc-ipv6-lib.c:747:55: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign] gotsize = recvfrom(fd, buf, sizeof(buf), 0, (struct sockaddr *) &nladdr, &fromlen); ^ In file included from /usr/include/sys/socket.h:281:0, from thc-ipv6-lib.c:23: /usr/include/bits/socket2.h:64:1: note: expected 'socklen_t * __restrict__' but argument is of type 'int *' recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, ^ thc-ipv6-lib.c:754:3: warning: pointer targets in passing argument 1 of 'thc_memstr' differ in signedness [-Wpointer-sign] if ((ptr = thc_memstr(buf, dst, gotsize /* - (ptr - buf) */ , 16)) == NULL) ^ In file included from thc-ipv6-lib.c:40:0: thc-ipv6.h:147:23: note: expected 'char *' but argument is of type 'unsigned char *' extern unsigned char *thc_memstr(char *haystack, char *needle, int haystack_length, int needle_length); ^ thc-ipv6-lib.c:754:3: warning: pointer targets in passing argument 2 of 'thc_memstr' differ in signedness [-Wpointer-sign] if ((ptr = thc_memstr(buf, dst, gotsize /* - (ptr - buf) */ , 16)) == NULL) ^ In file included from thc-ipv6-lib.c:40:0: thc-ipv6.h:147:23: note: expected 'char *' but argument is of type 'unsigned char *' extern unsigned char *thc_memstr(char *haystack, char *needle, int haystack_length, int needle_length); ^ thc-ipv6-lib.c: In function 'thc_is_dst_local': thc-ipv6-lib.c:787:3: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] while (local == 0 && fgets(buf, sizeof(buf), f) != NULL) { ^ In file included from /usr/include/stdio.h:937:0, from thc-ipv6-lib.c:12: /usr/include/bits/stdio2.h:253:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ thc-ipv6-lib.c:788:5: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ thc-ipv6-lib.c:788:5: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ thc-ipv6-lib.c:788:5: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ thc-ipv6-lib.c:788:5: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:788:5: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:789:7: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] sscanf(buf, "%s %x %x %x %s", tmpbuf, &a, &b, &c, bla); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from thc-ipv6-lib.c:12: /usr/include/stdio.h:448:12: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, ^ thc-ipv6-lib.c:790:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:790:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:790:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:790:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:790:7: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ thc-ipv6-lib.c:790:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:790:7: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:790:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:790:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:790:7: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ thc-ipv6-lib.c:790:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:790:7: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:790:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:790:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:790:7: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ thc-ipv6-lib.c:790:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:790:7: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:790:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:790:7: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:790:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:790:7: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:790:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:790:7: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:790:7: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c: In function 'thc_get_mac': thc-ipv6-lib.c:833:3: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] while (local == 0 && fgets(buf, sizeof(buf), f) != NULL) { ^ In file included from /usr/include/stdio.h:937:0, from thc-ipv6-lib.c:12: /usr/include/bits/stdio2.h:253:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ thc-ipv6-lib.c:834:5: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ thc-ipv6-lib.c:834:5: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ thc-ipv6-lib.c:834:5: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ thc-ipv6-lib.c:834:5: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:834:5: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:835:7: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] sscanf(buf, "%s %x %x %x %s", tmpbuf, &a, &b, &c, bla); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from thc-ipv6-lib.c:12: /usr/include/stdio.h:448:12: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, ^ thc-ipv6-lib.c:836:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:836:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:836:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:836:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:836:7: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ thc-ipv6-lib.c:836:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:836:7: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:836:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:836:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:836:7: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ thc-ipv6-lib.c:836:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:836:7: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:836:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:836:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:836:7: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ thc-ipv6-lib.c:836:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:836:7: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:836:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:836:7: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:836:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:836:7: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:836:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:836:7: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:836:7: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:857:5: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] while (local == 0 && fgets(buf, sizeof(buf), f) != NULL) { ^ In file included from /usr/include/stdio.h:937:0, from thc-ipv6-lib.c:12: /usr/include/bits/stdio2.h:253:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ thc-ipv6-lib.c:858:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ thc-ipv6-lib.c:858:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ thc-ipv6-lib.c:858:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ thc-ipv6-lib.c:858:7: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:858:7: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] if (strncmp(interface, &buf[strlen(buf) - strlen(interface) - 1], strlen(interface)) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:859:9: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] sscanf(buf, "%s %x %s %x %s %s", tmpbuf, &b, router1, &a, router2, bla); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from thc-ipv6-lib.c:12: /usr/include/stdio.h:448:12: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, ^ thc-ipv6-lib.c:861:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:861:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:861:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:861:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:861:11: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ thc-ipv6-lib.c:861:11: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:861:11: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:861:11: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:861:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:861:11: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ thc-ipv6-lib.c:861:11: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:861:11: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:861:11: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:861:11: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:861:11: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ thc-ipv6-lib.c:861:11: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:861:11: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:861:11: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:861:11: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:861:11: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:861:11: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness [-Wpointer-sign] thc-ipv6-lib.c:861:11: note: expected 'const char *' but argument is of type 'unsigned char *' thc-ipv6-lib.c:861:11: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:861:11: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] if (strncmp(tmpbuf, tmpdst, b / 4) == 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:143:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncmp (const char *__s1, const char *__s2, size_t __n) ^ thc-ipv6-lib.c:871:11: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] strcpy(defaultgw, router2); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from thc-ipv6-lib.c:12: /usr/include/bits/string3.h:102:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ thc-ipv6-lib.c:871:11: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign] strcpy(defaultgw, router2); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from thc-ipv6-lib.c:12: /usr/include/bits/string3.h:102:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ thc-ipv6-lib.c:875:11: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] strcpy(tmpdst, router2); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from thc-ipv6-lib.c:12: /usr/include/bits/string3.h:102:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ thc-ipv6-lib.c:875:11: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign] strcpy(tmpdst, router2); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from thc-ipv6-lib.c:12: /usr/include/bits/string3.h:102:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ thc-ipv6-lib.c:879:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (local == 0 && strlen(defaultgw) > 0) { ^ In file included from thc-ipv6-lib.c:13:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ thc-ipv6-lib.c:882:7: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] strcpy(tmpdst, defaultgw); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from thc-ipv6-lib.c:12: /usr/include/bits/string3.h:102:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ thc-ipv6-lib.c:882:7: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign] strcpy(tmpdst, defaultgw); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from thc-ipv6-lib.c:12: /usr/include/bits/string3.h:102:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ thc-ipv6-lib.c:895:6: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p1 = thc_string2ipv6(tmpdst); ^ thc-ipv6-lib.c:896:3: warning: pointer targets in passing argument 1 of 'thc_look_neighborcache' differ in signedness [-Wpointer-sign] if ((ret = thc_look_neighborcache(p1)) != NULL) { ^ thc-ipv6-lib.c:731:16: note: expected 'unsigned char *' but argument is of type 'char *' unsigned char *thc_look_neighborcache(unsigned char *dst) { ^ thc-ipv6-lib.c:896:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((ret = thc_look_neighborcache(p1)) != NULL) { ^ thc-ipv6-lib.c:899:5: warning: pointer targets in return differ in signedness [-Wpointer-sign] return ret; ^ thc-ipv6-lib.c:901:3: warning: pointer targets in passing argument 2 of 'thc_lookup_ipv6_mac' differ in signedness [-Wpointer-sign] ret = thc_lookup_ipv6_mac(interface, p1); ^ thc-ipv6-lib.c:671:16: note: expected 'unsigned char *' but argument is of type 'char *' unsigned char *thc_lookup_ipv6_mac(char *interface, unsigned char *dst) { ^ thc-ipv6-lib.c:901:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ret = thc_lookup_ipv6_mac(interface, p1); ^ thc-ipv6-lib.c:904:3: warning: pointer targets in return differ in signedness [-Wpointer-sign] return ret; ^ thc-ipv6-lib.c: In function 'thc_inverse_packet': thc-ipv6-lib.c:910:15: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] char *src = &pkt[8], *dst = &pkt[24]; ^ thc-ipv6-lib.c:910:31: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] char *src = &pkt[8], *dst = &pkt[24]; ^ thc-ipv6-lib.c:939:7: warning: pointer targets in passing argument 1 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] checksum = checksum_pseudo_header(src, dst, NXT_ICMP6, &pkt[iptr], pkt_len - iptr); ^ thc-ipv6-lib.c:325:5: note: expected 'unsigned char *' but argument is of type 'char *' int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { ^ thc-ipv6-lib.c:939:7: warning: pointer targets in passing argument 2 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] checksum = checksum_pseudo_header(src, dst, NXT_ICMP6, &pkt[iptr], pkt_len - iptr); ^ thc-ipv6-lib.c:325:5: note: expected 'unsigned char *' but argument is of type 'char *' int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { ^ thc-ipv6-lib.c: In function 'thc_create_ipv6_extended': thc-ipv6-lib.c:1777:3: warning: pointer targets in return differ in signedness [-Wpointer-sign] return pkt; ^ thc-ipv6-lib.c: In function 'thc_add_ipv4_rudimentary': thc-ipv6-lib.c:1884:3: warning: pointer targets in passing argument 4 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] checksum = checksum_pseudo_header(NULL, NULL, NXT_IP4, ihdr, 20); ^ thc-ipv6-lib.c:325:5: note: expected 'unsigned char *' but argument is of type 'char *' int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { ^ thc-ipv6-lib.c: In function 'thc_add_pim': thc-ipv6-lib.c:2304:24: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] memset(buf, 0, sizeof(buf)); ^ thc-ipv6-lib.c: In function 'thc_add_data6': thc-ipv6-lib.c:2342:24: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] memset(buf, 0, sizeof(buf)); ^ thc-ipv6-lib.c: In function 'thc_open_ipv6': thc-ipv6-lib.c:2443:5: warning: pointer targets in passing argument 1 of 'thc_dump_data' differ in signedness [-Wpointer-sign] if (debug) thc_dump_data(do_hdr, do_hdr_size + do_hdr_off, "PPPoE Header"); ^ In file included from thc-ipv6-lib.c:40:0: thc-ipv6.h:142:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void thc_dump_data(unsigned char *buf, int len, char *text); ^ thc-ipv6-lib.c:2504:5: warning: pointer targets in passing argument 1 of 'thc_dump_data' differ in signedness [-Wpointer-sign] if (debug) thc_dump_data(do_hdr, do_hdr_size, "6in4 Header"); ^ In file included from thc-ipv6-lib.c:40:0: thc-ipv6.h:142:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void thc_dump_data(unsigned char *buf, int len, char *text); ^ thc-ipv6-lib.c: In function 'thc_generate_pkt': thc-ipv6-lib.c:2563:9: warning: pointer targets in passing argument 1 of 'calculate_checksum' differ in signedness [-Wpointer-sign] i = calculate_checksum(do_hdr + 14 + do_hdr_off, 20); ^ thc-ipv6-lib.c:306:5: note: expected 'unsigned char *' but argument is of type 'char *' int calculate_checksum(unsigned char *data, int data_len) { ^ thc-ipv6-lib.c:2579:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] mysrcmac = thc_get_own_mac(interface); ^ thc-ipv6-lib.c:2581:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] mysrcmac = srcmac; ^ thc-ipv6-lib.c:2584:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] mydstmac = thc_get_mac(interface, hdr->src, hdr->dst); ^ thc-ipv6-lib.c:2586:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] mydstmac = dstmac; ^ thc-ipv6-lib.c:2616:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] last_type = &hdr->pkt[7 + offset]; ^ thc-ipv6-lib.c:2624:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] checksum_src = hdr->original_src; ^ thc-ipv6-lib.c:2636:17: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] last_type = &hdr->pkt[bufptr]; ^ thc-ipv6-lib.c:2640:24: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] checksum_src = &hdr->pkt[bufptr + 4]; ^ thc-ipv6-lib.c:2649:9: warning: zero-length gnu_printf format string [-Wformat-zero-length] printf(""); // to be filled XXX TODO FIXME ^ thc-ipv6-lib.c:2653:9: warning: zero-length gnu_printf format string [-Wformat-zero-length] printf(""); // to be filled XXX TODO FIXME ^ thc-ipv6-lib.c:2669:5: warning: pointer targets in passing argument 1 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] do_checksum = checksum_pseudo_header(checksum_src, hdr->final_dst, NXT_PIM, &hdr->pkt[bufptr], ehdr->data_len); ^ thc-ipv6-lib.c:325:5: note: expected 'unsigned char *' but argument is of type 'char *' int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { ^ thc-ipv6-lib.c:2692:7: warning: pointer targets in passing argument 1 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] ihdr->checksum = checksum_pseudo_header(checksum_src, hdr->final_dst, NXT_ICMP6, &hdr->pkt[bufptr], 8 + ihdr->data_len); ^ thc-ipv6-lib.c:325:5: note: expected 'unsigned char *' but argument is of type 'char *' int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { ^ thc-ipv6-lib.c:2738:7: warning: pointer targets in passing argument 1 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] thdr->checksum = checksum_pseudo_header(checksum_src, hdr->final_dst, NXT_TCP, &hdr->pkt[bufptr], 20 + thdr->option_len + thdr->data_len); ^ thc-ipv6-lib.c:325:5: note: expected 'unsigned char *' but argument is of type 'char *' int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { ^ thc-ipv6-lib.c:2776:7: warning: pointer targets in passing argument 1 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] uhdr->checksum = checksum_pseudo_header(checksum_src, hdr->final_dst, NXT_UDP, &hdr->pkt[bufptr], 8 + uhdr->data_len); ^ thc-ipv6-lib.c:325:5: note: expected 'unsigned char *' but argument is of type 'char *' int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { ^ thc-ipv6-lib.c:2797:7: warning: pointer targets in passing argument 1 of 'checksum_pseudo_header' differ in signedness [-Wpointer-sign] do_checksum = checksum_pseudo_header(checksum_src, hdr->final_dst, NXT_MIPV6, &hdr->pkt[bufptr], ehdr->data_len); ^ thc-ipv6-lib.c:325:5: note: expected 'unsigned char *' but argument is of type 'char *' int checksum_pseudo_header(unsigned char *src, unsigned char *dst, unsigned char type, unsigned char *data, int length) { ^ thc-ipv6-lib.c:2540:53: warning: variable 'is_ip4' set but not used [-Wunused-but-set-variable] int type, bufptr, do_checksum = 0, offset = 0, i, is_ip4 = 0; ^ thc-ipv6-lib.c: In function 'thc_destroy_packet': thc-ipv6-lib.c:2886:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptrs[iptr] = pkt; ^ thc-ipv6-lib.c:2896:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptrs[iptr] = ehdr->data; ^ thc-ipv6-lib.c:2909:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptrs[iptr] = ihdr->data; ^ thc-ipv6-lib.c:2916:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptrs[iptr] = thdr->option; ^ thc-ipv6-lib.c:2918:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptrs[iptr] = thdr->data; ^ thc-ipv6-lib.c:2925:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptrs[iptr] = uhdr->data; ^ thc-ipv6-lib.c:2935:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptrs[iptr] = ehdr->data; ^ thc-ipv6-lib.c:2942:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptrs[iptr] = ehdr->data; ^ thc-ipv6-lib.c: In function 'thc_memstr': thc-ipv6-lib.c:3032:7: warning: pointer targets in return differ in signedness [-Wpointer-sign] return (haystack + i); ^ dnsdict6.c: In function 'dnsquerycode': dnsdict6.c:364:3: warning: pointer targets in passing argument 4 of '__res_query' differ in signedness [-Wpointer-sign] res_query(dom, ns_c_in, type, vbuf, sizeof(vbuf)); ^ In file included from dnsdict6.c:27:0: /usr/include/resolv.h:277:6: note: expected 'u_char *' but argument is of type 'char *' int res_query (const char *, int, int, u_char *, int) __THROW; ^ dnsdict6.c: In function 'main': dnsdict6.c:628:8: warning: unused variable 'typ' [-Wunused-variable] char typ = 't', **sub_orig; ^ thc-ipv6-lib.c: In function 'thc_get_own_ipv6': thc-ipv6-lib.c:533:15: warning: array subscript is above array bounds [-Warray-bounds] ipv6[34] = 0; ^ thc-ipv6-lib.c:557:19: warning: array subscript is above array bounds [-Warray-bounds] ipv6[34] = 0; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o parasite6 parasite6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o dos-new-ip6 dos-new-ip6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o detect-new-ip6 detect-new-ip6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o fake_router6 fake_router6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto dos-new-ip6.c: In function 'intercept': dos-new-ip6.c:59:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr4 = thc_ipv62notation(ipv6->pkt + 22); ^ dos-new-ip6.c:31:7: warning: variable 'len' set but not used [-Wunused-but-set-variable] int len = header->caplen - 14; ^ detect-new-ip6.c: In function 'intercept': detect-new-ip6.c:51:3: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] ptr4 = thc_ipv62notation((char *) (ipv6hdr + 48)); ^ parasite6.c: In function 'intercept': In file included from detect-new-ip6.c:11:0: thc-ipv6.h:146:23: note: expected 'unsigned char *' but argument is of type 'char *' extern unsigned char *thc_ipv62notation(unsigned char *string); ^ parasite6.c:70:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr2 = thc_ipv62notation(ipv6->pkt + 38); ^ detect-new-ip6.c:51:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr4 = thc_ipv62notation((char *) (ipv6hdr + 48)); ^ parasite6.c:71:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr4 = thc_ipv62notation(ipv6->pkt + 22); ^ parasite6.c:101:10: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr2 = thc_ipv62notation(ipv62->pkt + 38); ^ parasite6.c:102:10: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr4 = thc_ipv62notation(ipv62->pkt + 22); ^ fake_router6.c: In function 'send_rs_reply': fake_router6.c:40:5: warning: pointer targets in passing argument 3 of 'thc_add_hdr_hopbyhop' differ in signedness [-Wpointer-sign] if (thc_add_hdr_hopbyhop(pkt, &pkt_len, frbuf2, frbuf2len) < 0) ^ In file included from fake_router6.c:11:0: thc-ipv6.h:124:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_add_hdr_hopbyhop(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); ^ fake_router6.c:52:5: warning: pointer targets in passing argument 3 of 'thc_add_hdr_dst' differ in signedness [-Wpointer-sign] if (thc_add_hdr_dst(pkt, &pkt_len, buf3, sizeof(buf3)) < 0) ^ dos-new-ip6.c: In function 'main': dos-new-ip6.c:107:3: warning: pointer targets in passing argument 4 of 'thc_create_ipv6_extended' differ in signedness [-Wpointer-sign] if ((pkt = thc_create_ipv6_extended(interface, PREFER_LINK, &pkt_len, dummy, dst, 255, 0, 0, 0, 0)) == NULL) ^ In file included from fake_router6.c:11:0: thc-ipv6.h:123:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_add_hdr_dst(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); ^ In file included from dos-new-ip6.c:11:0: thc-ipv6.h:117:23: note: expected 'unsigned char *' but argument is of type 'char *' 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); ^ fake_router6.c:55:3: warning: pointer targets in passing argument 6 of 'thc_add_icmp6' differ in signedness [-Wpointer-sign] if (thc_add_icmp6(pkt, &pkt_len, ICMP6_ROUTERADV, 0, 0xff080800, frbuf, frbuflen, 0) < 0) ^ In file included from fake_router6.c:11:0: thc-ipv6.h:126:12: note: expected 'unsigned char *' but argument is of type 'char *' 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); ^ dos-new-ip6.c:109:3: warning: pointer targets in passing argument 6 of 'thc_add_icmp6' differ in signedness [-Wpointer-sign] if (thc_add_icmp6(pkt, &pkt_len, ICMP6_NEIGHBORADV, 0, ICMP6_NEIGHBORADV_OVERRIDE, dummy, 24, 0) < 0) ^ In file included from dos-new-ip6.c:11:0: thc-ipv6.h:126:12: note: expected 'unsigned char *' but argument is of type 'char *' 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); ^ fake_router6.c: In function 'main': fake_router6.c:71:46: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *routerip6, *route6, *mac6 = mac, *ip6; ^ parasite6.c: In function 'main': parasite6.c:155:27: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *ownmac = mac; ^ fake_router6.c:111:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] frbuf = buf; ^ fake_router6.c:112:10: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] frbuf2 = buf2; ^ fake_router6.c:119:34: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if (argc - optind >= 7 && (ptr = argv[optind + 5]) != NULL) ^ fake_router6.c:121:12: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] (unsigned int *) &mac[5]); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from fake_router6.c:1: /usr/include/stdio.h:448:12: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, ^ fake_router6.c:139:32: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if (routerip == NULL || (ptr = index(routerip, '/')) == NULL) { ^ fake_router6.c:144:3: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] size = atoi(ptr); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from fake_router6.c:1: /usr/include/stdlib.h:278:1: note: expected 'const char *' but argument is of type 'unsigned char *' __NTH (atoi (const char *__nptr)) ^ fake_router6.c:177:3: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init(interface, string)) == NULL) { ^ In file included from fake_router6.c:11:0: thc-ipv6.h:90:16: note: expected 'char *' but argument is of type 'unsigned char *' extern pcap_t *thc_pcap_init(char *interface, char *capture); ^ fake_router6.c:264:5: warning: pointer targets in passing argument 3 of 'thc_add_hdr_hopbyhop' differ in signedness [-Wpointer-sign] if (thc_add_hdr_hopbyhop(pkt, &pkt_len, frbuf2, 6) < 0) ^ In file included from fake_router6.c:11:0: thc-ipv6.h:124:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_add_hdr_hopbyhop(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); ^ fake_router6.c:276:5: warning: pointer targets in passing argument 3 of 'thc_add_hdr_dst' differ in signedness [-Wpointer-sign] if (thc_add_hdr_dst(pkt, &pkt_len, buf3, sizeof(buf3)) < 0) ^ In file included from fake_router6.c:11:0: thc-ipv6.h:123:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_add_hdr_dst(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); ^ fake_router6.c:79:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] int rawmode = 0; ^ parasite6.c:210:5: warning: pointer targets in passing argument 4 of 'thc_create_ipv6_extended' differ in signedness [-Wpointer-sign] if ((pkt = thc_create_ipv6_extended(interface, PREFER_LINK, &pkt_len, dummy, dummy, 255, 0, 0, 0, 0)) == NULL) ^ In file included from parasite6.c:10:0: thc-ipv6.h:117:23: note: expected 'unsigned char *' but argument is of type 'char *' 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); ^ parasite6.c:210:5: warning: pointer targets in passing argument 5 of 'thc_create_ipv6_extended' differ in signedness [-Wpointer-sign] if ((pkt = thc_create_ipv6_extended(interface, PREFER_LINK, &pkt_len, dummy, dummy, 255, 0, 0, 0, 0)) == NULL) ^ In file included from parasite6.c:10:0: thc-ipv6.h:117:23: note: expected 'unsigned char *' but argument is of type 'char *' 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); ^ parasite6.c:214:7: warning: pointer targets in passing argument 3 of 'thc_add_hdr_hopbyhop' differ in signedness [-Wpointer-sign] if (thc_add_hdr_hopbyhop(pkt, &pkt_len, buf2, sizeof(buf2)) < 0) ^ In file included from parasite6.c:10:0: thc-ipv6.h:124:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_add_hdr_hopbyhop(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); ^ parasite6.c:227:7: warning: pointer targets in passing argument 3 of 'thc_add_hdr_dst' differ in signedness [-Wpointer-sign] if (thc_add_hdr_dst(pkt, &pkt_len, buf3, sizeof(buf3)) < 0) ^ In file included from parasite6.c:10:0: thc-ipv6.h:123:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_add_hdr_dst(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); ^ parasite6.c:230:5: warning: pointer targets in passing argument 6 of 'thc_add_icmp6' differ in signedness [-Wpointer-sign] if (thc_add_icmp6(pkt, &pkt_len, ICMP6_NEIGHBORADV, 0, ICMP6_NEIGHBORADV_SOLICIT | ICMP6_NEIGHBORADV_OVERRIDE | ICMP6_NEIGHBORADV_ROUTER, dummy, 24, 0) < 0) ^ In file included from parasite6.c:10:0: thc-ipv6.h:126:12: note: expected 'unsigned char *' but argument is of type 'char *' 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); ^ parasite6.c:232:5: warning: pointer targets in passing argument 3 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] if (thc_generate_pkt(interface, ownmac, dummy, pkt, &pkt_len) < 0) ^ In file included from parasite6.c:10:0: thc-ipv6.h:135:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); ^ fake_router6.c: In function 'send_rs_reply': fake_router6.c:31:20: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] int pkt_len = 0, cnt, i; ^ fake_router6.c: In function 'main': fake_router6.c:76:34: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] int size, mtu = 1500, i, j, k, cnt; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o fake_advertise6 fake_advertise6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o fake_solicitate6 fake_solicitate6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto fake_advertise6.c: In function 'main': fake_advertise6.c:36:99: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] 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; ^ fake_solicitate6.c: In function 'main': fake_solicitate6.c:27:92: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] int pkt1_len = 0, flags, prefer = PREFER_GLOBAL, i, do_hop = 0, do_dst = 0, do_frag = 0, cnt, type = NXT_ICMP6, offset = 14; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o fake_mld6 fake_mld6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto fake_mld6.c: In function 'main': fake_mld6.c:90:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] multicast6 = thc_resolve6("::"); ^ fake_mld6.c:93:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((multicast6 = thc_resolve6(argv[3])) == NULL) { ^ fake_mld6.c:107:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dst6 = multicast6; ^ fake_mld6.c:131:3: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init_promisc(interface, string)) == NULL) { ^ In file included from fake_mld6.c:11:0: thc-ipv6.h:91:16: note: expected 'unsigned char *' but argument is of type 'char *' extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o fake_mld26 fake_mld26.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o fake_mldrouter6 fake_mldrouter6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o flood_mldrouter6 flood_mldrouter6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto fake_mld26.c: In function 'main': fake_mld26.c:117:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] multicast6 = thc_resolve6("::"); ^ fake_mld26.c:120:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((multicast6 = thc_resolve6(argv[3])) == NULL) { ^ fake_mld26.c:134:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dst6 = multicast6; ^ fake_mld26.c:158:3: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init_promisc(interface, string)) == NULL) { ^ In file included from fake_mld26.c:11:0: thc-ipv6.h:91:16: note: expected 'unsigned char *' but argument is of type 'char *' extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); ^ flood_mldrouter6.c: In function 'main': flood_mldrouter6.c:23:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *mac6 = mac, *ip6 = thc_resolve6("fe80::ff:fe00:0"); ^ flood_mldrouter6.c:29:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] int rawmode = 0; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o fake_mipv6 fake_mipv6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o redir6 redir6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o smurf6 smurf6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o alive6 alive6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto smurf6.c: In function 'main': smurf6.c:27:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] int rawmode = 0; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o toobig6 toobig6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto alive6.c: In function 'check_packets': alive6.c:213:9: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (memcmp(ptr + 48 + offset, (char *) tagging, strlen(tagging)) == 0) { ^ In file included from alive6.c:3:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ alive6.c:234:9: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(sport, sizeof(sport), "%d/", i); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from alive6.c:1: /usr/include/bits/stdio2.h:61:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (snprintf (char *__restrict __s, size_t __n, ^ alive6.c:248:7: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(sport, sizeof(sport), "%d/", i); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from alive6.c:1: /usr/include/bits/stdio2.h:61:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (snprintf (char *__restrict __s, size_t __n, ^ alive6.c:314:7: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(sport, sizeof(sport), "%d:%d/", ptr[40], ptr[41]); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from alive6.c:1: /usr/include/bits/stdio2.h:61:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (snprintf (char *__restrict __s, size_t __n, ^ alive6.c:331:61: warning: comparison with string literal results in unspecified behavior [-Waddress] if (portscan == 0 || (portscan && (verbose > 2 || (type != RESP_UNREACH_PORT && type != RESP_UNREACH_FW)))) { ^ alive6.c:331:90: warning: comparison with string literal results in unspecified behavior [-Waddress] if (portscan == 0 || (portscan && (verbose > 2 || (type != RESP_UNREACH_PORT && type != RESP_UNREACH_FW)))) { ^ alive6.c:358:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p1 = "unreachable"; ^ alive6.c:361:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p1 = "toobig"; ^ alive6.c:364:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p1 = "time-to-live-exceeded"; ^ alive6.c: In function 'main': alive6.c:575:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] tagging = optarg; ^ alive6.c:773:3: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(string, "dst %s", thc_ipv62notation(src6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from alive6.c:1: /usr/include/bits/stdio2.h:31:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) ^ alive6.c:776:7: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, " and ( icmp6 or "); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from alive6.c:1: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ alive6.c:778:9: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, "udp "); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from alive6.c:1: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ alive6.c:780:10: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, "or "); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from alive6.c:1: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ alive6.c:782:9: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, "tcp "); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from alive6.c:1: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ alive6.c:783:7: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, ")"); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from alive6.c:1: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ alive6.c:785:7: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, " and icmp6"); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from alive6.c:1: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ alive6.c:811:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strlen(tagging) > 8) ^ In file included from alive6.c:3:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ alive6.c:813:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] for (i = 0; i < (sizeof(buf) / strlen(tagging)); i++) ^ In file included from alive6.c:3:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ alive6.c:814:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] memcpy(buf + i*(strlen(tagging)), tagging, strlen(tagging)); ^ In file included from alive6.c:3:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ alive6.c:814:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] memcpy(buf + i*(strlen(tagging)), tagging, strlen(tagging)); ^ In file included from alive6.c:3:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ alive6.c:817:3: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init(interface, string)) == NULL) { ^ In file included from alive6.c:15:0: thc-ipv6.h:90:16: note: expected 'char *' but argument is of type 'unsigned char *' extern pcap_t *thc_pcap_init(char *interface, char *capture); ^ alive6.c:1067:7: warning: pointer targets in passing argument 3 of 'adress4to6' differ in signedness [-Wpointer-sign] bl = adress4to6(cur_dst, addr_cur, &bh); ^ alive6.c:408:5: note: expected 'char *' but argument is of type 'unsigned char *' int adress4to6(unsigned char *addr6, unsigned int addr4, char *state) { ^ alive6.c:1130:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((ptr3 = thc_resolve6(ptr2)) == NULL) { ^ alive6.c:1153:15: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] p3 = thc_ipv62notation(ptr3); ^ In file included from alive6.c:15:0: thc-ipv6.h:146:23: note: expected 'unsigned char *' but argument is of type 'char *' extern unsigned char *thc_ipv62notation(unsigned char *string); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o rsmurf6 rsmurf6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o implementation6 implementation6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto alive6.c:1428:13: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, sp, udpports[i] % 65536, 0, dns6buf, sizeof(dns6buf)) < 0) ^ In file included from alive6.c:15:0: thc-ipv6.h:129:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ implementation6.c: In function 'main': implementation6.c:309:3: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, thc_ipv62notation(src6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from implementation6.c:9: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ implementation6.c:309:3: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, thc_ipv62notation(src6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from implementation6.c:9: /usr/include/bits/string3.h:140:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ implementation6.c:310:3: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string2, thc_ipv62notation(dst6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from implementation6.c:9: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ implementation6.c:310:3: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string2, thc_ipv62notation(dst6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from implementation6.c:9: /usr/include/bits/string3.h:140:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ implementation6.c:322:3: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init(interface, string)) == NULL) { ^ In file included from implementation6.c:19:0: thc-ipv6.h:90:16: note: expected 'char *' but argument is of type 'unsigned char *' extern pcap_t *thc_pcap_init(char *interface, char *capture); ^ rsmurf6.c: In function 'main': rsmurf6.c:28:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] int rawmode = 0; ^ implementation6.c:1255:5: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] p = thc_pcap_init(interface, string2); ^ In file included from implementation6.c:19:0: thc-ipv6.h:90:16: note: expected 'char *' but argument is of type 'unsigned char *' extern pcap_t *thc_pcap_init(char *interface, char *capture); ^ implementation6.c:1263:5: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] p = thc_pcap_init(interface, string); ^ In file included from implementation6.c:19:0: thc-ipv6.h:90:16: note: expected 'char *' but argument is of type 'unsigned char *' extern pcap_t *thc_pcap_init(char *interface, char *capture); ^ implementation6.c:1324:5: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] p = thc_pcap_init(interface, string2); ^ In file included from implementation6.c:19:0: thc-ipv6.h:90:16: note: expected 'char *' but argument is of type 'unsigned char *' extern pcap_t *thc_pcap_init(char *interface, char *capture); ^ implementation6.c:1336:5: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] p = thc_pcap_init(interface, string); ^ In file included from implementation6.c:19:0: thc-ipv6.h:90:16: note: expected 'char *' but argument is of type 'unsigned char *' extern pcap_t *thc_pcap_init(char *interface, char *capture); ^ implementation6.c:1351:5: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] p = thc_pcap_init(interface, string2); ^ In file included from implementation6.c:19:0: thc-ipv6.h:90:16: note: expected 'char *' but argument is of type 'unsigned char *' extern pcap_t *thc_pcap_init(char *interface, char *capture); ^ implementation6.c:1363:5: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] p = thc_pcap_init(interface, string); ^ In file included from implementation6.c:19:0: thc-ipv6.h:90:16: note: expected 'char *' but argument is of type 'unsigned char *' extern pcap_t *thc_pcap_init(char *interface, char *capture); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o implementation6d implementation6d.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o sendpees6 sendpees6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto implementation6d.c: In function 'main': implementation6d.c:163:3: warning: pointer targets in passing argument 2 of 'thc_pcap_function' differ in signedness [-Wpointer-sign] if (thc_pcap_function(interface, string, (char *) check_packet, 0, NULL) < 0) { ^ In file included from implementation6d.c:32:0: thc-ipv6.h:89:12: note: expected 'char *' but argument is of type 'unsigned char *' extern int thc_pcap_function(char *interface, char *capture, char *function, int promisc, char *opt); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o sendpeesmp6 sendpeesmp6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o randicmp6 randicmp6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto alive6.c:1170:12: warning: 'tip8' may be used uninitialized in this function [-Wmaybe-uninitialized] if (cip8 < tip8) ^ alive6.c:1172:17: warning: 'tip7' may be used uninitialized in this function [-Wmaybe-uninitialized] else if (cip7 < tip7) { ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o fuzz_ip6 fuzz_ip6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto alive6.c:1175:19: warning: 'tip6' may be used uninitialized in this function [-Wmaybe-uninitialized] } else if (cip6 < tip6) { ^ alive6.c:1179:19: warning: 'tip5' may be used uninitialized in this function [-Wmaybe-uninitialized] } else if (cip5 < tip5) { ^ alive6.c:1184:19: warning: 'tip4' may be used uninitialized in this function [-Wmaybe-uninitialized] } else if (cip4 < tip4) { ^ alive6.c:1190:19: warning: 'tip3' may be used uninitialized in this function [-Wmaybe-uninitialized] } else if (cip3 < tip3) { ^ alive6.c:1197:19: warning: 'tip2' may be used uninitialized in this function [-Wmaybe-uninitialized] } else if (cip2 < tip2) { ^ alive6.c:1205:19: warning: 'tip1' may be used uninitialized in this function [-Wmaybe-uninitialized] } else if (cip1 < tip1) { ^ alive6.c:1231:21: warning: 'fip8' may be used uninitialized in this function [-Wmaybe-uninitialized] cur_dst[14] = cip8 / 256; ^ alive6.c:1229:21: warning: 'fip7' may be used uninitialized in this function [-Wmaybe-uninitialized] cur_dst[12] = cip7 / 256; ^ alive6.c:1227:21: warning: 'fip6' may be used uninitialized in this function [-Wmaybe-uninitialized] cur_dst[10] = cip6 / 256; ^ alive6.c:1225:20: warning: 'fip5' may be used uninitialized in this function [-Wmaybe-uninitialized] cur_dst[8] = cip5 / 256; ^ alive6.c:1223:20: warning: 'fip4' may be used uninitialized in this function [-Wmaybe-uninitialized] cur_dst[6] = cip4 / 256; ^ alive6.c:1221:20: warning: 'fip3' may be used uninitialized in this function [-Wmaybe-uninitialized] cur_dst[4] = cip3 / 256; ^ alive6.c:1219:20: warning: 'fip2' may be used uninitialized in this function [-Wmaybe-uninitialized] cur_dst[2] = cip2 / 256; ^ alive6.c:1171:15: warning: 'cip8' may be used uninitialized in this function [-Wmaybe-uninitialized] cip8++; ^ alive6.c:1173:15: warning: 'cip7' may be used uninitialized in this function [-Wmaybe-uninitialized] cip7++; ^ alive6.c:1176:15: warning: 'cip6' may be used uninitialized in this function [-Wmaybe-uninitialized] cip6++; ^ alive6.c:1180:15: warning: 'cip5' may be used uninitialized in this function [-Wmaybe-uninitialized] cip5++; ^ alive6.c:1185:15: warning: 'cip4' may be used uninitialized in this function [-Wmaybe-uninitialized] cip4++; ^ alive6.c:1191:15: warning: 'cip3' may be used uninitialized in this function [-Wmaybe-uninitialized] cip3++; ^ alive6.c:1198:15: warning: 'cip2' may be used uninitialized in this function [-Wmaybe-uninitialized] cip2++; ^ alive6.c:1206:15: warning: 'cip1' may be used uninitialized in this function [-Wmaybe-uninitialized] cip1++; ^ alive6.c:1003:14: warning: 'ip3' may be used uninitialized in this function [-Wmaybe-uninitialized] ip3++; ^ alive6.c:1006:14: warning: 'ip2' may be used uninitialized in this function [-Wmaybe-uninitialized] ip2++; ^ alive6.c:1010:14: warning: 'ip1' may be used uninitialized in this function [-Wmaybe-uninitialized] ip1++; ^ alive6.c:1537:28: warning: 'ok' may be used uninitialized in this function [-Wmaybe-uninitialized] if (curr > 1 || list > 0 || ok != 0 || tcount > alive_no || still_not_there == 1) { ^ alive6.c:1058:14: warning: 'cur_dst' may be used uninitialized in this function [-Wmaybe-uninitialized] p2 = thc_ipv62notation(cur_dst); ^ fuzz_ip6.c: In function 'main': fuzz_ip6.c:318:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((srcmac = thc_get_own_mac(interface)) == NULL) { ^ fuzz_ip6.c:346:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((real_dst6 = thc_resolve6(argv[optind + 1])) == NULL) { ^ fuzz_ip6.c:379:3: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, thc_ipv62notation(src6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from fuzz_ip6.c:1: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ fuzz_ip6.c:379:3: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, thc_ipv62notation(src6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from fuzz_ip6.c:1: /usr/include/bits/string3.h:140:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ fuzz_ip6.c:390:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dns = thc_resolve6("ff02::fb"); ^ fuzz_ip6.c:391:10: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] route6 = thc_resolve6("2a01::"); ^ fuzz_ip6.c:393:3: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init(interface, string)) == NULL) { ^ In file included from fuzz_ip6.c:11:0: thc-ipv6.h:90:16: note: expected 'char *' but argument is of type 'unsigned char *' extern pcap_t *thc_pcap_init(char *interface, char *capture); ^ fuzz_ip6.c:401:5: warning: pointer targets in passing argument 3 of 'check_alive' differ in signedness [-Wpointer-sign] if (check_alive(p, interface, srcmac, mac, src6, real_dst6) == 0) { ^ fuzz_ip6.c:193:5: note: expected 'unsigned char *' but argument is of type 'char *' int check_alive(pcap_t * p, char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *src, unsigned char *dst) { ^ fuzz_ip6.c:401:5: warning: pointer targets in passing argument 6 of 'check_alive' differ in signedness [-Wpointer-sign] if (check_alive(p, interface, srcmac, mac, src6, real_dst6) == 0) { ^ fuzz_ip6.c:193:5: note: expected 'unsigned char *' but argument is of type 'char *' int check_alive(pcap_t * p, char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *src, unsigned char *dst) { ^ fuzz_ip6.c:447:9: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(fuzzbuf, buf3); // always: X... for every new option ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from fuzz_ip6.c:1: /usr/include/bits/string3.h:140:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ fuzz_ip6.c:494:7: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(fuzzbuf, buf3); // always: X... for every new option ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from fuzz_ip6.c:1: /usr/include/bits/string3.h:140:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ fuzz_ip6.c:531:5: warning: pointer targets in passing argument 10 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] 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) ^ In file included from fuzz_ip6.c:11:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ fuzz_ip6.c:531:5: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] 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) ^ In file included from fuzz_ip6.c:11:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ fuzz_ip6.c:716:3: warning: pointer targets in passing argument 2 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] if (thc_generate_pkt(interface, srcmac, mac, pkt, &pkt_len) < 0) ^ In file included from fuzz_ip6.c:11:0: thc-ipv6.h:135:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); ^ fuzz_ip6.c:928:11: warning: pointer targets in passing argument 3 of 'check_alive' differ in signedness [-Wpointer-sign] if (check_alive(p, interface, srcmac, mac, src6, real_dst6) == 0) { ^ fuzz_ip6.c:193:5: note: expected 'unsigned char *' but argument is of type 'char *' int check_alive(pcap_t * p, char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *src, unsigned char *dst) { ^ fuzz_ip6.c:928:11: warning: pointer targets in passing argument 6 of 'check_alive' differ in signedness [-Wpointer-sign] if (check_alive(p, interface, srcmac, mac, src6, real_dst6) == 0) { ^ fuzz_ip6.c:193:5: note: expected 'unsigned char *' but argument is of type 'char *' int check_alive(pcap_t * p, char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *src, unsigned char *dst) { ^ fuzz_ip6.c:945:5: warning: pointer targets in passing argument 3 of 'check_alive' differ in signedness [-Wpointer-sign] if (check_alive(p, interface, srcmac, mac, src6, real_dst6) == 0) { ^ fuzz_ip6.c:193:5: note: expected 'unsigned char *' but argument is of type 'char *' int check_alive(pcap_t * p, char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *src, unsigned char *dst) { ^ fuzz_ip6.c:945:5: warning: pointer targets in passing argument 6 of 'check_alive' differ in signedness [-Wpointer-sign] if (check_alive(p, interface, srcmac, mac, src6, real_dst6) == 0) { ^ fuzz_ip6.c:193:5: note: expected 'unsigned char *' but argument is of type 'char *' int check_alive(pcap_t * p, char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *src, unsigned char *dst) { ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o flood_mld6 flood_mld6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto flood_mld6.c: In function 'main': flood_mld6.c:23:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *mac6 = mac, *ip6 = thc_resolve6("fe80::ff:fe00:0"); ^ flood_mld6.c:29:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] int rawmode = 0; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o flood_mld26 flood_mld26.c thc-ipv6-lib.o -lpcap -lssl -lcrypto flood_mld26.c: In function 'main': flood_mld26.c:25:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *mac6 = mac, *ip6 = thc_resolve6("fe80::ff:fe00:0"); ^ flood_mld26.c:31:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] int rawmode = 0; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o flood_router6 flood_router6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto flood_router6.c: In function 'main': flood_router6.c:25:46: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *routerip6, *route6, *mac6 = mac, *ip6; ^ flood_router6.c:30:20: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] int pkt_len = 0, rawmode = 0, count = 0, do_hop = 0, do_frag = 0, cnt, do_dst = 0, offset = 14; ^ flood_router6.c:30:69: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] int pkt_len = 0, rawmode = 0, count = 0, do_hop = 0, do_frag = 0, cnt, do_dst = 0, offset = 14; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o flood_advertise6 flood_advertise6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto flood_advertise6.c: In function 'main': flood_advertise6.c:23:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *mac6 = mac, *ip6; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o flood_solicitate6 flood_solicitate6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto flood_advertise6.c:28:27: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] int pkt_len = 0, flags, rawmode = 0, count = 0; ^ flood_solicitate6.c: In function 'main': flood_solicitate6.c:23:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *mac6 = mac, *ip6; ^ flood_solicitate6.c:28:20: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] int pkt_len = 0, rawmode = 0, count = 0; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o trace6 trace6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto trace6.c: In function 'check_packets': trace6.c:108:23: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] remark[pos] = strdup("\t[ping reply received]"); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o exploit6 exploit6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto trace6.c:155:25: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] remark[pos] = strdup("\t[unreachable message received]"); ^ trace6.c:178:25: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] remark[pos] = strdup("\t[parameter problem received]"); ^ trace6.c:201:23: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] remark[pos] = strdup("\t[TCP SYN-ACK reply received]"); ^ trace6.c:204:23: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] remark[pos] = strdup("\t[TCP RST reply received]"); ^ trace6.c:207:23: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] remark[pos] = strdup("\t[TCP unknown reply received]"); ^ trace6.c:218:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] remark[pos] = strdup("\t[UDP reply received]"); ^ trace6.c:242:25: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] remark[pos] = strdup("\t[port unreachable message received]"); ^ trace6.c:246:25: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] remark[pos] = strdup("\t[unreachable message received]"); ^ trace6.c: In function 'main': trace6.c:329:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] interface = argv[optind]; ^ trace6.c:335:5: warning: pointer targets in passing argument 1 of 'thc_get_own_ipv6' differ in signedness [-Wpointer-sign] src6 = thc_get_own_ipv6(interface, dst6, prefer); ^ In file included from trace6.c:12:0: thc-ipv6.h:99:23: note: expected 'char *' but argument is of type 'unsigned char *' extern unsigned char *thc_get_own_ipv6(char *interface, unsigned char *dst, int prefer); ^ trace6.c:336:3: warning: pointer targets in passing argument 1 of 'thc_get_own_mac' differ in signedness [-Wpointer-sign] srcmac = thc_get_own_mac(interface); ^ In file included from trace6.c:12:0: thc-ipv6.h:97:23: note: expected 'char *' but argument is of type 'unsigned char *' extern unsigned char *thc_get_own_mac(char *interface); ^ trace6.c:359:3: warning: pointer targets in passing argument 1 of 'thc_get_mac' differ in signedness [-Wpointer-sign] if (rawmode == 0 && (mac = thc_get_mac(interface, src6, dst6)) == NULL) { ^ In file included from trace6.c:12:0: thc-ipv6.h:101:23: note: expected 'char *' but argument is of type 'unsigned char *' extern unsigned char *thc_get_mac(char *interface, unsigned char *src, unsigned char *dst); ^ trace6.c:363:3: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, thc_ipv62notation(src6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from trace6.c:1: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ trace6.c:363:3: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, thc_ipv62notation(src6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from trace6.c:1: /usr/include/bits/string3.h:140:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ trace6.c:367:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] remark[i] = strdup(""); ^ trace6.c:371:3: warning: pointer targets in passing argument 1 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init(interface, string)) == NULL) { ^ In file included from trace6.c:12:0: thc-ipv6.h:90:16: note: expected 'char *' but argument is of type 'unsigned char *' extern pcap_t *thc_pcap_init(char *interface, char *capture); ^ trace6.c:371:3: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init(interface, string)) == NULL) { ^ In file included from trace6.c:12:0: thc-ipv6.h:90:16: note: expected 'char *' but argument is of type 'unsigned char *' extern pcap_t *thc_pcap_init(char *interface, char *capture); ^ trace6.c:381:5: warning: pointer targets in passing argument 1 of 'thc_get_mtu' differ in signedness [-Wpointer-sign] if ((mtu = thc_get_mtu(interface)) > sizeof(buf) + offset) ^ In file included from trace6.c:12:0: thc-ipv6.h:98:12: note: expected 'char *' but argument is of type 'unsigned char *' extern int thc_get_mtu(char *interface); ^ trace6.c:417:11: warning: pointer targets in passing argument 1 of 'thc_create_ipv6_extended' differ in signedness [-Wpointer-sign] if ((pkt = thc_create_ipv6_extended(interface, prefer, &pkt_len, src6, dst6, i, 0, 0, 0, 0)) == NULL) ^ In file included from trace6.c:12:0: thc-ipv6.h:117:23: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ trace6.c:450:15: warning: pointer targets in passing argument 1 of 'thc_create_ipv6_extended' differ in signedness [-Wpointer-sign] if ((pkt2 = thc_create_ipv6_extended(interface, 0, &pkt2_len, dst6, foo6, i, 0, 0, 0, 0)) == NULL) ^ In file included from trace6.c:12:0: thc-ipv6.h:117:23: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ trace6.c:454:15: warning: pointer targets in passing argument 1 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] thc_generate_pkt(interface, foomac, foomac, pkt2, &pkt2_len); ^ In file included from trace6.c:12:0: thc-ipv6.h:135:12: note: expected 'char *' but argument is of type 'unsigned char *' extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); ^ trace6.c:476:15: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, baseport + i, dport, 0, buf_len > 0 ? buf : NULL, buf_len) < 0) ^ In file included from trace6.c:12:0: thc-ipv6.h:129:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ trace6.c:478:13: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] } 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) ^ In file included from trace6.c:12:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ trace6.c:481:11: warning: pointer targets in passing argument 1 of 'thc_generate_and_send_pkt' differ in signedness [-Wpointer-sign] if (thc_generate_and_send_pkt(interface, srcmac, mac, pkt, &pkt_len) < 0) { ^ In file included from trace6.c:12:0: thc-ipv6.h:134:12: note: expected 'char *' but argument is of type 'unsigned char *' extern int thc_generate_and_send_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); ^ trace6.c:515:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] position[up_to] = strdup("!!!"); ^ trace6.c:526:7: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(text, sizeof(text), " with starting MTU %d", orig_mtu); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from trace6.c:1: /usr/include/bits/stdio2.h:61:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (snprintf (char *__restrict __s, size_t __n, ^ trace6.c:540:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(text, sizeof(text), " - new MTU %d", rmtu[i]); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from trace6.c:1: /usr/include/bits/stdio2.h:61:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (snprintf (char *__restrict __s, size_t __n, ^ trace6.c:542:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(text, sizeof(text), " - new MTU %d - 6in4 tunnel endpoint", rmtu[i]); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from trace6.c:1: /usr/include/bits/stdio2.h:61:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (snprintf (char *__restrict __s, size_t __n, ^ trace6.c:544:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(text, sizeof(text), " - new MTU %d - PPP or Teredo tunnel endpoint", rmtu[i]); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from trace6.c:1: /usr/include/bits/stdio2.h:61:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (snprintf (char *__restrict __s, size_t __n, ^ trace6.c:546:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(text, sizeof(text), " - new MTU %d - PPTP tunnel endpoint", rmtu[i]); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from trace6.c:1: /usr/include/bits/stdio2.h:61:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (snprintf (char *__restrict __s, size_t __n, ^ trace6.c:548:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(text, sizeof(text), " - new MTU %d - AYIYA tunnel endpoint", rmtu[i]); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from trace6.c:1: /usr/include/bits/stdio2.h:61:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (snprintf (char *__restrict __s, size_t __n, ^ trace6.c:550:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(text, sizeof(text), " - new MTU %d", rmtu[i]); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from trace6.c:1: /usr/include/bits/stdio2.h:61:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (snprintf (char *__restrict __s, size_t __n, ^ trace6.c:552:11: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] snprintf(text, sizeof(text), " - new MTU %d", rmtu[i]); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from trace6.c:1: /usr/include/bits/stdio2.h:61:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (snprintf (char *__restrict __s, size_t __n, ^ trace6.c:558:9: warning: pointer targets in passing argument 1 of 'thc_resolve6' differ in signedness [-Wpointer-sign] he = gethostbyaddr(thc_resolve6(position[i]), 16, AF_INET6); ^ In file included from trace6.c:12:0: thc-ipv6.h:95:23: note: expected 'char *' but argument is of type 'unsigned char *' extern unsigned char *thc_resolve6(char *target); ^ exploit6.c: In function 'main': exploit6.c:106:3: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, thc_ipv62notation(src6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from exploit6.c:6: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ exploit6.c:106:3: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, thc_ipv62notation(src6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from exploit6.c:6: /usr/include/bits/string3.h:140:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ exploit6.c:107:3: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string2, thc_ipv62notation(dst6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from exploit6.c:6: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ exploit6.c:107:3: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string2, thc_ipv62notation(dst6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from exploit6.c:6: /usr/include/bits/string3.h:140:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ exploit6.c:124:3: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init(interface, string)) == NULL) { ^ In file included from exploit6.c:16:0: thc-ipv6.h:90:16: note: expected 'char *' but argument is of type 'unsigned char *' extern pcap_t *thc_pcap_init(char *interface, char *capture); ^ exploit6.c:66:34: warning: unused variable 'pkt_len3' [-Wunused-variable] int pkt_len = 0, pkt_len2 = 0, pkt_len3 = 0, noping = 0, mtu = 1500; ^ exploit6.c:66:20: warning: unused variable 'pkt_len2' [-Wunused-variable] int pkt_len = 0, pkt_len2 = 0, pkt_len3 = 0, noping = 0, mtu = 1500; ^ exploit6.c:65:45: warning: unused variable 'pkt3' [-Wunused-variable] unsigned char *pkt = NULL, *pkt2 = NULL, *pkt3 = NULL; ^ exploit6.c:65:31: warning: unused variable 'pkt2' [-Wunused-variable] unsigned char *pkt = NULL, *pkt2 = NULL, *pkt3 = NULL; ^ exploit6.c:63:14: warning: unused variable 'j' [-Wunused-variable] int i = 0, j, srcmtu, fragsize, offset = 14; ^ exploit6.c:61:50: warning: unused variable 'routers' [-Wunused-variable] unsigned char *srcmac = NULL, *dstmac = NULL, *routers[2], null_buffer[6]; ^ exploit6.c:60:61: warning: variable 'mcast6' set but not used [-Wunused-but-set-variable] unsigned char *dst6, *ldst6 = malloc(16), *src6, *lsrc6, *mcast6, *route6, *mal; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o denial6 denial6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto denial6.c: In function 'main': denial6.c:44:17: warning: unused variable 'ipv6' [-Wunused-variable] thc_ipv6_hdr *ipv6; ^ denial6.c:42:60: warning: unused variable 'mtu' [-Wunused-variable] int pkt_len = 0, pkt_len2 = 0, pkt_len3 = 0, noping = 0, mtu = 1500; ^ denial6.c:42:48: warning: unused variable 'noping' [-Wunused-variable] int pkt_len = 0, pkt_len2 = 0, pkt_len3 = 0, noping = 0, mtu = 1500; ^ denial6.c:42:34: warning: unused variable 'pkt_len3' [-Wunused-variable] int pkt_len = 0, pkt_len2 = 0, pkt_len3 = 0, noping = 0, mtu = 1500; ^ denial6.c:42:20: warning: unused variable 'pkt_len2' [-Wunused-variable] int pkt_len = 0, pkt_len2 = 0, pkt_len3 = 0, noping = 0, mtu = 1500; ^ denial6.c:41:45: warning: unused variable 'pkt3' [-Wunused-variable] unsigned char *pkt = NULL, *pkt2 = NULL, *pkt3 = NULL; ^ denial6.c:41:31: warning: unused variable 'pkt2' [-Wunused-variable] unsigned char *pkt = NULL, *pkt2 = NULL, *pkt3 = NULL; ^ denial6.c:40:24: warning: variable 'fragsize' set but not used [-Wunused-but-set-variable] int i, j, k, srcmtu, fragsize; ^ denial6.c:39:17: warning: unused variable 'hdr' [-Wunused-variable] thc_ipv6_hdr *hdr; ^ denial6.c:38:50: warning: unused variable 'routers' [-Wunused-variable] unsigned char *srcmac = NULL, *dstmac = NULL, *routers[2], null_buffer[6]; ^ denial6.c:37:79: warning: unused variable 'mal' [-Wunused-variable] unsigned char *dst6, *ldst6 = malloc(16), *src6, *lsrc6, *mcast6, *route6, *mal; ^ denial6.c:37:70: warning: unused variable 'route6' [-Wunused-variable] unsigned char *dst6, *ldst6 = malloc(16), *src6, *lsrc6, *mcast6, *route6, *mal; ^ denial6.c:37:61: warning: variable 'mcast6' set but not used [-Wunused-but-set-variable] unsigned char *dst6, *ldst6 = malloc(16), *src6, *lsrc6, *mcast6, *route6, *mal; ^ denial6.c:35:28: warning: unused variable 'tmplen' [-Wunused-variable] int test = 0, count = 1, tmplen; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o fake_dhcps6 fake_dhcps6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o flood_dhcpc6 flood_dhcpc6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto fake_dhcps6.c: In function 'main': fake_dhcps6.c:25:37: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *routerip6, *mac6 = mac, *ip6, *ptr, *ptr1, *ptr2, *ptr3; ^ fake_dhcps6.c:50:25: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if (argc >= 6 && (ptr = argv[5]) != NULL) ^ fake_dhcps6.c:52:12: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] (unsigned int *) &mac[5]); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from fake_dhcps6.c:1: /usr/include/stdio.h:448:12: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, ^ fake_dhcps6.c:67:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((ptr = index(routerip, '/')) == NULL) { ^ fake_dhcps6.c:71:3: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] size = atoi(ptr); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from fake_dhcps6.c:1: /usr/include/stdlib.h:278:1: note: expected 'const char *' but argument is of type 'unsigned char *' __NTH (atoi (const char *__nptr)) ^ fake_dhcps6.c:114:3: warning: pointer targets in passing argument 3 of 'thc_bind_multicast_to_socket' differ in signedness [-Wpointer-sign] 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) { ^ In file included from fake_dhcps6.c:13:0: thc-ipv6.h:150:12: note: expected 'char *' but argument is of type 'unsigned char *' extern int thc_bind_multicast_to_socket(int s, char *interface, char *src); ^ fake_dhcps6.c:114:3: warning: pointer targets in passing argument 3 of 'thc_bind_multicast_to_socket' differ in signedness [-Wpointer-sign] 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) { ^ In file included from fake_dhcps6.c:13:0: thc-ipv6.h:150:12: note: expected 'char *' but argument is of type 'unsigned char *' extern int thc_bind_multicast_to_socket(int s, char *interface, char *src); ^ fake_dhcps6.c:152:9: warning: pointer targets in passing argument 1 of 'thc_dump_data' differ in signedness [-Wpointer-sign] thc_dump_data(rdatabuf, len, "Received Packet"); ^ In file included from fake_dhcps6.c:13:0: thc-ipv6.h:142:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void thc_dump_data(unsigned char *buf, int len, char *text); ^ fake_dhcps6.c:154:7: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] ptr2 = thc_ipv62notation((char *) &ddst.sin6_addr); ^ In file included from fake_dhcps6.c:13:0: thc-ipv6.h:146:23: note: expected 'unsigned char *' but argument is of type 'char *' extern unsigned char *thc_ipv62notation(unsigned char *string); ^ fake_dhcps6.c:157:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr1 = "Solicitate"; ^ fake_dhcps6.c:160:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr1 = "Advertise (illegal, ignored)"; ^ fake_dhcps6.c:163:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr1 = "Request"; ^ fake_dhcps6.c:166:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr1 = "Confirm"; ^ fake_dhcps6.c:169:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr1 = "Renew"; ^ fake_dhcps6.c:172:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr1 = "Rebind"; ^ fake_dhcps6.c:175:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr1 = "Reply (illegal, ignored)"; ^ fake_dhcps6.c:178:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr1 = "Release (ignored)"; ^ fake_dhcps6.c:181:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr1 = "Decline (ignored)"; ^ fake_dhcps6.c:184:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr1 = "Reconfigure (illegal, ignored)"; ^ fake_dhcps6.c:187:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr1 = "Information Request (ignored)"; ^ fake_dhcps6.c:190:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr1 = "Relay Forward (ignored)"; ^ fake_dhcps6.c:193:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr1 = "Relay Reply (ignored)"; ^ fake_dhcps6.c:196:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr1 = "Unknown (ignored)"; ^ fake_dhcps6.c:247:11: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] ptr3 = thc_ipv62notation(wdatabuf + i + 4); ^ In file included from fake_dhcps6.c:13:0: thc-ipv6.h:146:23: note: expected 'unsigned char *' but argument is of type 'char *' extern unsigned char *thc_ipv62notation(unsigned char *string); ^ fake_dhcps6.c:279:11: warning: pointer targets in passing argument 1 of 'thc_dump_data' differ in signedness [-Wpointer-sign] thc_dump_data(wdatabuf, len, "Reply Packet"); ^ In file included from fake_dhcps6.c:13:0: thc-ipv6.h:142:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void thc_dump_data(unsigned char *buf, int len, char *text); ^ fake_dhcps6.c:287:11: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] ptr2 = thc_ipv62notation((char *) &ddst.sin6_addr); ^ In file included from fake_dhcps6.c:13:0: thc-ipv6.h:146:23: note: expected 'unsigned char *' but argument is of type 'char *' extern unsigned char *thc_ipv62notation(unsigned char *string); ^ fake_dhcps6.c:27:13: warning: variable 'fromlen' set but not used [-Wunused-but-set-variable] int size, fromlen = 0, /*mtu = 1500, */ i, j, k, l, m, s, len, t, mlen, csize = 0; ^ fake_dhcps6.c:291:21: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized] } else if (m) ^ flood_dhcpc6.c: In function 'check_packets': flood_dhcpc6.c:103:5: warning: pointer targets in passing argument 2 of 'thc_generate_and_send_pkt' differ in signedness [-Wpointer-sign] if (thc_generate_and_send_pkt(interface, smac, ptr + 6, pkt, &pkt_len) < 0) ^ In file included from flood_dhcpc6.c:13:0: thc-ipv6.h:134:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_generate_and_send_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); ^ flood_dhcpc6.c: In function 'main': flood_dhcpc6.c:114:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *mac6 = mac, *src, *dst; ^ flood_dhcpc6.c:169:3: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init_promisc(interface, "ip6 and udp and dst port 546")) == NULL) { ^ In file included from flood_dhcpc6.c:13:0: thc-ipv6.h:91:16: note: expected 'unsigned char *' but argument is of type 'char *' extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); ^ flood_dhcpc6.c:212:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((pkt = thc_create_ipv6_extended(interface, PREFER_LINK, &pkt_len, src, dst, 1, 0, 0, 0, 0)) == NULL) ^ flood_dhcpc6.c:214:5: warning: pointer targets in passing argument 1 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, 546, 547, 0, wdatabuf, len) < 0) ^ In file included from flood_dhcpc6.c:13:0: thc-ipv6.h:129:12: note: expected 'unsigned char *' but argument is of type 'char *' 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); ^ flood_dhcpc6.c:217:5: warning: pointer targets in passing argument 4 of 'thc_generate_and_send_pkt' differ in signedness [-Wpointer-sign] if (thc_generate_and_send_pkt(interface, mac6, NULL, pkt, &pkt_len) < 0) ^ In file included from flood_dhcpc6.c:13:0: thc-ipv6.h:134:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_generate_and_send_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); ^ flood_dhcpc6.c:219:5: warning: pointer targets in passing argument 1 of 'thc_destroy_packet' differ in signedness [-Wpointer-sign] pkt = thc_destroy_packet(pkt); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o fake_dns6d fake_dns6d.c thc-ipv6-lib.o -lpcap -lssl -lcrypto In file included from flood_dhcpc6.c:13:0: thc-ipv6.h:137:23: note: expected 'unsigned char *' but argument is of type 'char *' extern unsigned char *thc_destroy_packet(unsigned char *pkt); ^ flood_dhcpc6.c:219:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pkt = thc_destroy_packet(pkt); ^ flood_dhcpc6.c: In function 'check_packets': flood_dhcpc6.c:103:34: warning: 'smac' may be used uninitialized in this function [-Wmaybe-uninitialized] if (thc_generate_and_send_pkt(interface, smac, ptr + 6, pkt, &pkt_len) < 0) ^ fake_dns6d.c: In function 'check_packets': fake_dns6d.c:30:113: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *ptr = (unsigned char *) data, *ptr2, *ptr3, *dst6, *src6, *dmac = NULL, *pkt, *look, *lwrite = lookup; ^ fake_dns6d.c:64:10: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] src6 = ip6; // then use this as a spoofed source ^ fake_dns6d.c:70:3: warning: pointer targets in passing argument 2 of 'thc_generate_and_send_pkt' differ in signedness [-Wpointer-sign] thc_generate_and_send_pkt(interface, mac6, dmac, pkt, &pkt_len); ^ In file included from fake_dns6d.c:13:0: thc-ipv6.h:134:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_generate_and_send_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); ^ fake_dns6d.c: In function 'main': fake_dns6d.c:119:10: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] mac6 = thc_get_own_mac(interface); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o fragmentation6 fragmentation6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto fake_dns6d.c:122:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ip6 = thc_resolve6(argv[3]); ^ fake_dns6d.c:124:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ip6 = thc_get_own_ipv6(interface, NULL, PREFER_LINK); ^ fake_dns6d.c:131:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] routerip6 = thc_resolve6(argv[2]); ^ fake_dns6d.c:146:3: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init_promisc(interface, "ip6 and udp and (dst port 53 or dst port 5353)")) == NULL) { ^ In file included from fake_dns6d.c:13:0: thc-ipv6.h:91:16: note: expected 'unsigned char *' but argument is of type 'char *' extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); ^ fragmentation6.c: In function 'main': fragmentation6.c:36:20: warning: variable 'fragsize' set but not used [-Wunused-but-set-variable] int offset = 14, fragsize = 0; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o kill_router6 kill_router6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o fake_dnsupdate6 fake_dnsupdate6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o ndpexhaust6 ndpexhaust6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto kill_router6.c: In function 'send_ra_kill': kill_router6.c:50:5: warning: pointer targets in passing argument 3 of 'thc_add_hdr_hopbyhop' differ in signedness [-Wpointer-sign] if (thc_add_hdr_hopbyhop(pkt, &pkt_len, frbuf2, frbuf2len) < 0) ^ In file included from kill_router6.c:11:0: thc-ipv6.h:124:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_add_hdr_hopbyhop(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); ^ kill_router6.c:62:5: warning: pointer targets in passing argument 3 of 'thc_add_hdr_dst' differ in signedness [-Wpointer-sign] if (thc_add_hdr_dst(pkt, &pkt_len, buf3, sizeof(buf3)) < 0) ^ In file included from kill_router6.c:11:0: thc-ipv6.h:123:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_add_hdr_dst(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); ^ kill_router6.c:65:3: warning: pointer targets in passing argument 6 of 'thc_add_icmp6' differ in signedness [-Wpointer-sign] if (thc_add_icmp6(pkt, &pkt_len, ICMP6_ROUTERADV, 0, 0x40080000, frbuf, frbuflen, 0) < 0) ^ In file included from kill_router6.c:11:0: thc-ipv6.h:126:12: note: expected 'unsigned char *' but argument is of type 'char *' 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); ^ kill_router6.c: In function 'main': kill_router6.c:83:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *mac6 = mac, *ip6; ^ kill_router6.c:86:27: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *dstmac = dmac; ^ kill_router6.c:121:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] frbuf = buf; ^ kill_router6.c:122:10: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] frbuf2 = buf2; ^ kill_router6.c:129:34: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if (argc - optind >= 4 && (ptr = argv[optind + 3]) != NULL) ^ kill_router6.c:131:12: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] (unsigned int *) &dmac[5]); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from kill_router6.c:1: /usr/include/stdio.h:448:12: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, ^ kill_router6.c:134:34: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if (argc - optind >= 3 && (ptr = argv[optind + 2]) != NULL) ^ kill_router6.c:136:12: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] (unsigned int *) &mac[5]); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from kill_router6.c:1: /usr/include/stdio.h:448:12: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, ^ kill_router6.c:156:3: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init_promisc(interface, string)) == NULL) { ^ In file included from kill_router6.c:11:0: thc-ipv6.h:91:16: note: expected 'unsigned char *' but argument is of type 'char *' extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); ^ kill_router6.c:178:5: warning: pointer targets in passing argument 3 of 'thc_add_hdr_dst' differ in signedness [-Wpointer-sign] if (thc_add_hdr_dst(pkt, &pkt_len, buf3, sizeof(buf3)) < 0) ^ In file included from kill_router6.c:11:0: thc-ipv6.h:123:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_add_hdr_dst(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); ^ kill_router6.c:90:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] int rawmode = 0; ^ kill_router6.c: In function 'send_ra_kill': kill_router6.c:31:20: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] int pkt_len = 0, cnt, i, len = header->caplen - 14, offset = 14; ^ fake_dnsupdate6.c: In function 'main': fake_dnsupdate6.c:56:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((dst = thc_resolve6(argv[3])) == NULL) { ^ ndpexhaust6.c: In function 'main': ndpexhaust6.c:56:10: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dstnet = argv[2]; // hier stehts dstnet drin ^ ndpexhaust6.c:57:3: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] if (dstnet == NULL || (ptr = index(dstnet, '/')) == NULL) { ^ In file included from ndpexhaust6.c:3:0: /usr/include/string.h:485:14: note: expected 'const char *' but argument is of type 'unsigned char *' extern char *index (const char *__s, int __c) ^ ndpexhaust6.c:57:30: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if (dstnet == NULL || (ptr = index(dstnet, '/')) == NULL) { ^ ndpexhaust6.c:63:3: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] size = atoi(ptr); // prefix lenght ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from ndpexhaust6.c:1: /usr/include/stdlib.h:278:1: note: expected 'const char *' but argument is of type 'unsigned char *' __NTH (atoi (const char *__nptr)) ^ ndpexhaust6.c:70:3: warning: pointer targets in passing argument 1 of 'thc_resolve6' differ in signedness [-Wpointer-sign] dst6 = thc_resolve6(dstnet); ^ In file included from ndpexhaust6.c:11:0: thc-ipv6.h:95:23: note: expected 'char *' but argument is of type 'unsigned char *' extern unsigned char *thc_resolve6(char *target); ^ kill_router6.c: In function 'main': kill_router6.c:87:10: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] int i, cnt, offset = 14; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o detect_sniffer6 detect_sniffer6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o dump_router6 dump_router6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o fake_router26 fake_router26.c thc-ipv6-lib.o -lpcap -lssl -lcrypto detect_sniffer6.c: In function 'main': detect_sniffer6.c:130:3: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, thc_ipv62notation(src6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from detect_sniffer6.c:2: /usr/include/bits/string3.h:140:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ detect_sniffer6.c:143:5: warning: pointer targets in passing argument 3 of 'thc_pcap_check' differ in signedness [-Wpointer-sign] thc_pcap_check(p, (char *) check_packets, buf); ^ In file included from detect_sniffer6.c:13:0: thc-ipv6.h:93:12: note: expected 'char *' but argument is of type 'unsigned char *' extern int thc_pcap_check(pcap_t * p, char *function, char *opt); ^ fragmentation6.c:39:20: warning: 'tos' may be used uninitialized in this function [-Wmaybe-uninitialized] char *interface, tos; ^ dump_router6.c: In function 'main': dump_router6.c:192:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] int rawmode = 0; ^ fake_router26.c: In function 'send_rs_reply': fake_router26.c:68:5: warning: pointer targets in passing argument 3 of 'thc_add_hdr_hopbyhop' differ in signedness [-Wpointer-sign] if (thc_add_hdr_hopbyhop(pkt, &pkt_len, frbuf2, frbuf2len) < 0) ^ In file included from fake_router26.c:11:0: thc-ipv6.h:124:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_add_hdr_hopbyhop(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); ^ fake_router26.c:80:5: warning: pointer targets in passing argument 3 of 'thc_add_hdr_dst' differ in signedness [-Wpointer-sign] if (thc_add_hdr_dst(pkt, &pkt_len, buf3, sizeof(buf3)) < 0) ^ In file included from fake_router26.c:11:0: thc-ipv6.h:123:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_add_hdr_dst(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); ^ fake_router26.c:83:3: warning: pointer targets in passing argument 6 of 'thc_add_icmp6' differ in signedness [-Wpointer-sign] if (thc_add_icmp6(pkt, &pkt_len, ICMP6_ROUTERADV, 0, 0xff080800, frbuf, frbuflen, 0) < 0) ^ In file included from fake_router26.c:11:0: thc-ipv6.h:126:12: note: expected 'unsigned char *' but argument is of type 'char *' 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); ^ fake_router26.c: In function 'main': fake_router26.c:123:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dstmac = dmac; ^ fake_router26.c:128:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] mac6 = mac; ^ fake_router26.c:157:34: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if (optarg == NULL || (ptr = index(optarg, '/')) == NULL) { ^ fake_router26.c:162:7: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] if ((size = atoi(ptr)) < 0 && size > 255) { // yes we allow bad sizes :-) ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from fake_router26.c:1: /usr/include/stdlib.h:278:1: note: expected 'const char *' but argument is of type 'unsigned char *' __NTH (atoi (const char *__nptr)) ^ fake_router26.c:218:34: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if (optarg == NULL || (ptr = index(optarg, '/')) == NULL) { ^ fake_router26.c:223:7: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] if ((size = atoi(ptr)) < 0 && size > 255) { // yes we allow bad sizes :-) ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from fake_router26.c:1: /usr/include/stdlib.h:278:1: note: expected 'const char *' but argument is of type 'unsigned char *' __NTH (atoi (const char *__nptr)) ^ fake_router26.c:248:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] searchlist = optarg; ^ fake_router26.c:288:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr = strtok(optarg, ","); ^ fake_router26.c:290:11: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] if (strncasecmp(ptr, "man", 3) == 0) ^ In file included from fake_router26.c:3:0: /usr/include/string.h:536:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) ^ fake_router26.c:292:11: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] else if (strncasecmp(ptr, "oth", 3) == 0) ^ In file included from fake_router26.c:3:0: /usr/include/string.h:536:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) ^ fake_router26.c:294:11: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] else if (strncasecmp(ptr, "hom", 3) == 0) ^ In file included from fake_router26.c:3:0: /usr/include/string.h:536:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) ^ fake_router26.c:296:11: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] else if (strncasecmp(ptr, "prox", 4) == 0) ^ In file included from fake_router26.c:3:0: /usr/include/string.h:536:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) ^ fake_router26.c:298:11: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] else if (strncasecmp(ptr, "res", 3) == 0) ^ In file included from fake_router26.c:3:0: /usr/include/string.h:536:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) ^ fake_router26.c:300:11: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] else if (strncasecmp(ptr, "unk", 3) == 0) ^ In file included from fake_router26.c:3:0: /usr/include/string.h:536:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) ^ fake_router26.c:306:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr = strtok(NULL, ","); ^ fake_router26.c:344:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] frbuf = buf; ^ fake_router26.c:345:10: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] frbuf2 = buf2; ^ fake_router26.c:420:18: warning: value computed is not used [-Wunused-value] buf[i++] == 0x10; ^ fake_router26.c:449:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (searchlist[strlen(searchlist) - 1] == '.') ^ In file included from fake_router26.c:3:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ fake_router26.c:450:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] searchlist[strlen(searchlist) - 1] = 0; ^ In file included from fake_router26.c:3:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ fake_router26.c:452:5: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] while ((ptr = strstr(searchlist, ".,")) != NULL) { ^ In file included from fake_router26.c:3:0: /usr/include/string.h:338:14: note: expected 'const char *' but argument is of type 'unsigned char *' extern char *strstr (const char *__haystack, const char *__needle) ^ fake_router26.c:452:17: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] while ((ptr = strstr(searchlist, ".,")) != NULL) { ^ fake_router26.c:453:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] m = strlen(ptr); ^ In file included from fake_router26.c:3:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ fake_router26.c:460:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] j = strlen(searchlist); ^ In file included from fake_router26.c:3:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ fake_router26.c:463:7: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] ptr = index(&searchlist[l], '.'); ^ In file included from fake_router26.c:3:0: /usr/include/string.h:485:14: note: expected 'const char *' but argument is of type 'unsigned char *' extern char *index (const char *__s, int __c) ^ fake_router26.c:463:11: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr = index(&searchlist[l], '.'); ^ fake_router26.c:464:7: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] if (ptr == NULL || (index(&searchlist[l], ',') != NULL && (char*)ptr > (char*)index(&searchlist[l], ','))) { ^ In file included from fake_router26.c:3:0: /usr/include/string.h:485:14: note: expected 'const char *' but argument is of type 'unsigned char *' extern char *index (const char *__s, int __c) ^ fake_router26.c:464:7: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] if (ptr == NULL || (index(&searchlist[l], ',') != NULL && (char*)ptr > (char*)index(&searchlist[l], ','))) { ^ In file included from fake_router26.c:3:0: /usr/include/string.h:485:14: note: expected 'const char *' but argument is of type 'unsigned char *' extern char *index (const char *__s, int __c) ^ fake_router26.c:466:9: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] ptr = index(&searchlist[l], ','); ^ In file included from fake_router26.c:3:0: /usr/include/string.h:485:14: note: expected 'const char *' but argument is of type 'unsigned char *' extern char *index (const char *__s, int __c) ^ fake_router26.c:466:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr = index(&searchlist[l], ','); ^ fake_router26.c:470:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] n = strlen(&searchlist[l]); ^ In file included from fake_router26.c:3:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ fake_router26.c:498:5: warning: pointer targets in passing argument 3 of 'thc_add_hdr_hopbyhop' differ in signedness [-Wpointer-sign] if (thc_add_hdr_hopbyhop(pkt, &pkt_len, frbuf2, 6) < 0) ^ In file included from fake_router26.c:11:0: thc-ipv6.h:124:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_add_hdr_hopbyhop(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); ^ fake_router26.c:511:5: warning: pointer targets in passing argument 3 of 'thc_add_hdr_dst' differ in signedness [-Wpointer-sign] if (thc_add_hdr_dst(pkt, &pkt_len, buf3, sizeof(buf3)) < 0) ^ In file included from fake_router26.c:11:0: thc-ipv6.h:123:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_add_hdr_dst(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); ^ fake_router26.c:522:3: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init(interface, string)) == NULL) { ^ In file included from fake_router26.c:11:0: thc-ipv6.h:90:16: note: expected 'char *' but argument is of type 'unsigned char *' extern pcap_t *thc_pcap_init(char *interface, char *capture); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o flood_router26 flood_router26.c thc-ipv6-lib.o -lpcap -lssl -lcrypto flood_router26.c: In function 'main': flood_router26.c:35:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *mac6 = mac, *ip6; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o passive_discovery6 passive_discovery6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto flood_router26.c:40:20: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] int pkt_len = 0, rawmode = 0, count = 0, deanon = 0, do_hop = 0, do_frag = 0, do_dst = 0, bsize = -1; ^ passive_discovery6.c: In function 'detect': passive_discovery6.c:35:15: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] char *ptr = data, *ptr2; ^ passive_discovery6.c:41:5: warning: pointer targets in passing argument 1 of 'thc_dump_data' differ in signedness [-Wpointer-sign] thc_dump_data(ptr, 8, "packet"); ^ In file included from passive_discovery6.c:11:0: thc-ipv6.h:142:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void thc_dump_data(unsigned char *buf, int len, char *text); ^ passive_discovery6.c:84:9: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] ptr2 = thc_ipv62notation((char *) (ptr + offset)); ^ In file included from passive_discovery6.c:11:0: thc-ipv6.h:146:23: note: expected 'unsigned char *' but argument is of type 'char *' extern unsigned char *thc_ipv62notation(unsigned char *string); ^ passive_discovery6.c:84:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr2 = thc_ipv62notation((char *) (ptr + offset)); ^ passive_discovery6.c: In function 'main': passive_discovery6.c:136:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] replace = thc_resolve6(optarg); ^ passive_discovery6.c:155:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] glob = thc_get_own_ipv6(interface, NULL, PREFER_GLOBAL); ^ passive_discovery6.c:156:6: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ll = thc_get_own_ipv6(interface, NULL, PREFER_LINK); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o dnsrevenum6 dnsrevenum6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o inverse_lookup6 inverse_lookup6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto inverse_lookup6.c: In function 'check_packets': inverse_lookup6.c:47:7: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] printf("Empty Inverse Neighbor Discovery message received by %s for %s\n", thc_ipv62notation((char *) ptr + 8), mac); ^ In file included from inverse_lookup6.c:11:0: thc-ipv6.h:146:23: note: expected 'unsigned char *' but argument is of type 'char *' extern unsigned char *thc_ipv62notation(unsigned char *string); ^ inverse_lookup6.c:49:7: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] printf("Inverse Advertisement Discovery message received by %s for %s (%d entries):\n", thc_ipv62notation((char *) ptr + 8), mac, j); ^ In file included from inverse_lookup6.c:11:0: thc-ipv6.h:146:23: note: expected 'unsigned char *' but argument is of type 'char *' extern unsigned char *thc_ipv62notation(unsigned char *string); ^ inverse_lookup6.c:51:9: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] printf(" %s\n", thc_ipv62notation((char *) ptr + 56 + i * 16)); ^ In file included from inverse_lookup6.c:11:0: thc-ipv6.h:146:23: note: expected 'unsigned char *' but argument is of type 'char *' extern unsigned char *thc_ipv62notation(unsigned char *string); ^ dnsrevenum6.c: In function 'deeper': dnsrevenum6.c:164:13: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] strcpy(name, "Found: "); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from dnsrevenum6.c:16: /usr/include/bits/string3.h:102:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ dnsrevenum6.c:175:13: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(name, thc_ipv62notation(dst6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from dnsrevenum6.c:16: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ dnsrevenum6.c:175:13: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(name, thc_ipv62notation(dst6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from dnsrevenum6.c:16: /usr/include/bits/string3.h:140:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ dnsrevenum6.c:176:13: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(name, " is "); ^ inverse_lookup6.c: In function 'main': In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from dnsrevenum6.c:16: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ inverse_lookup6.c:75:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] mac = argv[2]; ^ dnsrevenum6.c:182:15: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(name, ptr2 + 1); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from dnsrevenum6.c:16: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ dnsrevenum6.c:182:15: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(name, ptr2 + 1); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from dnsrevenum6.c:16: /usr/include/bits/string3.h:140:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ dnsrevenum6.c:183:15: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(name, "."); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from dnsrevenum6.c:16: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ dnsrevenum6.c:188:15: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(name, " is "); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from dnsrevenum6.c:16: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ dnsrevenum6.c:194:17: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(name, ptr2 + 1); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from dnsrevenum6.c:16: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ dnsrevenum6.c:194:17: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(name, ptr2 + 1); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from dnsrevenum6.c:16: /usr/include/bits/string3.h:140:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ dnsrevenum6.c:195:17: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(name, "."); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from dnsrevenum6.c:16: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ dnsrevenum6.c: In function 'main': dnsrevenum6.c:247:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] prg = argv[0]; ^ dnsrevenum6.c:267:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] dst = argv[1]; ^ dnsrevenum6.c:268:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr = argv[2]; ^ dnsrevenum6.c:270:3: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration] srand(time(NULL) + getpid()); ^ dnsrevenum6.c:277:3: warning: implicit declaration of function 'strcasestr' [-Wimplicit-function-declaration] if ((*ptr != '.') && (index((char*)(uintptr_t)ptr, '.') != NULL) && ((ptr2 = (unsigned char*)(uintptr_t)strcasestr((char*)(uintptr_t)ptr, ".ip6.arpa")) != NULL)) { ^ dnsrevenum6.c:279:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] for (i = strlen(ptr) - 1; i >= 0 && ok == 1; i--) { ^ In file included from dnsrevenum6.c:18:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ dnsrevenum6.c:292:3: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] } else if (index(ptr, ':') != NULL && (ptr2 = index(ptr, '/')) != NULL) { ^ In file included from dnsrevenum6.c:18:0: /usr/include/string.h:485:14: note: expected 'const char *' but argument is of type 'unsigned char *' extern char *index (const char *__s, int __c) ^ dnsrevenum6.c:292:3: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] } else if (index(ptr, ':') != NULL && (ptr2 = index(ptr, '/')) != NULL) { ^ In file included from dnsrevenum6.c:18:0: /usr/include/string.h:485:14: note: expected 'const char *' but argument is of type 'unsigned char *' extern char *index (const char *__s, int __c) ^ dnsrevenum6.c:292:47: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] } else if (index(ptr, ':') != NULL && (ptr2 = index(ptr, '/')) != NULL) { ^ dnsrevenum6.c:294:5: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] len = atoi(ptr2); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from dnsrevenum6.c:16: /usr/include/stdlib.h:278:1: note: expected 'const char *' but argument is of type 'unsigned char *' __NTH (atoi (const char *__nptr)) ^ dnsrevenum6.c:305:5: warning: pointer targets in passing argument 1 of 'thc_resolve6' differ in signedness [-Wpointer-sign] if ((dest = thc_resolve6(ptr)) == NULL) { ^ In file included from dnsrevenum6.c:29:0: thc-ipv6.h:95:23: note: expected 'char *' but argument is of type 'unsigned char *' extern unsigned char *thc_resolve6(char *target); ^ dnsrevenum6.c:329:3: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] strcpy(buf_end + 1, "ip6"); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from dnsrevenum6.c:16: /usr/include/bits/string3.h:102:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ dnsrevenum6.c:331:3: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] strcpy(buf_end + 5, "arpa"); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from dnsrevenum6.c:16: /usr/include/bits/string3.h:102:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ dnsrevenum6.c:341:3: warning: pointer targets in passing argument 1 of 'dnssocket' differ in signedness [-Wpointer-sign] sock = dnssocket(dst); ^ dnsrevenum6.c:37:5: note: expected 'char *' but argument is of type 'unsigned char *' int dnssocket(char *server) { ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o node_query6 node_query6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto dnsrevenum6.c: In function 'deeper': dnsrevenum6.c:171:32: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized] dst6[15 - i/2] = (tochar(ptr2[1]) * 16) + j; ^ node_query6.c: In function 'dump_node_reply': node_query6.c:67:9: warning: pointer targets in passing argument 1 of 'thc_ipv62notation' differ in signedness [-Wpointer-sign] printf(" %s\n", thc_ipv62notation((char *) (ipv6hdr+ i))); ^ In file included from node_query6.c:11:0: thc-ipv6.h:146:23: note: expected 'unsigned char *' but argument is of type 'char *' extern unsigned char *thc_ipv62notation(unsigned char *string); ^ node_query6.c: In function 'main': node_query6.c:102:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *mac6 = mac; ^ node_query6.c:108:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] int rawmode = 0; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o address6 address6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto node_query6.c:136:7: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] cnt += getpid(); ^ address6.c: In function 'main': address6.c:35:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((dst6 = index(argv[1], '/')) != NULL) ^ address6.c:48:9: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(ipv4, "%d.%d.%d.%d", dst6[9], dst6[11], dst6[13], dst6[15]); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from address6.c:1: /usr/include/bits/stdio2.h:31:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) ^ address6.c:49:9: warning: pointer targets in passing argument 1 of 'inet_aton' differ in signedness [-Wpointer-sign] if (inet_aton(ipv4, &in) != 0) { ^ In file included from address6.c:11:0: /usr/include/arpa/inet.h:73:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int inet_aton (const char *__cp, struct in_addr *__inp) __THROW; ^ address6.c:56:7: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(ipv4, "%d.%d.%d.%d", dst6[12], dst6[13], dst6[14], dst6[15]); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from address6.c:1: /usr/include/bits/stdio2.h:31:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) ^ address6.c:57:7: warning: pointer targets in passing argument 1 of 'inet_aton' differ in signedness [-Wpointer-sign] if (inet_aton(ipv4, &in) != 0) { ^ In file included from address6.c:11:0: /usr/include/arpa/inet.h:73:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int inet_aton (const char *__cp, struct in_addr *__inp) __THROW; ^ address6.c:67:5: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] for (i = 0; i < strlen(ptr); i++) ^ In file included from address6.c:3:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ address6.c:73:5: warning: pointer targets in passing argument 1 of 'inet_aton' differ in signedness [-Wpointer-sign] if (j == 0 && inet_aton(ptr, &in) != 0) { ^ In file included from address6.c:11:0: /usr/include/arpa/inet.h:73:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int inet_aton (const char *__cp, struct in_addr *__inp) __THROW; ^ address6.c:75:7: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] for (i = 0; i < strlen(ptr); i++) ^ In file included from address6.c:3:0: /usr/include/string.h:395:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^ address6.c:93:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((ptr = index(argv[2], '/')) != NULL) ^ address6.c:103:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr = argv[1]; ^ address6.c:105:7: warning: pointer targets in passing argument 1 of 'index' differ in signedness [-Wpointer-sign] if ((dst6 = index(ptr, '.')) != NULL) ^ In file included from address6.c:3:0: /usr/include/string.h:485:14: note: expected 'const char *' but argument is of type 'unsigned char *' extern char *index (const char *__s, int __c) ^ address6.c:105:17: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((dst6 = index(ptr, '.')) != NULL) ^ address6.c:107:7: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] ipv4[i] = atoi(ptr); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from address6.c:1: /usr/include/stdlib.h:278:1: note: expected 'const char *' but argument is of type 'unsigned char *' __NTH (atoi (const char *__nptr)) ^ address6.c:137:9: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(ipv6, "::%d:%d:%d:%d", ipv4[0], ipv4[1], ipv4[2], ipv4[3]); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from address6.c:1: /usr/include/bits/stdio2.h:31:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) ^ address6.c:138:9: warning: pointer targets in passing argument 1 of 'thc_resolve6' differ in signedness [-Wpointer-sign] dst6 = thc_resolve6(ipv6); ^ In file included from address6.c:13:0: thc-ipv6.h:95:23: note: expected 'char *' but argument is of type 'unsigned char *' extern unsigned char *thc_resolve6(char *target); ^ address6.c:146:9: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] sprintf(ipv6, "::%d", ipv4[3]); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from address6.c:1: /usr/include/bits/stdio2.h:31:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) ^ address6.c:147:9: warning: pointer targets in passing argument 1 of 'thc_resolve6' differ in signedness [-Wpointer-sign] dst6 = thc_resolve6(ipv6); ^ In file included from address6.c:13:0: thc-ipv6.h:95:23: note: expected 'char *' but argument is of type 'unsigned char *' extern unsigned char *thc_resolve6(char *target); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o covert_send6 covert_send6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o covert_send6d covert_send6d.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o inject_alive6 inject_alive6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o firewall6 firewall6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto inject_alive6.c: In function 'main': inject_alive6.c:148:5: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init_promisc(interface, "it does not matter what we put here")) == NULL) { ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o ndpexhaust26 ndpexhaust26.c thc-ipv6-lib.o -lpcap -lssl -lcrypto In file included from inject_alive6.c:12:0: thc-ipv6.h:91:16: note: expected 'unsigned char *' but argument is of type 'char *' extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); ^ inject_alive6.c:159:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] hdr.pkt = sndbuf; ^ firewall6.c: In function 'main': firewall6.c:239:3: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, thc_ipv62notation(src)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from firewall6.c:6: /usr/include/bits/string3.h:140:1: note: expected 'char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ firewall6.c:239:3: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, thc_ipv62notation(src)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from firewall6.c:6: /usr/include/bits/string3.h:140:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ firewall6.c:242:3: warning: pointer targets in passing argument 2 of 'thc_pcap_init' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init(interface, string)) == NULL) { ^ In file included from firewall6.c:16:0: thc-ipv6.h:90:16: note: expected 'char *' but argument is of type 'unsigned char *' extern pcap_t *thc_pcap_init(char *interface, char *capture); ^ firewall6.c:286:7: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 1000) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:289:7: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 1000) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:129:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:909:7: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 2500) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:912:7: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 2500) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:129:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:964:7: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 2500) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:967:7: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 2500) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:129:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1019:7: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 2500) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1022:7: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 2500) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:129:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1117:7: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 2500) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1120:7: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 2500) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:129:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1172:7: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 2500) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1175:7: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 2500) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:129:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1227:7: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 2500) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1230:7: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 2500) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:129:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1282:7: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 2500) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1285:7: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 2500) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:129:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1315:7: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 0) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1318:7: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 0) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:129:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1397:7: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 0) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1400:7: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 0) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:129:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1479:7: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] if (thc_add_tcp(pkt, &pkt_len, sport + count, port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 40) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1482:7: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, sport + count, port, 0, buf, 40) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:129:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1680:5: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] 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) ^ In file included from firewall6.c:16:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1711:9: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] if (thc_add_tcp(pkt, &pkt_len, sports[i], port, sport + count, 0, TCP_SYN, 0x3840, 0, NULL, 0, buf, 0) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ firewall6.c:1731:9: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, sports2[i], port, 0, buf, 1000) == -1) ^ In file included from firewall6.c:16:0: thc-ipv6.h:129:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ ndpexhaust26.c: In function 'main': ndpexhaust26.c:142:5: warning: pointer targets in passing argument 3 of 'thc_add_hdr_hopbyhop' differ in signedness [-Wpointer-sign] if (thc_add_hdr_hopbyhop(pkt, &pkt_len, buf2, 6) < 0) ^ In file included from ndpexhaust26.c:11:0: thc-ipv6.h:124:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_add_hdr_hopbyhop(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o fake_pim6 fake_pim6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o thcsyn6 thcsyn6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto thcsyn6.c: In function 'main': thcsyn6.c:141:7: warning: pointer targets in passing argument 3 of 'thc_add_hdr_hopbyhop' differ in signedness [-Wpointer-sign] if (thc_add_hdr_hopbyhop(pkt, &pkt_len, buf2, 6) < 0) ^ In file included from thcsyn6.c:11:0: thc-ipv6.h:124:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_add_hdr_hopbyhop(unsigned char *pkt, int *pkt_len, unsigned char *buf, int buflen); ^ thcsyn6.c:33:91: warning: variable 'dont_crc' set but not used [-Wunused-but-set-variable] int i, type = TCP_SYN, alert = 0, randsrc = 0, randdst = 0, randsrcp = 1, randdstp = 0, dont_crc = 0, seq; ^ thcsyn6.c:144:20: warning: 'port' may be used uninitialized in this function [-Wmaybe-uninitialized] if (thc_add_tcp(pkt, &pkt_len, sport, port, seq, 0, type, 0x3840, 0, NULL, 0, NULL, 0) < 0) ^ thcsyn6.c:144:20: warning: 'sport' may be used uninitialized in this function [-Wmaybe-uninitialized] gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o redirsniff6 redirsniff6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto redirsniff6.c: In function 'intercept': redirsniff6.c:60:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr = thc_ipv62notation((unsigned char*)data + 14 + 8); ^ redirsniff6.c:61:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr2 = thc_ipv62notation((unsigned char*)data + 14 + 8 + 16); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o flood_redir6 flood_redir6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto redirsniff6.c: In function 'main': redirsniff6.c:131:5: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, thc_ipv62notation(src6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from redirsniff6.c:1: /usr/include/bits/string3.h:140:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ redirsniff6.c:135:5: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, thc_ipv62notation(dest6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from redirsniff6.c:1: /usr/include/bits/string3.h:140:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ redirsniff6.c:68:20: warning: variable 'offset' set but not used [-Wunused-but-set-variable] int rawmode = 0, offset = 14; ^ redirsniff6.c:68:7: warning: variable 'rawmode' set but not used [-Wunused-but-set-variable] int rawmode = 0, offset = 14; ^ flood_redir6.c: In function 'main': flood_redir6.c:24:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *mac6 = mac; ^ flood_redir6.c:29:34: warning: unused variable 'rawmode' [-Wunused-variable] int pkt_len = 0, pkt_len2 = 0, rawmode = 0, count = 0, do_hop = 0, do_frag = 0, do_dst = 0; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o four2six four2six.c thc-ipv6-lib.o -lpcap -lssl -lcrypto gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o dump_dhcp6 dump_dhcp6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto four2six.c: In function 'main': four2six.c:32:85: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] int pkt1_len = 0, prefer = PREFER_GLOBAL, i, do_hop = 0, do_dst = 0, do_frag = 0, cnt, type = NXT_ICMP6, offset = 14; ^ dump_dhcp6.c: In function 'check_packets': dump_dhcp6.c:108:11: warning: zero-length gnu_printf format string [-Wformat-zero-length] printf(""); // client identifier ^ dump_dhcp6.c:111:11: warning: zero-length gnu_printf format string [-Wformat-zero-length] printf(""); // server identier ^ dump_dhcp6.c:118:11: warning: zero-length gnu_printf format string [-Wformat-zero-length] printf(""); // prefered value ^ dump_dhcp6.c:41:29: warning: variable 'rlen' set but not used [-Wunused-but-set-variable] int len = header->caplen, rlen, i, j; ^ dump_dhcp6.c: In function 'main': dump_dhcp6.c:139:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *mac6 = mac, *src, *dst; ^ dump_dhcp6.c:188:3: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init_promisc(interface, "ip6 and udp and dst port 546")) == NULL) { ^ In file included from dump_dhcp6.c:13:0: thc-ipv6.h:91:16: note: expected 'unsigned char *' but argument is of type 'char *' extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); ^ dump_dhcp6.c:208:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((pkt = thc_create_ipv6_extended(interface, PREFER_LINK, &pkt_len, src, dst, 1, 0, 0, 0, 0)) == NULL) ^ dump_dhcp6.c:210:3: warning: pointer targets in passing argument 1 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, 546, 547, 0, wdatabuf, len) < 0) ^ In file included from dump_dhcp6.c:13:0: thc-ipv6.h:129:12: note: expected 'unsigned char *' but argument is of type 'char *' 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); ^ dump_dhcp6.c:213:3: warning: pointer targets in passing argument 4 of 'thc_generate_and_send_pkt' differ in signedness [-Wpointer-sign] if (thc_generate_and_send_pkt(interface, mac6, NULL, pkt, &pkt_len) < 0) ^ In file included from dump_dhcp6.c:13:0: thc-ipv6.h:134:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_generate_and_send_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); ^ dump_dhcp6.c:218:3: warning: pointer targets in passing argument 1 of 'thc_destroy_packet' differ in signedness [-Wpointer-sign] pkt = thc_destroy_packet(pkt); ^ In file included from dump_dhcp6.c:13:0: thc-ipv6.h:137:23: note: expected 'unsigned char *' but argument is of type 'char *' extern unsigned char *thc_destroy_packet(unsigned char *pkt); ^ dump_dhcp6.c:218:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pkt = thc_destroy_packet(pkt); ^ dump_dhcp6.c:143:7: warning: variable 'do_all' set but not used [-Wunused-but-set-variable] int do_all = 1, use_real_mac = 1, use_real_link = 1; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o fuzz_dhcps6 fuzz_dhcps6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto fuzz_dhcps6.c: In function 'try_send_pkt': fuzz_dhcps6.c:214:5: warning: pointer targets in passing argument 2 of 'thc_send_pkt' differ in signedness [-Wpointer-sign] if (thc_send_pkt(interface, pkt, pkt_len) < 0) ^ In file included from fuzz_dhcps6.c:13:0: thc-ipv6.h:136:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_send_pkt(char *interface, unsigned char *pkt, int *pkt_len); ^ fuzz_dhcps6.c: In function 'check_alive': fuzz_dhcps6.c:243:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((pkt = thc_create_ipv6_extended(interface, PREFER_LINK, &pkt_len, NULL, dst, 1, 0, 0, 0, 0)) == NULL) { ^ fuzz_dhcps6.c:248:3: warning: pointer targets in passing argument 1 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, 546, 547, 0, wdatabuf, len) < 0) { ^ In file included from fuzz_dhcps6.c:13:0: thc-ipv6.h:129:12: note: expected 'unsigned char *' but argument is of type 'char *' 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); ^ fuzz_dhcps6.c:253:3: warning: pointer targets in passing argument 4 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] if (thc_generate_pkt(interface, mac6, NULL, pkt, &pkt_len) < 0) { ^ In file included from fuzz_dhcps6.c:13:0: thc-ipv6.h:135:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); ^ fuzz_dhcps6.c:275:7: warning: pointer targets in passing argument 2 of 'thc_send_pkt' differ in signedness [-Wpointer-sign] if (thc_send_pkt(interface, pkt, &pkt_len) < 0) { //Don't want to use try_send_pkt as it could take longer than timeout ^ In file included from fuzz_dhcps6.c:13:0: thc-ipv6.h:136:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_send_pkt(char *interface, unsigned char *pkt, int *pkt_len); ^ fuzz_dhcps6.c:277:9: warning: pointer targets in passing argument 2 of 'thc_send_pkt' differ in signedness [-Wpointer-sign] thc_send_pkt(interface, pkt, &pkt_len); //Retry sending packet after short time if sending failed ^ In file included from fuzz_dhcps6.c:13:0: thc-ipv6.h:136:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_send_pkt(char *interface, unsigned char *pkt, int *pkt_len); ^ fuzz_dhcps6.c:292:3: warning: pointer targets in passing argument 1 of 'thc_destroy_packet' differ in signedness [-Wpointer-sign] thc_destroy_packet(pkt); ^ In file included from fuzz_dhcps6.c:13:0: thc-ipv6.h:137:23: note: expected 'unsigned char *' but argument is of type 'char *' extern unsigned char *thc_destroy_packet(unsigned char *pkt); ^ fuzz_dhcps6.c: In function 'fuzz_loop': fuzz_dhcps6.c:466:11: warning: pointer targets in passing argument 2 of 'thc_send_pkt' differ in signedness [-Wpointer-sign] while(thc_send_pkt(interface, pkt, pkt_len) < 0) ^ In file included from fuzz_dhcps6.c:13:0: thc-ipv6.h:136:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_send_pkt(char *interface, unsigned char *pkt, int *pkt_len); ^ fuzz_dhcps6.c:304:21: warning: unused variable 'frag_offset' [-Wunused-variable] int fragment = 0, frag_offset = 0; ^ fuzz_dhcps6.c:304:7: warning: unused variable 'fragment' [-Wunused-variable] int fragment = 0, frag_offset = 0; ^ fuzz_dhcps6.c: In function 'construct_from_adv_and_fuzz': fuzz_dhcps6.c:638:5: warning: pointer targets in passing argument 2 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] if (thc_generate_pkt(interface, smac, ptr + 6, pkt, &pkt_len) < 0) { ^ In file included from fuzz_dhcps6.c:13:0: thc-ipv6.h:135:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); ^ fuzz_dhcps6.c:643:5: warning: pointer targets in passing argument 1 of 'fuzz_loop' differ in signedness [-Wpointer-sign] if (fuzz_loop(pkt, &pkt_len) < 0) { ^ fuzz_dhcps6.c:297:5: note: expected 'char *' but argument is of type 'unsigned char *' int fuzz_loop(char* pkt, int* pkt_len) { ^ fuzz_dhcps6.c: In function 'main': fuzz_dhcps6.c:664:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *mac6 = mac, *src, *dst; ^ fuzz_dhcps6.c:765:3: warning: pointer targets in passing argument 2 of 'thc_pcap_init_promisc' differ in signedness [-Wpointer-sign] if ((p = thc_pcap_init_promisc(interface, "ip6 and udp and dst port 546")) == NULL) { ^ In file included from fuzz_dhcps6.c:13:0: thc-ipv6.h:91:16: note: expected 'unsigned char *' but argument is of type 'char *' extern pcap_t *thc_pcap_init_promisc(char *interface, unsigned char *capture); ^ fuzz_dhcps6.c:874:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((pkt = thc_create_ipv6_extended(interface, PREFER_LINK, &pkt_len, src, dst, 1, 0, 0, 0, 0)) == NULL) ^ fuzz_dhcps6.c:876:3: warning: pointer targets in passing argument 1 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt, &pkt_len, 546, 547, 0, wdatabuf, len) < 0) ^ In file included from fuzz_dhcps6.c:13:0: thc-ipv6.h:129:12: note: expected 'unsigned char *' but argument is of type 'char *' 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); ^ fuzz_dhcps6.c:879:3: warning: pointer targets in passing argument 4 of 'thc_generate_pkt' differ in signedness [-Wpointer-sign] if (thc_generate_pkt(interface, mac6, NULL, pkt, &pkt_len) < 0) ^ In file included from fuzz_dhcps6.c:13:0: thc-ipv6.h:135:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_generate_pkt(char *interface, unsigned char *srcmac, unsigned char *dstmac, unsigned char *pkt, int *pkt_len); ^ fuzz_dhcps6.c:891:5: warning: pointer targets in passing argument 2 of 'thc_send_pkt' differ in signedness [-Wpointer-sign] if (thc_send_pkt(interface, pkt, &pkt_len) < 0) { ^ In file included from fuzz_dhcps6.c:13:0: thc-ipv6.h:136:12: note: expected 'unsigned char *' but argument is of type 'char *' extern int thc_send_pkt(char *interface, unsigned char *pkt, int *pkt_len); ^ fuzz_dhcps6.c:910:3: warning: pointer targets in passing argument 1 of 'thc_destroy_packet' differ in signedness [-Wpointer-sign] pkt = thc_destroy_packet(pkt); ^ In file included from fuzz_dhcps6.c:13:0: thc-ipv6.h:137:23: note: expected 'unsigned char *' but argument is of type 'char *' extern unsigned char *thc_destroy_packet(unsigned char *pkt); ^ fuzz_dhcps6.c:910:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pkt = thc_destroy_packet(pkt); ^ fuzz_dhcps6.c:667:7: warning: unused variable 'do_all' [-Wunused-variable] int do_all = 1, use_real_mac = 1, use_real_link = 1; ^ fuzz_dhcps6.c: In function 'try_send_pkt': fuzz_dhcps6.c:223:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o flood_rs6 flood_rs6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto fuzz_dhcps6.c: In function 'fuzz_loop': fuzz_dhcps6.c:486:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ flood_rs6.c: In function 'main': flood_rs6.c:32:70: warning: variable 'do_dst' set but not used [-Wunused-but-set-variable] int pkt_len2 = 0, rawmode = 0, count = 0, do_hop = 0, do_frag = 0, do_dst = 0; ^ flood_rs6.c:32:45: warning: variable 'do_hop' set but not used [-Wunused-but-set-variable] int pkt_len2 = 0, rawmode = 0, count = 0, do_hop = 0, do_frag = 0, do_dst = 0; ^ flood_rs6.c:32:21: warning: unused variable 'rawmode' [-Wunused-variable] int pkt_len2 = 0, rawmode = 0, count = 0, do_hop = 0, do_frag = 0, do_dst = 0; ^ flood_rs6.c:30:13: warning: unused variable 'type' [-Wunused-variable] int i, k, type = NXT_ICMP6, offset = 14, mychecksum, prefer = PREFER_LINK; ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -o thcping6 thcping6.c thc-ipv6-lib.o -lpcap -lssl -lcrypto -lrt thcping6.c: In function 'check_packets': thcping6.c:67:63: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] unsigned char *ptr = (unsigned char *) (data + 14), *frag = ""; ^ thcping6.c:87:10: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] frag = " (fragmented)"; ^ thcping6.c: In function 'main': thcping6.c:432:7: warning: pointer targets in passing argument 12 of 'thc_add_tcp' differ in signedness [-Wpointer-sign] if (thc_add_tcp(pkt1, &pkt1_len, port, port, (port << 16) + port, 0, TCP_SYN, 5760, 0, NULL, 0, (unsigned char *) &buf, dlen) < 0) ^ In file included from thcping6.c:13:0: thc-ipv6.h:128:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ thcping6.c:435:7: warning: pointer targets in passing argument 6 of 'thc_add_udp' differ in signedness [-Wpointer-sign] if (thc_add_udp(pkt1, &pkt1_len, port, port, 0, (unsigned char *) &buf, dlen) < 0) ^ In file included from thcping6.c:13:0: thc-ipv6.h:129:12: note: expected 'char *' but argument is of type 'unsigned char *' 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); ^ thcping6.c:461:3: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(string, thc_ipv62notation(src6)); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdio.h:27, from thcping6.c:1: /usr/include/bits/string3.h:140:1: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ thcping6.c:481:5: warning: pointer targets in passing argument 3 of 'thc_pcap_check' differ in signedness [-Wpointer-sign] thc_pcap_check(p, (char *) check_packets, buf); ^ In file included from thcping6.c:13:0: thc-ipv6.h:93:12: note: expected 'char *' but argument is of type 'unsigned char *' extern int thc_pcap_check(pcap_t * p, char *function, char *opt); ^ fuzz_dhcps6.c: In function 'construct_from_adv_and_fuzz': fuzz_dhcps6.c:638:25: warning: 'smac' may be used uninitialized in this function [-Wmaybe-uninitialized] if (thc_generate_pkt(interface, smac, ptr + 6, pkt, &pkt_len) < 0) { ^ + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.kAojtN + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm '!=' / ']' + rm -rf /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm ++ dirname /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm + cd thc-ipv6-2.5 + make install DESTDIR=/builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm 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 fuzz_dhcps6 flood_rs6 dnssecwalk dnsdict6 thcping6 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 fuzz_dhcps6 flood_rs6 dnssecwalk dnsdict6 thcping6 install -m0755 -d /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/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 fuzz_dhcps6 flood_rs6 dnsdict6 thcping6 dnssecwalk *.sh /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin install -m0755 -d /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/share/man/man8 install -m0644 -D thc-ipv6.8 /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/share/man/man8 + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/thc-ipv6-2.5 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/detect_sniffer6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/fake_mld26 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/fuzz_ip6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/implementation6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/fake_solicitate6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/flood_mld6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/dump_router6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/flood_solicitate6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/covert_send6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/dnssecwalk extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/fake_advertise6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/flood_dhcpc6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/dump_dhcp6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/flood_redir6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/randicmp6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/ndpexhaust6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/redir6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/trace6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/parasite6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/address6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/fake_dns6d extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/implementation6d extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/thcping6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/kill_router6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/fake_router26 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/exploit6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/flood_rs6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/fake_mipv6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/flood_mld26 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/fake_pim6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/alive6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/ndpexhaust26 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/flood_router6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/denial6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/flood_advertise6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/node_query6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/four2six extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/redirsniff6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/dnsdict6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/passive_discovery6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/fragmentation6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/dnsrevenum6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/sendpeesmp6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/flood_mldrouter6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/fuzz_dhcps6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/fake_mldrouter6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/fake_mld6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/rsmurf6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/detect-new-ip6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/inject_alive6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/firewall6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/sendpees6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/thcsyn6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/fake_dhcps6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/inverse_lookup6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/smurf6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/flood_router26 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/covert_send6d extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/dos-new-ip6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/fake_dnsupdate6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/fake_router6 extracting debug info from /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/bin/toobig6 /usr/lib/rpm/sepdebugcrcfix: Updated 62 CRC32s, 0 CRC32s did match. 2153 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: thc-ipv6-2.5-2.el7.armv7hl Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ffLI9J + umask 022 + cd /builddir/build/BUILD + cd thc-ipv6-2.5 + DOCDIR=/builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/share/doc/thc-ipv6-2.5 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/share/doc/thc-ipv6-2.5 + cp -pr CHANGES /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/share/doc/thc-ipv6-2.5 + cp -pr LICENSE /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/share/doc/thc-ipv6-2.5 + cp -pr LICENSE.OPENSSL /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/share/doc/thc-ipv6-2.5 + cp -pr README /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/share/doc/thc-ipv6-2.5 + cp -pr HOWTO-INJECT /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm/usr/share/doc/thc-ipv6-2.5 + exit 0 Provides: thc-ipv6 = 2.5-2.el7 thc-ipv6(armv7hl-32) = 2.5-2.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /bin/bash ld-linux-armhf.so.3 ld-linux-armhf.so.3(GLIBC_2.4) libc.so.6 libc.so.6(GLIBC_2.4) libc.so.6(GLIBC_2.7) libcrypto.so.10 libgcc_s.so.1 libgcc_s.so.1(GCC_3.5) libpcap.so.1 libpthread.so.0 libpthread.so.0(GLIBC_2.4) libresolv.so.2 libresolv.so.2(GLIBC_2.4) librt.so.1 librt.so.1(GLIBC_2.4) libssl.so.10 rtld(GNU_HASH) Processing files: thc-ipv6-debuginfo-2.5-2.el7.armv7hl Provides: thc-ipv6-debuginfo = 2.5-2.el7 thc-ipv6-debuginfo(armv7hl-32) = 2.5-2.el7 Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm Wrote: /builddir/build/RPMS/thc-ipv6-2.5-2.el7.armv7hl.rpm Wrote: /builddir/build/RPMS/thc-ipv6-debuginfo-2.5-2.el7.armv7hl.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.WJL6MJ + umask 022 + cd /builddir/build/BUILD + cd thc-ipv6-2.5 + /usr/bin/rm -rf /builddir/build/BUILDROOT/thc-ipv6-2.5-2.el7.arm + exit 0 Child return code was: 0