The following packages will be installed: packit Fetching README... 0%100%100%100%100%100%Done Fetching packit.SlackBuild... 0%100%100%100%100%100%Done Fetching packit.info... 0%100%100%100%100%100%Done Fetching patches/README... 0%100%100%100%100%100%Done Fetching patches/fix-spellings-manpage.patch... 0%100%100%100%100%100%Done Fetching patches/fix_call_to_pcap-bpf_h.patch... 0%100%100%100%100%100%Done Fetching patches/fix_dups_paths_man_page.patch... 0%100%100%100%100%100%Done Fetching patches/fix_inject_mode_segfault.patch... 0%100%100%100%100%100%Done Fetching patches/fix_spelling_errors.patch... 0%100%100%100%100%100%Done Fetching patches/fix_typo_in_source_code.patch... 0%100%100%100%100%100%Done Fetching patches/tcpdump.patch... 0%100%100%100%100%100%Done Fetching patches/update_homepage.patch... 0%100%100%100%100%100%Done Fetching slack-desc... 0%100%100%100%100%100%Done Fetching tcpdump.patch... 0%100%100%100%100%100%Done packit-1.0/ packit-1.0/ChangeLog packit-1.0/INSTALL packit-1.0/LICENSE packit-1.0/Makefile.am packit-1.0/Makefile.am.common packit-1.0/Makefile.in packit-1.0/VERSION packit-1.0/aclocal.m4 packit-1.0/compile packit-1.0/config.guess packit-1.0/config.h.in packit-1.0/config.status.lineno packit-1.0/config.sub packit-1.0/configure packit-1.0/configure.in packit-1.0/contrib/ packit-1.0/contrib/redhat/ packit-1.0/contrib/redhat/packit.spec packit-1.0/depcomp packit-1.0/docs/ packit-1.0/docs/ICMP.txt packit-1.0/install-sh packit-1.0/man/ packit-1.0/man/Makefile.am packit-1.0/man/Makefile.in packit-1.0/man/packit.8.in packit-1.0/missing packit-1.0/mkinstalldirs packit-1.0/src/ packit-1.0/src/utils.c packit-1.0/src/Makefile.am packit-1.0/src/print_arp_hdr.c packit-1.0/src/print_injection.c packit-1.0/src/error.c packit-1.0/src/print_udp_hdr.c packit-1.0/src/shape_icmpv4_hdr.c packit-1.0/src/injection.c packit-1.0/src/print_ipv4_hdr.c packit-1.0/src/capture.c packit-1.0/src/exit.c packit-1.0/src/shape_arp_hdr.c packit-1.0/src/shape_udp_hdr.c packit-1.0/src/shape_tcp_hdr.c packit-1.0/src/print_pktdump.c packit-1.0/src/shape_ethernet_hdr.c packit-1.0/src/print_tcp_hdr.c packit-1.0/src/print_icmpv4_hdr.c packit-1.0/src/print_ethernet_hdr.c packit-1.0/src/shape_ipv4_hdr.c packit-1.0/src/stats.c packit-1.0/src/shape_packet.c packit-1.0/src/usage.c packit-1.0/src/contrib/ packit-1.0/src/contrib/pcap_setnonblock.c packit-1.0/src/contrib/pcap-int.h packit-1.0/src/print_ts.c packit-1.0/src/Makefile.in packit-1.0/src/capture_defs.h packit-1.0/src/capture.h packit-1.0/src/error.h packit-1.0/src/exit.h packit-1.0/src/globals.h packit-1.0/src/init.h packit-1.0/src/inject_defs.h packit-1.0/src/injection.h packit-1.0/src/print_arp_hdr.h packit-1.0/src/print_defs.h packit-1.0/src/print_ethernet_hdr.h packit-1.0/src/print_icmpv4_hdr.h packit-1.0/src/print_injection.h packit-1.0/src/print_pktdump.h packit-1.0/src/print_ipv4_hdr.h packit-1.0/src/print_tcp_hdr.h packit-1.0/src/print_udp_hdr.h packit-1.0/src/shape_arp_hdr.h packit-1.0/src/shape_defs.h packit-1.0/src/shape_ethernet_hdr.h packit-1.0/src/shape_ipv4_hdr.h packit-1.0/src/init.c packit-1.0/src/shape_icmpv4_hdr.h packit-1.0/src/shape_packet.h packit-1.0/src/shape_tcp_hdr.h packit-1.0/src/shape_udp_hdr.h packit-1.0/src/stats.h packit-1.0/src/usage.h packit-1.0/src/utils.h packit-1.0/src/version.h.in packit-1.0/src/print_ts.h packit-1.0/src/main.h packit-1.0/src/define_defaults.h packit-1.0/src/define_defaults.c packit-1.0/src/main.c packit-1.0/src/print_capture.c packit-1.0/src/print_capture.h packit-1.0/src/payload.diff Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Description: fix spelling errors in manpage. |Author: Joao Eriberto Mota Filho |Last-Update: 2016-11-20 |Index: packit-1.0/man/packit.8.in |=================================================================== |--- packit-1.0.orig/man/packit.8.in |+++ packit-1.0/man/packit.8.in -------------------------- patching file man/packit.8.in Using Plan A... Hunk #1 succeeded at 82. Hunk #2 succeeded at 289 (offset 8 lines). Hunk #3 succeeded at 339 (offset 8 lines). Hunk #4 succeeded at 907 (offset 8 lines). done Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Description: call to pcap-bpf.h instead of net/bpf.h. |Author: LaMont Jones |Last-Update: 2007-09-10 |Index: packit-1.0/configure.in |=================================================================== |--- packit-1.0.orig/configure.in |+++ packit-1.0/configure.in -------------------------- patching file configure.in Using Plan A... Hunk #1 succeeded at 130. done Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- packit-1.0.orig/man/packit.8.in 2003-10-03 03:57:51.000000000 -0600 |+++ packit-1.0/man/packit.8.in 2016-12-16 18:20:31.066760261 -0700 -------------------------- patching file man/packit.8.in Using Plan A... Hunk #1 succeeded at 503. done Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Description: fix segfault when using inject-mode | with no arguments. (Closes: 386150) |Author: Deniz Adrian |Last-Update: 2006-09-05 |Index: packit-1.0/src/main.c |=================================================================== |--- packit-1.0.orig/src/main.c |+++ packit-1.0/src/main.c -------------------------- patching file src/main.c Using Plan A... Hunk #1 succeeded at 197 (offset -17 lines). done Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Description: fix spelling errors in some files. |Author: Joao Eriberto Mota Filho |Last-Update: 2015-12-13 |Index: packit-1.0/man/packit.8.in |=================================================================== |--- packit-1.0.orig/man/packit.8.in |+++ packit-1.0/man/packit.8.in -------------------------- patching file man/packit.8.in Using Plan A... Hunk #1 succeeded at 665. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: packit-1.0/src/print_injection.c |=================================================================== |--- packit-1.0.orig/src/print_injection.c |+++ packit-1.0/src/print_injection.c -------------------------- patching file src/print_injection.c Using Plan A... Hunk #1 succeeded at 134. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: packit-1.0/src/usage.c |=================================================================== |--- packit-1.0.orig/src/usage.c |+++ packit-1.0/src/usage.c -------------------------- patching file src/usage.c Using Plan A... Hunk #1 succeeded at 107. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: packit-1.0/src/shape_ipv4_hdr.c |=================================================================== |--- packit-1.0.orig/src/shape_ipv4_hdr.c |+++ packit-1.0/src/shape_ipv4_hdr.c -------------------------- patching file src/shape_ipv4_hdr.c Using Plan A... Hunk #1 succeeded at 38. done Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Description: fixed a typo in option parsing code which made -D always | random when random -S was used. (Closes: #298799) |Author: Dennis Vshivkov |Last-Update: 2005-03-10 |Index: packit-1.0/src/main.c |=================================================================== |--- packit-1.0.orig/src/main.c |+++ packit-1.0/src/main.c -------------------------- patching file src/main.c Using Plan A... Hunk #1 succeeded at 458 (offset -15 lines). done Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |diff -Naur packit-1.0.orig/src/globals.h packit-1.0/src/globals.h |--- packit-1.0.orig/src/globals.h 2003-10-03 11:52:08.000000000 +0200 |+++ packit-1.0/src/globals.h 2008-12-14 22:18:49.000000000 +0100 -------------------------- patching file src/globals.h Using Plan A... Hunk #1 succeeded at 31. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff -Naur packit-1.0.orig/src/main.h packit-1.0/src/main.h |--- packit-1.0.orig/src/main.h 2003-09-27 16:22:52.000000000 +0200 |+++ packit-1.0/src/main.h 2008-12-14 22:19:18.000000000 +0100 -------------------------- patching file src/main.h Using Plan A... Hunk #1 succeeded at 26. done Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Description: update the upstream homepage in program help and manpage. |Author: Joao Eriberto Mota Filho |Last-Update: 2015-12-14 |Index: packit-1.0/man/packit.8.in |=================================================================== |--- packit-1.0.orig/man/packit.8.in |+++ packit-1.0/man/packit.8.in -------------------------- patching file man/packit.8.in Using Plan A... Hunk #1 succeeded at 954 (offset 8 lines). Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: packit-1.0/src/version.h.in |=================================================================== |--- packit-1.0.orig/src/version.h.in |+++ packit-1.0/src/version.h.in -------------------------- patching file src/version.h.in Using Plan A... Hunk #1 succeeded at 22. done beginning auto-configuration process for packit-1.0... checking for a BSD-compatible install... /usr/bin/ginstall -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets ${MAKE}... yes checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for gcc... yes checking build system type... x86_64-slackware-linux-gnu checking host system type... x86_64-slackware-linux-gnu checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for u_int8_t... yes checking for u_int16_t... yes checking for u_int32_t... yes checking for u_int64_t... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking net/bpf.h usability... no checking net/bpf.h presence... no checking for net/bpf.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking libnet.h usability... yes checking libnet.h presence... yes checking for libnet.h... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for printf... yes checking for fprintf... yes checking for snprintf... yes checking for sprintf... yes checking for strdup... yes checking for strrchr... yes checking for strstr... yes checking for strncasecmp... yes checking for strtol... yes checking for strncmp... yes checking for strncat... yes checking for memset... yes checking for malloc... yes checking for gethostbyname... yes checking for gettimeofday... yes checking for getuid... yes checking for select... yes checking for setitimer... yes checking for libnet_build_ipv4 in -lnet... yes checking for pcap_open_live in -lpcap... yes checking for pcap_setnonblock in -lpcap... yes checking for pcap_freecode in -lpcap... yes checking for bpf... no checking for a BSD-compatible install... /usr/bin/ginstall -c configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating man/Makefile config.status: creating man/packit.8 config.status: creating src/version.h config.status: creating config.h config.status: executing depfiles commands _ _ _ _ __ __ _ ___| | _(_) |_ | '_ \ / _` |/ __| |/ / | __| | |_) | (_| | (__| <| | |_ | .__/ \__,_|\___|_|\_\_|\__| |_| 1.0 has been configured with the following options: ----------------------------------------------- Host type : x86_64-slackware-linux-gnu Compiler : gcc Compiler flags : -O2 -fPIC -fcommon -Wall Linker flags : Libraries : -lpcap -lpcap -lpcap -lnet Binary : /usr/bin Manual pages : /usr/man/ Injection support : yes Capture support : yes Enable debugging : no ----------------------------------------------- cd . && /bin/sh /usr/src/slapt-src-x86_64/network/packit/packit-1.0/missing --run aclocal-1.6 /usr/src/slapt-src-x86_64/network/packit/packit-1.0/missing: line 46: aclocal-1.6: command not found WARNING: `aclocal-1.6' is missing on your system. You should only need it if you modified `acinclude.m4' or `configure.in'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. cd . && \ /bin/sh /usr/src/slapt-src-x86_64/network/packit/packit-1.0/missing --run automake-1.6 --foreign Makefile /usr/src/slapt-src-x86_64/network/packit/packit-1.0/missing: line 46: automake-1.6: command not found WARNING: `automake-1.6' is missing on your system. You should only need it if you modified `Makefile.am', `acinclude.m4' or `configure.in'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. cd . && /bin/sh /usr/src/slapt-src-x86_64/network/packit/packit-1.0/missing --run autoconf /bin/sh ./config.status --recheck running /bin/sh ./configure --prefix=/usr --libdir=/usr/lib64 --build=x86_64-slackware-linux --mandir=/usr/man CFLAGS=-O2 -fPIC -fcommon build_alias=x86_64-slackware-linux --no-create --no-recursion beginning auto-configuration process for packit-1.0... checking for a BSD-compatible install... /usr/bin/ginstall -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for gcc... yes checking build system type... x86_64-slackware-linux-gnu checking host system type... x86_64-slackware-linux-gnu checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for u_int8_t... yes checking for u_int16_t... yes checking for u_int32_t... yes checking for u_int64_t... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking pcap-bpf.h usability... yes checking pcap-bpf.h presence... yes checking for pcap-bpf.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking libnet.h usability... yes checking libnet.h presence... yes checking for libnet.h... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for printf... yes checking for fprintf... yes checking for snprintf... yes checking for sprintf... yes checking for strdup... yes checking for strrchr... yes checking for strstr... yes checking for strncasecmp... yes checking for strtol... yes checking for strncmp... yes checking for strncat... yes checking for memset... yes checking for malloc... yes checking for gethostbyname... yes checking for gettimeofday... yes checking for getuid... yes checking for select... yes checking for setitimer... yes checking for libnet_build_ipv4 in -lnet... yes checking for pcap_open_live in -lpcap... yes checking for pcap_setnonblock in -lpcap... yes checking for pcap_freecode in -lpcap... yes checking for bpf... no configure: creating ./config.status _ _ _ _ __ __ _ ___| | _(_) |_ | '_ \ / _` |/ __| |/ / | __| | |_) | (_| | (__| <| | |_ | .__/ \__,_|\___|_|\_\_|\__| |_| 1.0 has been configured with the following options: ----------------------------------------------- Host type : x86_64-slackware-linux-gnu Compiler : gcc Compiler flags : -O2 -fPIC -fcommon -Wall Linker flags : Libraries : -lpcap -lpcap -lpcap -lnet Binary : /usr/bin Manual pages : /usr/man/ Injection support : yes Capture support : yes Enable debugging : no ----------------------------------------------- cd . && /bin/sh ./config.status Makefile config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting cd . && /bin/sh /usr/src/slapt-src-x86_64/network/packit/packit-1.0/missing --run autoheader touch ./config.h.in cd . && /bin/sh ./config.status config.h config.status: creating config.h make all-recursive make[1]: Entering directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0' Making all in src make[2]: Entering directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0/src' cd .. && /bin/sh ./config.status src/Makefile depfiles config.status: creating src/Makefile config.status: WARNING: 'src/Makefile.in' seems to ignore the --datarootdir setting config.status: executing depfiles commands source='init.c' object='init.o' libtool=no \ depfile='.deps/init.Po' tmpdepfile='.deps/init.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'init.c' || echo './'`init.c init.c: In function ‘injection_struct_init’: init.c:34:20: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 34 | ahdr_o.s_paddr = IPV4_DEFAULT; | ^ init.c:35:20: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 35 | ahdr_o.s_eaddr = ETH_DEFAULT; | ^ init.c:36:20: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 36 | ahdr_o.r_paddr = IPV4_DEFAULT; | ^ init.c:37:20: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 37 | ahdr_o.r_eaddr = ETH_DEFAULT; | ^ source='define_defaults.c' object='define_defaults.o' libtool=no \ depfile='.deps/define_defaults.Po' tmpdepfile='.deps/define_defaults.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'define_defaults.c' || echo './'`define_defaults.c define_defaults.c: In function ‘define_injection_defaults’: define_defaults.c:34:14: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 34 | s_d_port = "0"; | ^ define_defaults.c:39:13: warning: array subscript 17 is above array bounds of ‘u_int8_t[17]’ {aka ‘unsigned char[17]’} [-Warray-bounds] 39 | hwaddr_p[17] = 0; | ~~~~~~~~^~~~ In file included from utils.h:27, from globals.h:42, from define_defaults.h:26, from define_defaults.c:23: inject_defs.h:177:10: note: while referencing ‘hwaddr_p’ 177 | u_int8_t hwaddr_p[17]; | ^~~~~~~~ source='error.c' object='error.o' libtool=no \ depfile='.deps/error.Po' tmpdepfile='.deps/error.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'error.c' || echo './'`error.c error.c: In function ‘fatal_error’: error.c:35:41: warning: pointer targets in passing argument 3 of ‘vsnprintf’ differ in signedness [-Wpointer-sign] 35 | vsnprintf(error_buf, ERRBUF_MAXLEN, err, va); | ^~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from error.h:26, from error.c:23: /usr/include/stdio.h:359:46: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 359 | const char *__restrict __format, __gnuc_va_list __arg) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ source='injection.c' object='injection.o' libtool=no \ depfile='.deps/injection.Po' tmpdepfile='.deps/injection.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'injection.c' || echo './'`injection.c injection.c: In function ‘injection_init’: injection.c:60:19: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness [-Wpointer-sign] 60 | if(strstr(s_d_port, "-")) | ^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/string.h:334:34: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern char *strstr (const char *__haystack, const char *__needle) | ~~~~~~~~~~~~^~~~~~~~~~ injection.c:65:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 65 | fatal_error("Invalid port range: %s", s_d_port); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:70:34: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign] 70 | d_port = (u_int16_t)atoi(s_d_port); | ^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:473, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/stdlib.h:361:1: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 361 | __NTH (atoi (const char *__nptr)) | ^~~~~ injection.c:73:5: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 73 | if(!device && (device = pcap_lookupdev(error_buf)) == NULL) | ^~ In file included from globals.h:32, from injection.h:26, from injection.c:23: /usr/include/pcap/pcap.h:394:18: note: declared here 394 | PCAP_API char *pcap_lookupdev(char *) | ^~~~~~~~~~~~~~ injection.c:73:27: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 73 | if(!device && (device = pcap_lookupdev(error_buf)) == NULL) | ^ injection.c:74:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 74 | fatal_error("Device lookup failure: Are you root?"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:76:15: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness [-Wpointer-sign] 76 | if(strstr(device, "any")) strcpy(device, "lo"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/string.h:334:34: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern char *strstr (const char *__haystack, const char *__needle) | ~~~~~~~~~~~~^~~~~~~~~~ injection.c:76:38: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] 76 | if(strstr(device, "any")) strcpy(device, "lo"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/string.h:125:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 125 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ injection.c:79:58: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘u_int64_t’ {aka ‘long unsigned int’} [-Wformat=] 79 | fprintf(stdout, "Mode: Trace Route [Hop Max: %llu] using device: %s\n", cnt, device); | ~~~^ ~~~ | | | | long long unsigned int u_int64_t {aka long unsigned int} | %lu injection.c:83:40: warning: pointer targets in passing argument 2 of ‘libnet_init’ differ in signedness [-Wpointer-sign] 83 | if((pkt_d = libnet_init(init_type, device, error_buf)) == NULL) | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/libnet/libnet-functions.h:64:45: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 64 | libnet_init(int injection_type, const char *device, char *err_buf); | ~~~~~~~~~~~~^~~~~~ injection.c:84:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 84 | fatal_error("Unable to initialize packet injection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c: In function ‘with_response’: injection.c:124:30: warning: pointer targets in passing argument 1 of ‘pcap_open_live’ differ in signedness [-Wpointer-sign] 124 | if((pkt = pcap_open_live(device, 1500, 1, READ_TIMEOUT, error_buf)) == NULL) | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:32, from injection.h:26, from injection.c:23: /usr/include/pcap/pcap.h:515:33: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 515 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); | ^~~~~~~~~~~~ injection.c:125:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 125 | fatal_error("Unable to open device: %s", error_buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:127:23: warning: pointer targets in passing argument 1 of ‘pcap_lookupnet’ differ in signedness [-Wpointer-sign] 127 | if(pcap_lookupnet(device, &localnet, &netmask, error_buf) < 0) | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:32, from injection.h:26, from injection.c:23: /usr/include/pcap/pcap.h:398:32: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 398 | PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); | ^~~~~~~~~~~~ injection.c:145:27: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 145 | snprintf(ufilter, 1024, | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/stdio.h:354:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 354 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ injection.c:158:27: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 158 | snprintf(ufilter, 1024, | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/stdio.h:354:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 354 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ injection.c:171:27: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 171 | snprintf(ufilter, 1024, | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/stdio.h:354:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 354 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ injection.c:191:36: warning: pointer targets in passing argument 3 of ‘pcap_compile’ differ in signedness [-Wpointer-sign] 191 | if(pcap_compile(pkt, &bpf, filter, 0, netmask) < 0) | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:32, from injection.h:26, from injection.c:23: /usr/include/pcap/pcap.h:613:62: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 613 | PCAP_API int pcap_compile(pcap_t *, struct bpf_program *, const char *, int, | ^~~~~~~~~~~~ injection.c:195:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 195 | fatal_error("Unable to set packet filters: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:202:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 202 | fatal_error("Unable to determine datalink type: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:210:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 210 | fatal_error("Unable to change to blocking mode: %s", error_buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:217:62: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 217 | print_separator(1, 2, (p_mode == M_TRACE) ? "HOP %d" : "SND %d", inj_cnt); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | | | char * In file included from globals.h:42, from injection.h:26, from injection.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ injection.c:221:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 221 | fatal_error("Unable to inject packet"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:244:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 244 | fatal_error("Unable to inject packet"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:269:69: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 269 | print_separator((p_mode == M_TRACE) ? 0 : 1, 1, "No Response From Peer"); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:42, from injection.h:26, from injection.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ injection.c: In function ‘without_response’: injection.c:327:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 327 | fatal_error("Unable to inject packet"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:331:35: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 331 | print_separator(1, 2, "SND %ld", inj_cnt); | ^~~~~~~~~ | | | char * In file included from globals.h:42, from injection.h:26, from injection.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ injection.c:348:62: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘u_int64_t’ {aka ‘long unsigned int’} [-Wformat=] 348 | fprintf(stderr, "\nWriting packet(s) (%llu): ", cnt); | ~~~^ ~~~ | | | | | u_int64_t {aka long unsigned int} | long long unsigned int | %lu source='capture.c' object='capture.o' libtool=no \ depfile='.deps/capture.Po' tmpdepfile='.deps/capture.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'capture.c' || echo './'`capture.c capture.c: In function ‘capture_init’: capture.c:54:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 54 | fatal_error("Unable to open file: %s", error_buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ capture.c:60:13: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 60 | if((device = pcap_lookupdev(error_buf)) == NULL) | ^~ In file included from globals.h:32, from capture.h:26, from capture.c:23: /usr/include/pcap/pcap.h:394:18: note: declared here 394 | PCAP_API char *pcap_lookupdev(char *) | ^~~~~~~~~~~~~~ capture.c:60:24: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 60 | if((device = pcap_lookupdev(error_buf)) == NULL) | ^ capture.c:61:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 61 | fatal_error("%s: Check device permissions", error_buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ capture.c:64:34: warning: pointer targets in passing argument 1 of ‘pcap_open_live’ differ in signedness [-Wpointer-sign] 64 | if((pkt = pcap_open_live(device, snap_len, 1, READ_TIMEOUT, error_buf)) == NULL) | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:32, from capture.h:26, from capture.c:23: /usr/include/pcap/pcap.h:515:33: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 515 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); | ^~~~~~~~~~~~ capture.c:65:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 65 | fatal_error("Unable to open device: %s", error_buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ capture.c:75:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 75 | fatal_error("Unable to initialize packet capture: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ capture.c:80:23: warning: pointer targets in passing argument 1 of ‘pcap_lookupnet’ differ in signedness [-Wpointer-sign] 80 | if(pcap_lookupnet(device, &localnet, &netmask, error_buf) < 0) | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:32, from capture.h:26, from capture.c:23: /usr/include/pcap/pcap.h:398:32: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 398 | PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); | ^~~~~~~~~~~~ capture.c:83:32: warning: pointer targets in passing argument 3 of ‘pcap_compile’ differ in signedness [-Wpointer-sign] 83 | if(pcap_compile(pkt, &bpf, filter, 0, netmask) < 0) | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:32, from capture.h:26, from capture.c:23: /usr/include/pcap/pcap.h:613:62: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 613 | PCAP_API int pcap_compile(pcap_t *, struct bpf_program *, const char *, int, | ^~~~~~~~~~~~ capture.c:87:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 87 | fatal_error("Unable to set packet filters: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ capture.c:94:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 94 | fatal_error("Unable to determine datalink type: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ capture.c:114:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 114 | fatal_error("Unable to initialize pcap_loop: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ source='shape_arp_hdr.c' object='shape_arp_hdr.o' libtool=no \ depfile='.deps/shape_arp_hdr.Po' tmpdepfile='.deps/shape_arp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'shape_arp_hdr.c' || echo './'`shape_arp_hdr.c shape_arp_hdr.c: In function ‘shape_arp_hdr’: shape_arp_hdr.c:61:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 61 | fatal_error("Unable to retrieve local IP address: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_arp_hdr.c:63:32: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 63 | ahdr_o.s_paddr = libnet_addr2name4(s_paddr, 0); | ^ shape_arp_hdr.c:67:32: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 67 | ahdr_o.s_paddr = IPV4_DEFAULT; | ^ shape_arp_hdr.c:72:50: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] 72 | if((s_paddr = libnet_name2addr4(pkt_d, ahdr_o.s_paddr, 0)) == -1) | ~~~~~~^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ shape_arp_hdr.c:73:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 73 | fatal_error("Invalid sender protocol address: %s", ahdr_o.s_paddr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_arp_hdr.c:81:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 81 | fatal_error("Unable to determine ethernet address: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_arp_hdr.c:89:32: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 89 | ahdr_o.s_eaddr = ETH_DEFAULT; | ^ shape_arp_hdr.c:94:35: warning: pointer targets in passing argument 1 of ‘format_ethernet_addr’ differ in signedness [-Wpointer-sign] 94 | if(format_ethernet_addr(ahdr_o.s_eaddr, s_neaddr) == 0) | ~~~~~~^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:42, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: utils.h:43:32: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 43 | u_int32_t format_ethernet_addr(char *, u_int8_t[]); | ^~~~~~ shape_arp_hdr.c:95:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 95 | fatal_error("Invalid sender ethernet address"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_arp_hdr.c:97:20: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 97 | snprintf(ahdr_o.shw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", | ~~~~~~^~~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /usr/include/stdio.h:354:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 354 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ shape_arp_hdr.c:106:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 106 | fatal_error("Unable to retrieve local IP address: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_arp_hdr.c:108:32: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 108 | ahdr_o.r_paddr = libnet_addr2name4(r_paddr, 0); | ^ shape_arp_hdr.c:112:32: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 112 | ahdr_o.r_paddr = IPV4_DEFAULT; | ^ shape_arp_hdr.c:117:50: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] 117 | if((r_paddr = libnet_name2addr4(pkt_d, ahdr_o.r_paddr, 0)) == -1) | ~~~~~~^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ shape_arp_hdr.c:118:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 118 | fatal_error("Invalid receiver protocol address: %s", ahdr_o.r_paddr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_arp_hdr.c:126:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 126 | fatal_error("Unable to determine ethernet address: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_arp_hdr.c:134:32: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 134 | ahdr_o.r_eaddr = ETH_DEFAULT; | ^ shape_arp_hdr.c:139:35: warning: pointer targets in passing argument 1 of ‘format_ethernet_addr’ differ in signedness [-Wpointer-sign] 139 | if(format_ethernet_addr(ahdr_o.r_eaddr, r_neaddr) == 0) | ~~~~~~^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:42, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: utils.h:43:32: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 43 | u_int32_t format_ethernet_addr(char *, u_int8_t[]); | ^~~~~~ shape_arp_hdr.c:140:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 140 | fatal_error("Invalid receiver ethernet address"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_arp_hdr.c:142:20: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 142 | snprintf(ahdr_o.rhw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", | ~~~~~~^~~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /usr/include/stdio.h:354:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 354 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ shape_arp_hdr.c:160:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 160 | fatal_error("Unable to build ARP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ source='shape_tcp_hdr.c' object='shape_tcp_hdr.o' libtool=no \ depfile='.deps/shape_tcp_hdr.Po' tmpdepfile='.deps/shape_tcp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'shape_tcp_hdr.c' || echo './'`shape_tcp_hdr.c shape_tcp_hdr.c: In function ‘shape_tcp_hdr’: shape_tcp_hdr.c:51:30: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 51 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_tcp_hdr.c:70:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 70 | fatal_error("Unable to build TCP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ source='shape_udp_hdr.c' object='shape_udp_hdr.o' libtool=no \ depfile='.deps/shape_udp_hdr.Po' tmpdepfile='.deps/shape_udp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'shape_udp_hdr.c' || echo './'`shape_udp_hdr.c shape_udp_hdr.c: In function ‘shape_udp_hdr’: shape_udp_hdr.c:44:30: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 44 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_udp_hdr.c:58:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 58 | fatal_error("Unable to build UDP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ source='shape_icmpv4_hdr.c' object='shape_icmpv4_hdr.o' libtool=no \ depfile='.deps/shape_icmpv4_hdr.Po' tmpdepfile='.deps/shape_icmpv4_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'shape_icmpv4_hdr.c' || echo './'`shape_icmpv4_hdr.c shape_icmpv4_hdr.c: In function ‘shape_icmpv4_hdr’: shape_icmpv4_hdr.c:58:38: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 58 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_icmpv4_hdr.c:73:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 73 | fatal_error("Unable to build ICMPv4 echo header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:104:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 104 | fatal_error("No original source IP address defined"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:106:61: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] 106 | if((ihn_saddr = libnet_name2addr4(pkt_d, i4hdr_o.orig_s_addr, 1)) == -1) | ~~~~~~~^~~~~~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ shape_icmpv4_hdr.c:107:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 107 | fatal_error("Invalid original source IP address: %s", i4hdr_o.orig_s_addr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:110:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 110 | fatal_error("No original destination IP address defined"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:112:61: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] 112 | if((ihn_daddr = libnet_name2addr4(pkt_d, i4hdr_o.orig_d_addr, 1)) == -1) | ~~~~~~~^~~~~~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ shape_icmpv4_hdr.c:113:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 113 | fatal_error("Invalid original destination IP address: %s", i4hdr_o.orig_d_addr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:137:42: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 137 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_icmpv4_hdr.c:156:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 156 | fatal_error("Unable to build original IP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:168:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 168 | fatal_error("Unable to build ICMPv4 unreach header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:182:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 182 | fatal_error("No gateway IP address defined"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:184:62: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] 184 | if((ihn_gw = libnet_name2addr4(pkt_d, i4hdr_o.gw, 1)) == -1) | ~~~~~~~^~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ shape_icmpv4_hdr.c:185:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 185 | fatal_error("Invalid gateway IP address: %s", i4hdr_o.gw); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:192:42: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 192 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_icmpv4_hdr.c:211:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 211 | fatal_error("Unable to build original IP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:224:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 224 | fatal_error("Unable to build ICMPv4 redirect header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:239:42: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 239 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_icmpv4_hdr.c:258:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 258 | fatal_error("Unable to build original IP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:270:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 270 | fatal_error("Unable to build ICMPv4 timeexceed header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:292:38: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 292 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_icmpv4_hdr.c:310:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 310 | fatal_error("Unable to build ICMPv4 timestamp header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:327:64: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] 327 | if((ihn_mask = libnet_name2addr4(pkt_d, i4hdr_o.mask, 1)) == -1) | ~~~~~~~^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ shape_icmpv4_hdr.c:328:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 328 | fatal_error("Invalid mask address: %s", i4hdr_o.mask); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:335:38: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 335 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_icmpv4_hdr.c:351:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 351 | fatal_error("Unable to build ICMPv4 mask header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ source='shape_ipv4_hdr.c' object='shape_ipv4_hdr.o' libtool=no \ depfile='.deps/shape_ipv4_hdr.Po' tmpdepfile='.deps/shape_ipv4_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'shape_ipv4_hdr.c' || echo './'`shape_ipv4_hdr.c shape_ipv4_hdr.c: In function ‘shape_ipv4_hdr’: shape_ipv4_hdr.c:41:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 41 | fatal_error("Unable to retrieve local IP address: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_ipv4_hdr.c:43:25: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 43 | ip4hdr_o.s_addr = libnet_addr2name4(ip4hdr_o.n_saddr, 1); | ^ shape_ipv4_hdr.c:46:65: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] 46 | if((ip4hdr_o.n_saddr = libnet_name2addr4(pkt_d, ip4hdr_o.s_addr, 1)) == -1) | ~~~~~~~~^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ shape_ipv4_hdr.c:47:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 47 | fatal_error("Invalid source IP address: %s", ip4hdr_o.s_addr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_ipv4_hdr.c:50:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 50 | fatal_error("No destination IP address defined"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_ipv4_hdr.c:52:61: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] 52 | if((ip4hdr_o.n_daddr = libnet_name2addr4(pkt_d, ip4hdr_o.d_addr, 1)) == -1) | ~~~~~~~~^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ shape_ipv4_hdr.c:53:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 53 | fatal_error("Invalid destination IP address: %s", ip4hdr_o.d_addr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_ipv4_hdr.c:68:30: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 68 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_ipv4_hdr.c:89:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 89 | fatal_error("Unable to build IP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ source='shape_ethernet_hdr.c' object='shape_ethernet_hdr.o' libtool=no \ depfile='.deps/shape_ethernet_hdr.Po' tmpdepfile='.deps/shape_ethernet_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'shape_ethernet_hdr.c' || echo './'`shape_ethernet_hdr.c shape_ethernet_hdr.c: In function ‘shape_ethernet_hdr’: shape_ethernet_hdr.c:50:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 50 | fatal_error("Unable to determine ethernet address: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_ethernet_hdr.c:56:39: warning: pointer targets in passing argument 1 of ‘format_ethernet_addr’ differ in signedness [-Wpointer-sign] 56 | if(format_ethernet_addr(ehdr_o.s_addr, us_addr) == 0) | ~~~~~~^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:42, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: utils.h:43:32: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 43 | u_int32_t format_ethernet_addr(char *, u_int8_t[]); | ^~~~~~ shape_ethernet_hdr.c:57:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 57 | fatal_error("Invalid source ethernet address"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_ethernet_hdr.c:59:20: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 59 | snprintf(ehdr_o.shw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", | ~~~~~~^~~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: /usr/include/stdio.h:354:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 354 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ shape_ethernet_hdr.c:63:23: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 63 | ehdr_o.d_addr = ETH_BROADCAST; | ^ shape_ethernet_hdr.c:68:23: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 68 | ehdr_o.d_addr = ETH_DEFAULT; | ^ shape_ethernet_hdr.c:71:35: warning: pointer targets in passing argument 1 of ‘format_ethernet_addr’ differ in signedness [-Wpointer-sign] 71 | if(format_ethernet_addr(ehdr_o.d_addr, ud_addr) == 0) | ~~~~~~^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:42, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: utils.h:43:32: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 43 | u_int32_t format_ethernet_addr(char *, u_int8_t[]); | ^~~~~~ shape_ethernet_hdr.c:72:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 72 | fatal_error("Invalid destination ethernet address"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_ethernet_hdr.c:74:20: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 74 | snprintf(ehdr_o.dhw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", | ~~~~~~^~~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: /usr/include/stdio.h:354:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 354 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ shape_ethernet_hdr.c:86:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 86 | fatal_error("Unable to build ethernet header"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_ethernet_hdr.c: In function ‘shape_ethernet_hdr_auto’: shape_ethernet_hdr.c:106:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 106 | fatal_error("Unable to auto-build ethernet header"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ source='shape_packet.c' object='shape_packet.o' libtool=no \ depfile='.deps/shape_packet.Po' tmpdepfile='.deps/shape_packet.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'shape_packet.c' || echo './'`shape_packet.c source='utils.c' object='utils.o' libtool=no \ depfile='.deps/utils.Po' tmpdepfile='.deps/utils.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'utils.c' || echo './'`utils.c utils.c: In function ‘retrieve_rand_ipv4_addr’: utils.c:95:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 95 | sprintf(ip, "%s.%d", ip, oct); | ^~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:97:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 97 | sprintf(ip, "%d", oct); | ^~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c: In function ‘retrieve_rand_ethernet_addr’: utils.c:117:20: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 117 | sprintf(eaddr, "%s:%0x", eaddr, oct); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:119:20: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 119 | sprintf(eaddr, "%0x", oct); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c: In function ‘print_separator’: utils.c:140:15: warning: pointer targets in passing argument 1 of ‘vsnprintf’ differ in signedness [-Wpointer-sign] 140 | vsnprintf(msg, 256, msgp, va); | ^~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:358:40: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 358 | extern int vsnprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ utils.c:140:25: warning: pointer targets in passing argument 3 of ‘vsnprintf’ differ in signedness [-Wpointer-sign] 140 | vsnprintf(msg, 256, msgp, va); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:359:46: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 359 | const char *__restrict __format, __gnuc_va_list __arg) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ utils.c:142:22: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 142 | msg_len = strlen(msg); | ^~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ utils.c: In function ‘retrieve_icmp_code’: utils.c:174:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 174 | sprintf(icmp_c, "Network"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:178:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 178 | sprintf(icmp_c, "Host"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:182:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 182 | sprintf(icmp_c, "Protocol"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:186:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 186 | sprintf(icmp_c, "Port"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:190:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 190 | sprintf(icmp_c, "Need Fragment"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:194:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 194 | sprintf(icmp_c, "Source Fail"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:198:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 198 | sprintf(icmp_c, "Network Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:202:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 202 | sprintf(icmp_c, "Host Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:206:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 206 | sprintf(icmp_c, "Isolated"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:210:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 210 | sprintf(icmp_c, "Network Prohibited"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:214:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 214 | sprintf(icmp_c, "Host Prohibited"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:218:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 218 | sprintf(icmp_c, "ToS Network"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:222:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 222 | sprintf(icmp_c, "ToS Host"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:226:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 226 | sprintf(icmp_c, "Filter Prohibited"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:230:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 230 | sprintf(icmp_c, "Host Precedence"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:234:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 234 | sprintf(icmp_c, "Precedence Cutoff"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:238:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 238 | sprintf(icmp_c, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:248:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 248 | sprintf(icmp_c, "Network"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:252:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 252 | sprintf(icmp_c, "Host"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:256:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 256 | sprintf(icmp_c, "ToS Net"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:260:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 260 | sprintf(icmp_c, "ToS Host"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:264:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 264 | sprintf(icmp_c, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:274:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 274 | sprintf(icmp_c, "In Transit"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:278:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 278 | sprintf(icmp_c, "Reassembly"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:282:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 282 | sprintf(icmp_c, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:292:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 292 | sprintf(icmp_c, "Missing Option"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:296:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 296 | sprintf(icmp_c, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:302:17: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 302 | sprintf(icmp_c, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c: In function ‘retrieve_icmp_type’: utils.c:323:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 323 | sprintf(icmp_t, "Echo Reply"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:327:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 327 | sprintf(icmp_t, "Unreachable"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:331:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 331 | sprintf(icmp_t, "Source Quench"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:335:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 335 | sprintf(icmp_t, "Redirect"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:339:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 339 | sprintf(icmp_t, "Echo Request"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:343:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 343 | sprintf(icmp_t, "Time Exceeded"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:347:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 347 | sprintf(icmp_t, "Param Problem"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:351:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 351 | sprintf(icmp_t, "Timestamp"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:355:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 355 | sprintf(icmp_t, "Timestamp Reply"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:359:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 359 | sprintf(icmp_t, "Info Request"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:363:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 363 | sprintf(icmp_t, "Info Reply"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:367:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 367 | sprintf(icmp_t, "Router Advertise"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:371:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 371 | sprintf(icmp_t, "Router Selection"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:375:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 375 | sprintf(icmp_t, "Address Mask Request"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:379:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 379 | sprintf(icmp_t, "Address Mask Reply"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:383:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 383 | sprintf(icmp_t, "Traceroute"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:387:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 387 | sprintf(icmp_t, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c: In function ‘retrieve_arp_type’: utils.c:408:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 408 | sprintf(arp_t, "Request"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:412:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 412 | sprintf(arp_t, "Reply"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:416:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 416 | sprintf(arp_t, "Reverse Request"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:420:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 420 | sprintf(arp_t, "Reverse Reply"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:424:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 424 | sprintf(arp_t, "Inverse Request"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:428:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 428 | sprintf(arp_t, "Inverse Reply"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:432:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 432 | sprintf(arp_t, "Unknown"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c: In function ‘retrieve_arp_hw_type’: utils.c:457:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 457 | sprintf(hw_t, "Net/ROM Pseudo"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:461:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 461 | sprintf(hw_t, "Ethernet 10/100"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:465:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 465 | sprintf(hw_t, "Experimental Ethernet"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:469:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 469 | sprintf(hw_t, "AX.25 Level 2"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:473:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 473 | sprintf(hw_t, "ProNet Token Ring"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:477:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 477 | sprintf(hw_t, "IEEE 802.2 Ethernet"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:481:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 481 | sprintf(hw_t, "ARCNet"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:485:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 485 | sprintf(hw_t, "AppleTalk"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:489:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 489 | sprintf(hw_t, "Lanstar"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:493:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 493 | sprintf(hw_t, "Frame Relay DLCI"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:497:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 497 | sprintf(hw_t, "ATM"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:501:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 501 | sprintf(hw_t, "Metricom STRIP"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:505:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 505 | sprintf(hw_t, "IPsec Tunnel"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c: At top level: utils.c:547:45: warning: argument 2 of type ‘u_int8_t[6]’ {aka ‘unsigned char[6]’} with mismatched bound [-Warray-parameter=] 547 | format_ethernet_addr(char *ethstr, u_int8_t u_eaddr[6]) | ~~~~~~~~~^~~~~~~~~~ In file included from utils.c:23: utils.h:43:40: note: previously declared as ‘u_int8_t[]’ {aka ‘unsigned char[]’} 43 | u_int32_t format_ethernet_addr(char *, u_int8_t[]); | ^~~~~~~~~~ utils.c: In function ‘format_ethernet_addr’: utils.c:551:30: warning: pointer targets in initialization of ‘u_int8_t *’ {aka ‘unsigned char *’} from ‘char *’ differ in signedness [-Wpointer-sign] 551 | u_int8_t *eptr, *delim = ":"; | ^~~ utils.c:559:17: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign] 559 | strncpy(o_ethstr, ethstr, 18); | ^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:128:40: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 128 | extern char *strncpy (char *__restrict __dest, | ~~~~~~~~~~~~~~~~~^~~~~~ utils.c:566:23: warning: pointer targets in passing argument 1 of ‘strtok’ differ in signedness [-Wpointer-sign] 566 | for(eptr = strtok(o_ethstr, delim); | ^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~^~~ utils.c:566:33: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] 566 | for(eptr = strtok(o_ethstr, delim); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:67: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ utils.c:566:14: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 566 | for(eptr = strtok(o_ethstr, delim); | ^ utils.c:568:30: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] 568 | eptr = strtok(NULL, delim)) | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:67: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ utils.c:568:15: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 568 | eptr = strtok(NULL, delim)) | ^ utils.c:570:29: warning: pointer targets in passing argument 1 of ‘strtol’ differ in signedness [-Wpointer-sign] 570 | if((base16 = strtol(eptr, 0, 16)) > 0xff) | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:67, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdlib.h:176:48: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 176 | extern long int strtol (const char *__restrict __nptr, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ utils.c:580:12: warning: pointer targets in assignment from ‘u_int8_t *’ {aka ‘unsigned char *’} to ‘char *’ differ in signedness [-Wpointer-sign] 580 | ethstr = o_ethstr; | ^ utils.c: In function ‘parse_port_range’: utils.c:588:45: warning: pointer targets in initialization of ‘u_int8_t *’ {aka ‘unsigned char *’} from ‘char *’ differ in signedness [-Wpointer-sign] 588 | u_int8_t o_rangestr[11], *ptr, *delim = "-"; | ^~~ utils.c:597:17: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign] 597 | strncpy(o_rangestr, rangestr, 11); | ^~~~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:128:40: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 128 | extern char *strncpy (char *__restrict __dest, | ~~~~~~~~~~~~~~~~~^~~~~~ utils.c:597:29: warning: pointer targets in passing argument 2 of ‘strncpy’ differ in signedness [-Wpointer-sign] 597 | strncpy(o_rangestr, rangestr, 11); | ^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:129:46: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 129 | const char *__restrict __src, size_t __n) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ utils.c:599:29: warning: pointer targets in passing argument 1 of ‘strtok’ differ in signedness [-Wpointer-sign] 599 | for(i = 0, ptr = strtok(o_rangestr, delim); | ^~~~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~^~~ utils.c:599:41: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] 599 | for(i = 0, ptr = strtok(o_rangestr, delim); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:67: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ utils.c:599:20: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 599 | for(i = 0, ptr = strtok(o_rangestr, delim); | ^ utils.c:601:28: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] 601 | ptr = strtok(NULL, delim)) | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:67: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ utils.c:601:13: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 601 | ptr = strtok(NULL, delim)) | ^ utils.c:603:31: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign] 603 | spread[i] = (int)atoi(ptr); | ^~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:473, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdlib.h:361:1: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 361 | __NTH (atoi (const char *__nptr)) | ^~~~~ utils.c: In function ‘generate_padding’: utils.c:645:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 645 | sprintf(string, "%c", c); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:647:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 647 | sprintf(string, "%s%c", string, c); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c: In function ‘format_hex_payload’: utils.c:659:23: warning: pointer targets in initialization of ‘u_int8_t *’ {aka ‘unsigned char *’} from ‘char *’ differ in signedness [-Wpointer-sign] 659 | u_int8_t *delim = " "; | ^~~ utils.c:668:13: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign] 668 | strncpy(pl, string, 65535); | ^~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:128:40: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 128 | extern char *strncpy (char *__restrict __dest, | ~~~~~~~~~~~~~~~~~^~~~~~ utils.c:668:17: warning: pointer targets in passing argument 2 of ‘strncpy’ differ in signedness [-Wpointer-sign] 668 | strncpy(pl, string, 65535); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:129:46: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 129 | const char *__restrict __src, size_t __n) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ utils.c:671:30: warning: argument to ‘sizeof’ in ‘memset’ call is the same pointer type ‘u_int8_t *’ {aka ‘unsigned char *’} as the destination; expected ‘u_int8_t’ {aka ‘unsigned char’} or an explicit length [-Wsizeof-pointer-memaccess] 671 | memset(string, 0, sizeof(u_int8_t *)); | ^~~~~~~~ utils.c:677:22: warning: pointer targets in passing argument 1 of ‘strtok’ differ in signedness [-Wpointer-sign] 677 | for(i = strtok(pl+3, delim); | ~~^~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~^~~ utils.c:677:26: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] 677 | for(i = strtok(pl+3, delim); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:67: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ utils.c:677:11: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 677 | for(i = strtok(pl+3, delim); | ^ utils.c:679:26: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] 679 | i = strtok(NULL, delim)) | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:67: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ utils.c:679:11: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 679 | i = strtok(NULL, delim)) | ^ utils.c:681:24: warning: pointer targets in passing argument 1 of ‘strtol’ differ in signedness [-Wpointer-sign] 681 | if((c = strtol(i, 0, 16)) > 0xff) | ^ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:67, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdlib.h:176:48: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 176 | extern long int strtol (const char *__restrict __nptr, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ utils.c:684:17: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 684 | sprintf(tchar,"%c",(u_int8_t)c); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:685:23: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign] 685 | strncpy(string+len,tchar,2); | ~~~~~~^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:128:40: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 128 | extern char *strncpy (char *__restrict __dest, | ~~~~~~~~~~~~~~~~~^~~~~~ utils.c:685:28: warning: pointer targets in passing argument 2 of ‘strncpy’ differ in signedness [-Wpointer-sign] 685 | strncpy(string+len,tchar,2); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:129:46: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 129 | const char *__restrict __src, size_t __n) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ utils.c: In function ‘retrieve_rand_ipv4_addr’: utils.c:95:13: warning: ‘sprintf’ argument 3 overlaps destination object ‘ip’ [-Wrestrict] 95 | sprintf(ip, "%s.%d", ip, oct); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:74:35: note: destination object referenced by ‘restrict’-qualified argument 1 was declared here 74 | retrieve_rand_ipv4_addr(u_int8_t *ip) | ~~~~~~~~~~^~ utils.c: In function ‘retrieve_rand_ethernet_addr’: utils.c:117:12: warning: ‘sprintf’ argument 3 overlaps destination object ‘eaddr’ [-Wrestrict] 117 | sprintf(eaddr, "%s:%0x", eaddr, oct); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:104:39: note: destination object referenced by ‘restrict’-qualified argument 1 was declared here 104 | retrieve_rand_ethernet_addr(u_int8_t *eaddr) | ~~~~~~~~~~^~~~~ utils.c: In function ‘format_ethernet_addr’: utils.c:559:9: warning: ‘strncpy’ specified bound 18 equals destination size [-Wstringop-truncation] 559 | strncpy(o_ethstr, ethstr, 18); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c: In function ‘parse_port_range’: utils.c:597:9: warning: ‘strncpy’ specified bound 11 equals destination size [-Wstringop-truncation] 597 | strncpy(o_rangestr, rangestr, 11); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:612:31: warning: ‘spread’ may be used uninitialized [-Wmaybe-uninitialized] 612 | range = spread[1] - spread[0] + 1; | ~~~~~~^~~ utils.c:590:9: note: ‘spread’ declared here 590 | int spread[10]; | ^~~~~~ utils.c: In function ‘generate_padding’: utils.c:647:13: warning: ‘sprintf’ argument 3 overlaps destination object ‘string’ [-Wrestrict] 647 | sprintf(string, "%s%c", string, c); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source='stats.c' object='stats.o' libtool=no \ depfile='.deps/stats.Po' tmpdepfile='.deps/stats.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'stats.c' || echo './'`stats.c stats.c: In function ‘injection_stats’: stats.c:39:31: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 39 | print_separator(1, 1, "Trace Route Statistics"); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:42, from stats.h:26, from stats.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ stats.c:41:67: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 41 | print_separator((p_mode == M_INJECT_RESPONSE) ? 1 : 2, 1, "Packet Injection Statistics"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:42, from stats.h:26, from stats.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ stats.c:49:39: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] 49 | fprintf(stdout, "Injected: %llu Packets/Sec: %llu.%llu Bytes/Sec: %llu.%llu ", | ~~~^ | | | long long unsigned int | %lu 50 | (u_int64_t)ln_stats.packets_sent, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:49:58: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=] 49 | fprintf(stdout, "Injected: %llu Packets/Sec: %llu.%llu Bytes/Sec: %llu.%llu ", | ~~~^ | | | long long unsigned int | %lu 50 | (u_int64_t)ln_stats.packets_sent, 51 | (u_int64_t)ln_stats.packets_sent / tm_diff, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:49:63: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=] 49 | fprintf(stdout, "Injected: %llu Packets/Sec: %llu.%llu Bytes/Sec: %llu.%llu ", | ~~~^ | | | long long unsigned int | %lu ...... 52 | (u_int64_t)ln_stats.packets_sent % tm_diff, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:49:80: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘long unsigned int’ [-Wformat=] 49 | fprintf(stdout, "Injected: %llu Packets/Sec: %llu.%llu Bytes/Sec: %llu.%llu ", | ~~~^ | | | long long unsigned int | %lu ...... 53 | (u_int64_t)ln_stats.bytes_written / tm_diff, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:49:85: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 7 has type ‘long unsigned int’ [-Wformat=] 49 | fprintf(stdout, "Injected: %llu Packets/Sec: %llu.%llu Bytes/Sec: %llu.%llu ", | ~~~^ | | | long long unsigned int | %lu ...... 54 | (u_int64_t)ln_stats.bytes_written % tm_diff); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:58:39: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] 58 | fprintf(stdout, "Injected: %llu Received: %llu Loss: %llu.%llu%% Bytes Written: %llu ", | ~~~^ | | | long long unsigned int | %lu 59 | (u_int64_t)ln_stats.packets_sent, cap_cnt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:58:55: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘u_int64_t’ {aka ‘long unsigned int’} [-Wformat=] 58 | fprintf(stdout, "Injected: %llu Received: %llu Loss: %llu.%llu%% Bytes Written: %llu ", | ~~~^ | | | long long unsigned int | %lu 59 | (u_int64_t)ln_stats.packets_sent, cap_cnt, | ~~~~~~~ | | | u_int64_t {aka long unsigned int} stats.c:58:67: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=] 58 | fprintf(stdout, "Injected: %llu Received: %llu Loss: %llu.%llu%% Bytes Written: %llu ", | ~~~^ | | | long long unsigned int | %lu 59 | (u_int64_t)ln_stats.packets_sent, cap_cnt, 60 | (u_int64_t)(ln_stats.packets_sent == 0) ? 0 : (100 - (cap_cnt * 100) / ln_stats.packets_sent), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:58:72: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘long unsigned int’ [-Wformat=] 58 | fprintf(stdout, "Injected: %llu Received: %llu Loss: %llu.%llu%% Bytes Written: %llu ", | ~~~^ | | | long long unsigned int | %lu ...... 61 | (u_int64_t)(cap_cnt * 100) % ln_stats.packets_sent, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:58:95: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 7 has type ‘long unsigned int’ [-Wformat=] 58 | fprintf(stdout, "Injected: %llu Received: %llu Loss: %llu.%llu%% Bytes Written: %llu ", | ~~~^ | | | long long unsigned int | %lu ...... 62 | (u_int64_t)ln_stats.bytes_written); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:66:40: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘u_int64_t’ {aka ‘long unsigned int’} [-Wformat=] 66 | fprintf(stdout, "Hop Count: %llu Responses: %llu Bytes Written: %llu ", | ~~~^ | | | long long unsigned int | %lu 67 | inj_cnt, cap_cnt, | ~~~~~~~ | | | u_int64_t {aka long unsigned int} stats.c:66:57: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘u_int64_t’ {aka ‘long unsigned int’} [-Wformat=] 66 | fprintf(stdout, "Hop Count: %llu Responses: %llu Bytes Written: %llu ", | ~~~^ | | | long long unsigned int | %lu 67 | inj_cnt, cap_cnt, | ~~~~~~~ | | | u_int64_t {aka long unsigned int} stats.c:66:78: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=] 66 | fprintf(stdout, "Hop Count: %llu Responses: %llu Bytes Written: %llu ", | ~~~^ | | | long long unsigned int | %lu 67 | inj_cnt, cap_cnt, 68 | (u_int64_t)ln_stats.bytes_written); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:70:33: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] 70 | fprintf(stdout, "Errors: %llu", | ~~~^ | | | long long unsigned int | %lu 71 | (u_int64_t)ln_stats.packet_errors); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c: In function ‘capture_stats’: stats.c:91:27: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 91 | print_separator(0, 1, "Packet Capture Statistics"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:42, from stats.h:26, from stats.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ stats.c:93:63: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘u_int64_t’ {aka ‘long unsigned int’} [-Wformat=] 93 | fprintf(stdout, "Received: %u Dropped: %u Processed: %llu", | ~~~^ | | | long long unsigned int | %lu 94 | p_stats.ps_recv, p_stats.ps_drop, inj_cnt); | ~~~~~~~ | | | u_int64_t {aka long unsigned int} source='contrib/pcap_setnonblock.c' object='pcap_setnonblock.o' libtool=no \ depfile='.deps/pcap_setnonblock.Po' tmpdepfile='.deps/pcap_setnonblock.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c -o pcap_setnonblock.o `test -f 'contrib/pcap_setnonblock.c' || echo './'`contrib/pcap_setnonblock.c source='usage.c' object='usage.o' libtool=no \ depfile='.deps/usage.Po' tmpdepfile='.deps/usage.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'usage.c' || echo './'`usage.c source='exit.c' object='exit.o' libtool=no \ depfile='.deps/exit.Po' tmpdepfile='.deps/exit.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'exit.c' || echo './'`exit.c exit.c: In function ‘injection_clean_exit’: exit.c:39:19: warning: pointer targets in passing argument 1 of ‘fgets’ differ in signedness [-Wpointer-sign] 39 | fgets(a, 16, stdin); | ^ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from exit.h:26, from exit.c:23: /usr/include/stdio.h:568:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 568 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | ~~~~~~~~~~~~~~~~~^~~ exit.c:41:29: warning: pointer targets in passing argument 1 of ‘strncasecmp’ differ in signedness [-Wpointer-sign] 41 | if(!strncasecmp(a, "Y", 1)) | ^ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/string.h:446, from /usr/include/libnet.h:63, from globals.h:31, from exit.h:26, from exit.c:23: /usr/include/strings.h:120:37: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 120 | extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ exit.c:44:29: warning: pointer targets in passing argument 1 of ‘strncasecmp’ differ in signedness [-Wpointer-sign] 44 | if(!strncasecmp(a, "N", 1)) | ^ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/string.h:446, from /usr/include/libnet.h:63, from globals.h:31, from exit.h:26, from exit.c:23: /usr/include/strings.h:120:37: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 120 | extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ exit.c:39:13: warning: ‘fgets’ writing 16 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] 39 | fgets(a, 16, stdin); | ^~~~~~~~~~~~~~~~~~~ exit.c:28:14: note: destination object ‘a’ of size 2 28 | u_int8_t a[2]; | ^ In file included from /usr/include/libnet.h:62, from globals.h:31, from exit.h:26, from exit.c:23: /usr/include/stdio.h:568:14: note: in a call to function ‘fgets’ declared with attribute ‘access (write_only, 1, 2)’ 568 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | ^~~~~ source='main.c' object='main.o' libtool=no \ depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'main.c' || echo './'`main.c main.c: In function ‘parse_capture_options’: main.c:58:29: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 58 | if(!(device = strdup(optarg))) | ^ main.c:59:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 59 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:89:22: warning: pointer targets in passing argument 1 of ‘capture_init’ differ in signedness [-Wpointer-sign] 89 | capture_init(argv[optind], cnt); | ~~~~^~~~~~~~ | | | char * In file included from injection.h:28, from main.h:40, from main.c:23: capture.h:31:19: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void capture_init(u_int8_t *, u_int64_t); | ^~~~~~~~~~ main.c: In function ‘parse_inject_options’: main.c:103:35: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 103 | if(getuid() != 0) fatal_error("Sorry, you're not root!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:122:26: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 122 | opts = "a:b:c:d:D:e:E:fF:hH:i:n:p:q:Rs:S:T:o:u:vw:W:Z:"; | ^ main.c:132:26: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 132 | opts = "b:c:d:D:e:E:fhH:i:n:o:p:Rs:S:T:vw:Z:"; | ^ main.c:142:26: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 142 | opts = "b:c:C:d:e:E:fg:G:hH:i:j:J:k:K:l:L:m:M:n:N:o:O:p:P:Q:Rs:t:T:U:vw:z:Z:"; | ^ main.c:148:37: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 148 | fatal_error("ARP is not supported with trace mode."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:158:26: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 158 | opts = "A:b:c:e:E:i:p:Rs:S:vx:X:y:Y:"; | ^ main.c:164:37: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 164 | fatal_error("RAW is not supported with trace mode."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:170:26: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 170 | opts = "b:c:d:e:E:f:i:n:o:p:Rs:T:U:vV:w:Z:"; | ^ main.c:186:26: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 186 | opts = "b:c:C:d:e:E:fg:G:hH:i:j:J:k:K:l:L:m:M:n:N:o:O:p:P:Q:Rs:t:T:U:vw:z:Z:"; | ^ main.c:191:26: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 191 | opts = "a:b:c:d:D:e:E:fF:hH:i:n:p:q:Rs:S:T:o:u:vw:W:Z:"; | ^ main.c:207:37: warning: pointer targets in passing argument 3 of ‘getopt’ differ in signedness [-Wpointer-sign] 207 | while((opt = getopt(argc, argv, opts)) != -1) | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/bits/getopt_posix.h:27, from /usr/include/unistd.h:883, from /usr/include/libnet.h:64, from main.h:26, from main.c:23: /usr/include/bits/getopt_core.h:91:67: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 91 | extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) | ~~~~~~~~~~~~^~~~~~~~~~~ main.c:225:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 225 | fatal_error("Count cannot exceed max TTL value"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:238:38: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 238 | if(!(ip4hdr_o.d_addr = strdup(optarg))) | ^ main.c:239:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 239 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:247:31: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 247 | if(!(s_d_port = strdup(optarg)) && !rand_d_port) | ^ main.c:248:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 248 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:260:36: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 260 | if(!(ehdr_o.s_addr = strdup(optarg))) | ^ main.c:261:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 261 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:275:36: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 275 | if(!(ehdr_o.d_addr = strdup(optarg))) | ^ main.c:276:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 276 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:311:33: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 311 | if(!(i4hdr_o.gw = strdup(optarg))) | ^ main.c:312:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 312 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:317:35: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 317 | if(!(i4hdr_o.mask = strdup(optarg))) | ^ main.c:318:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 318 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:333:29: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 333 | if(!(device = strdup(optarg))) | ^ main.c:334:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 334 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:342:42: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 342 | if(!(i4hdr_o.orig_s_addr = strdup(optarg))) | ^ main.c:343:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 343 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:367:42: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 367 | if(!(i4hdr_o.orig_d_addr = strdup(optarg))) | ^ main.c:368:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 368 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:415:30: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 415 | if(!(payload = strdup(optarg))) | ^ main.c:416:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 416 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:430:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 430 | fatal_error("Unknown ICMP original protocol: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:454:38: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 454 | if(!(ip4hdr_o.s_addr = strdup(optarg))) | ^ main.c:455:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 455 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:470:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 470 | fatal_error("Invalid TTL value: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:507:37: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 507 | if(!(ahdr_o.s_paddr = strdup(optarg))) | ^ main.c:508:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 508 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:516:37: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 516 | if(!(ahdr_o.s_eaddr = strdup(optarg))) | ^ main.c:517:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 517 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:525:37: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 525 | if(!(ahdr_o.r_paddr = strdup(optarg))) | ^ main.c:526:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 526 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:534:37: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 534 | if(!(ahdr_o.r_eaddr = strdup(optarg))) | ^ main.c:535:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 535 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c: In function ‘parse_capture_options’: main.c:64:17: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation] 64 | strncpy(w_file, optarg, OPT_MAXLEN); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:68:17: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation] 68 | strncpy(r_file, optarg, OPT_MAXLEN); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source='print_ts.c' object='print_ts.o' libtool=no \ depfile='.deps/print_ts.Po' tmpdepfile='.deps/print_ts.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_ts.c' || echo './'`print_ts.c source='print_arp_hdr.c' object='print_arp_hdr.o' libtool=no \ depfile='.deps/print_arp_hdr.Po' tmpdepfile='.deps/print_arp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_arp_hdr.c' || echo './'`print_arp_hdr.c source='print_tcp_hdr.c' object='print_tcp_hdr.o' libtool=no \ depfile='.deps/print_tcp_hdr.Po' tmpdepfile='.deps/print_tcp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_tcp_hdr.c' || echo './'`print_tcp_hdr.c print_tcp_hdr.c: In function ‘print_tcp_hdr’: print_tcp_hdr.c:47:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 47 | strcat(flags, "U"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_tcp_hdr.c:50:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 50 | strcat(flags, "A"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_tcp_hdr.c:53:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 53 | strcat(flags, "P"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_tcp_hdr.c:56:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 56 | strcat(flags, "R"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_tcp_hdr.c:59:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 59 | strcat(flags, "S"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_tcp_hdr.c:62:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 62 | strcat(flags, "F"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_tcp_hdr.c:64:15: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 64 | if(strlen(flags) == 0) | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ print_tcp_hdr.c:65:16: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] 65 | strcpy(flags, "None"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:125:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 125 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ source='print_udp_hdr.c' object='print_udp_hdr.o' libtool=no \ depfile='.deps/print_udp_hdr.Po' tmpdepfile='.deps/print_udp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_udp_hdr.c' || echo './'`print_udp_hdr.c source='print_icmpv4_hdr.c' object='print_icmpv4_hdr.o' libtool=no \ depfile='.deps/print_icmpv4_hdr.Po' tmpdepfile='.deps/print_icmpv4_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_icmpv4_hdr.c' || echo './'`print_icmpv4_hdr.c print_icmpv4_hdr.c: In function ‘print_icmpv4_hdr’: print_icmpv4_hdr.c:60:24: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 60 | s_addr = libnet_addr2name4(icmp_iphdr.ip_src.s_addr, 0); | ^ print_icmpv4_hdr.c:61:24: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 61 | d_addr = libnet_addr2name4(icmp_iphdr.ip_dst.s_addr, 0); | ^ print_icmpv4_hdr.c:86:24: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 86 | s_addr = libnet_addr2name4(icmp_iphdr.ip_src.s_addr, 0); | ^ print_icmpv4_hdr.c:87:24: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 87 | d_addr = libnet_addr2name4(icmp_iphdr.ip_dst.s_addr, 0); | ^ print_icmpv4_hdr.c:109:24: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 109 | s_addr = libnet_addr2name4(icmp_iphdr.ip_src.s_addr, 0); | ^ print_icmpv4_hdr.c:110:24: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 110 | d_addr = libnet_addr2name4(icmp_iphdr.ip_dst.s_addr, 0); | ^ source='print_ipv4_hdr.c' object='print_ipv4_hdr.o' libtool=no \ depfile='.deps/print_ipv4_hdr.Po' tmpdepfile='.deps/print_ipv4_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_ipv4_hdr.c' || echo './'`print_ipv4_hdr.c print_ipv4_hdr.c: In function ‘print_ipv4_hdr’: print_ipv4_hdr.c:42:12: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 42 | s_addr = libnet_addr2name4(iphdr->ip_src.s_addr, ((resolve == 1 || resolve == 3) ? 1 : 0)); | ^ print_ipv4_hdr.c:43:12: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 43 | d_addr = libnet_addr2name4(iphdr->ip_dst.s_addr, ((resolve == 1 || resolve == 3) ? 1 : 0)); | ^ source='print_ethernet_hdr.c' object='print_ethernet_hdr.o' libtool=no \ depfile='.deps/print_ethernet_hdr.Po' tmpdepfile='.deps/print_ethernet_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_ethernet_hdr.c' || echo './'`print_ethernet_hdr.c source='print_pktdump.c' object='print_pktdump.o' libtool=no \ depfile='.deps/print_pktdump.Po' tmpdepfile='.deps/print_pktdump.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_pktdump.c' || echo './'`print_pktdump.c source='print_capture.c' object='print_capture.o' libtool=no \ depfile='.deps/print_capture.Po' tmpdepfile='.deps/print_capture.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_capture.c' || echo './'`print_capture.c print_capture.c: In function ‘print_capture’: print_capture.c:47:39: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 47 | print_separator(1, 2, "PID %lld", (u_int64_t)cap_cnt + 1); | ^~~~~~~~~~ | | | char * In file included from globals.h:42, from print_capture.h:26, from print_capture.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ print_capture.c:50:39: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 50 | print_separator(1, 2, "RCV %lld", (u_int64_t)inj_cnt); | ^~~~~~~~~~ | | | char * In file included from globals.h:42, from print_capture.h:26, from print_capture.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ print_capture.c:106:39: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 106 | print_separator(1, 2, "PID %lld", (u_int64_t)cap_cnt + 1); | ^~~~~~~~~~ | | | char * In file included from globals.h:42, from print_capture.h:26, from print_capture.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ print_capture.c:109:39: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 109 | print_separator(1, 2, "RCV %lld", (u_int64_t)inj_cnt); | ^~~~~~~~~~ | | | char * In file included from globals.h:42, from print_capture.h:26, from print_capture.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ source='print_injection.c' object='print_injection.o' libtool=no \ depfile='.deps/print_injection.Po' tmpdepfile='.deps/print_injection.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_injection.c' || echo './'`print_injection.c print_injection.c: In function ‘print_injection_details’: print_injection.c:44:30: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 44 | strcat(thdr_o.flags, "S"); | ~~~~~~^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_injection.c:47:30: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 47 | strcat(thdr_o.flags, "A"); | ~~~~~~^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_injection.c:50:30: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 50 | strcat(thdr_o.flags, "F"); | ~~~~~~^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_injection.c:53:30: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 53 | strcat(thdr_o.flags, "R"); | ~~~~~~^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_injection.c:56:30: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 56 | strcat(thdr_o.flags, "P"); | ~~~~~~^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_injection.c:59:30: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 59 | strcat(thdr_o.flags, "U"); | ~~~~~~^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_injection.c:61:29: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 61 | if(strlen(thdr_o.flags) < 1) | ~~~~~~^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ print_injection.c:62:30: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] 62 | strcpy(thdr_o.flags, "None"); | ~~~~~~^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:125:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 125 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ gcc -O2 -fPIC -fcommon -Wall -o packit init.o define_defaults.o error.o injection.o capture.o shape_arp_hdr.o shape_tcp_hdr.o shape_udp_hdr.o shape_icmpv4_hdr.o shape_ipv4_hdr.o shape_ethernet_hdr.o shape_packet.o utils.o stats.o pcap_setnonblock.o usage.o exit.o main.o print_ts.o print_arp_hdr.o print_tcp_hdr.o print_udp_hdr.o print_icmpv4_hdr.o print_ipv4_hdr.o print_ethernet_hdr.o print_pktdump.o print_capture.o print_injection.o -lpcap -lpcap -lpcap -lnet strip packit cp packit .. make[2]: Leaving directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0/src' Making all in man make[2]: Entering directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0/man' cd .. && /bin/sh ./config.status man/Makefile config.status: creating man/Makefile config.status: WARNING: 'man/Makefile.in' seems to ignore the --datarootdir setting cd .. && /bin/sh ./config.status man/packit.8 config.status: creating man/packit.8 make[2]: Leaving directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0/man' make[2]: Entering directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0' make[2]: Leaving directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0' make[1]: Leaving directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0' Making install in src make[1]: Entering directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0/src' cd .. && /bin/sh ./config.status src/version.h config.status: creating src/version.h source='init.c' object='init.o' libtool=no \ depfile='.deps/init.Po' tmpdepfile='.deps/init.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'init.c' || echo './'`init.c init.c: In function ‘injection_struct_init’: init.c:34:20: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 34 | ahdr_o.s_paddr = IPV4_DEFAULT; | ^ init.c:35:20: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 35 | ahdr_o.s_eaddr = ETH_DEFAULT; | ^ init.c:36:20: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 36 | ahdr_o.r_paddr = IPV4_DEFAULT; | ^ init.c:37:20: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 37 | ahdr_o.r_eaddr = ETH_DEFAULT; | ^ source='define_defaults.c' object='define_defaults.o' libtool=no \ depfile='.deps/define_defaults.Po' tmpdepfile='.deps/define_defaults.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'define_defaults.c' || echo './'`define_defaults.c define_defaults.c: In function ‘define_injection_defaults’: define_defaults.c:34:14: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 34 | s_d_port = "0"; | ^ define_defaults.c:39:13: warning: array subscript 17 is above array bounds of ‘u_int8_t[17]’ {aka ‘unsigned char[17]’} [-Warray-bounds] 39 | hwaddr_p[17] = 0; | ~~~~~~~~^~~~ In file included from utils.h:27, from globals.h:42, from define_defaults.h:26, from define_defaults.c:23: inject_defs.h:177:10: note: while referencing ‘hwaddr_p’ 177 | u_int8_t hwaddr_p[17]; | ^~~~~~~~ source='error.c' object='error.o' libtool=no \ depfile='.deps/error.Po' tmpdepfile='.deps/error.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'error.c' || echo './'`error.c error.c: In function ‘fatal_error’: error.c:35:41: warning: pointer targets in passing argument 3 of ‘vsnprintf’ differ in signedness [-Wpointer-sign] 35 | vsnprintf(error_buf, ERRBUF_MAXLEN, err, va); | ^~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from error.h:26, from error.c:23: /usr/include/stdio.h:359:46: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 359 | const char *__restrict __format, __gnuc_va_list __arg) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ source='injection.c' object='injection.o' libtool=no \ depfile='.deps/injection.Po' tmpdepfile='.deps/injection.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'injection.c' || echo './'`injection.c injection.c: In function ‘injection_init’: injection.c:60:19: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness [-Wpointer-sign] 60 | if(strstr(s_d_port, "-")) | ^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/string.h:334:34: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern char *strstr (const char *__haystack, const char *__needle) | ~~~~~~~~~~~~^~~~~~~~~~ injection.c:65:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 65 | fatal_error("Invalid port range: %s", s_d_port); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:70:34: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign] 70 | d_port = (u_int16_t)atoi(s_d_port); | ^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:473, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/stdlib.h:361:1: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 361 | __NTH (atoi (const char *__nptr)) | ^~~~~ injection.c:73:5: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 73 | if(!device && (device = pcap_lookupdev(error_buf)) == NULL) | ^~ In file included from globals.h:32, from injection.h:26, from injection.c:23: /usr/include/pcap/pcap.h:394:18: note: declared here 394 | PCAP_API char *pcap_lookupdev(char *) | ^~~~~~~~~~~~~~ injection.c:73:27: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 73 | if(!device && (device = pcap_lookupdev(error_buf)) == NULL) | ^ injection.c:74:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 74 | fatal_error("Device lookup failure: Are you root?"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:76:15: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness [-Wpointer-sign] 76 | if(strstr(device, "any")) strcpy(device, "lo"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/string.h:334:34: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern char *strstr (const char *__haystack, const char *__needle) | ~~~~~~~~~~~~^~~~~~~~~~ injection.c:76:38: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] 76 | if(strstr(device, "any")) strcpy(device, "lo"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/string.h:125:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 125 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ injection.c:79:58: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘u_int64_t’ {aka ‘long unsigned int’} [-Wformat=] 79 | fprintf(stdout, "Mode: Trace Route [Hop Max: %llu] using device: %s\n", cnt, device); | ~~~^ ~~~ | | | | long long unsigned int u_int64_t {aka long unsigned int} | %lu injection.c:83:40: warning: pointer targets in passing argument 2 of ‘libnet_init’ differ in signedness [-Wpointer-sign] 83 | if((pkt_d = libnet_init(init_type, device, error_buf)) == NULL) | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/libnet/libnet-functions.h:64:45: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 64 | libnet_init(int injection_type, const char *device, char *err_buf); | ~~~~~~~~~~~~^~~~~~ injection.c:84:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 84 | fatal_error("Unable to initialize packet injection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c: In function ‘with_response’: injection.c:124:30: warning: pointer targets in passing argument 1 of ‘pcap_open_live’ differ in signedness [-Wpointer-sign] 124 | if((pkt = pcap_open_live(device, 1500, 1, READ_TIMEOUT, error_buf)) == NULL) | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:32, from injection.h:26, from injection.c:23: /usr/include/pcap/pcap.h:515:33: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 515 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); | ^~~~~~~~~~~~ injection.c:125:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 125 | fatal_error("Unable to open device: %s", error_buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:127:23: warning: pointer targets in passing argument 1 of ‘pcap_lookupnet’ differ in signedness [-Wpointer-sign] 127 | if(pcap_lookupnet(device, &localnet, &netmask, error_buf) < 0) | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:32, from injection.h:26, from injection.c:23: /usr/include/pcap/pcap.h:398:32: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 398 | PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); | ^~~~~~~~~~~~ injection.c:145:27: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 145 | snprintf(ufilter, 1024, | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/stdio.h:354:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 354 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ injection.c:158:27: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 158 | snprintf(ufilter, 1024, | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/stdio.h:354:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 354 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ injection.c:171:27: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 171 | snprintf(ufilter, 1024, | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/stdio.h:354:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 354 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ injection.c:191:36: warning: pointer targets in passing argument 3 of ‘pcap_compile’ differ in signedness [-Wpointer-sign] 191 | if(pcap_compile(pkt, &bpf, filter, 0, netmask) < 0) | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:32, from injection.h:26, from injection.c:23: /usr/include/pcap/pcap.h:613:62: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 613 | PCAP_API int pcap_compile(pcap_t *, struct bpf_program *, const char *, int, | ^~~~~~~~~~~~ injection.c:195:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 195 | fatal_error("Unable to set packet filters: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:202:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 202 | fatal_error("Unable to determine datalink type: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:210:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 210 | fatal_error("Unable to change to blocking mode: %s", error_buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:217:62: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 217 | print_separator(1, 2, (p_mode == M_TRACE) ? "HOP %d" : "SND %d", inj_cnt); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | | | char * In file included from globals.h:42, from injection.h:26, from injection.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ injection.c:221:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 221 | fatal_error("Unable to inject packet"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:244:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 244 | fatal_error("Unable to inject packet"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:269:69: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 269 | print_separator((p_mode == M_TRACE) ? 0 : 1, 1, "No Response From Peer"); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:42, from injection.h:26, from injection.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ injection.c: In function ‘without_response’: injection.c:327:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 327 | fatal_error("Unable to inject packet"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ injection.c:331:35: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 331 | print_separator(1, 2, "SND %ld", inj_cnt); | ^~~~~~~~~ | | | char * In file included from globals.h:42, from injection.h:26, from injection.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ injection.c:348:62: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘u_int64_t’ {aka ‘long unsigned int’} [-Wformat=] 348 | fprintf(stderr, "\nWriting packet(s) (%llu): ", cnt); | ~~~^ ~~~ | | | | | u_int64_t {aka long unsigned int} | long long unsigned int | %lu source='capture.c' object='capture.o' libtool=no \ depfile='.deps/capture.Po' tmpdepfile='.deps/capture.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'capture.c' || echo './'`capture.c capture.c: In function ‘capture_init’: capture.c:54:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 54 | fatal_error("Unable to open file: %s", error_buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ capture.c:60:13: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 60 | if((device = pcap_lookupdev(error_buf)) == NULL) | ^~ In file included from globals.h:32, from capture.h:26, from capture.c:23: /usr/include/pcap/pcap.h:394:18: note: declared here 394 | PCAP_API char *pcap_lookupdev(char *) | ^~~~~~~~~~~~~~ capture.c:60:24: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 60 | if((device = pcap_lookupdev(error_buf)) == NULL) | ^ capture.c:61:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 61 | fatal_error("%s: Check device permissions", error_buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ capture.c:64:34: warning: pointer targets in passing argument 1 of ‘pcap_open_live’ differ in signedness [-Wpointer-sign] 64 | if((pkt = pcap_open_live(device, snap_len, 1, READ_TIMEOUT, error_buf)) == NULL) | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:32, from capture.h:26, from capture.c:23: /usr/include/pcap/pcap.h:515:33: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 515 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); | ^~~~~~~~~~~~ capture.c:65:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 65 | fatal_error("Unable to open device: %s", error_buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ capture.c:75:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 75 | fatal_error("Unable to initialize packet capture: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ capture.c:80:23: warning: pointer targets in passing argument 1 of ‘pcap_lookupnet’ differ in signedness [-Wpointer-sign] 80 | if(pcap_lookupnet(device, &localnet, &netmask, error_buf) < 0) | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:32, from capture.h:26, from capture.c:23: /usr/include/pcap/pcap.h:398:32: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 398 | PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); | ^~~~~~~~~~~~ capture.c:83:32: warning: pointer targets in passing argument 3 of ‘pcap_compile’ differ in signedness [-Wpointer-sign] 83 | if(pcap_compile(pkt, &bpf, filter, 0, netmask) < 0) | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:32, from capture.h:26, from capture.c:23: /usr/include/pcap/pcap.h:613:62: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 613 | PCAP_API int pcap_compile(pcap_t *, struct bpf_program *, const char *, int, | ^~~~~~~~~~~~ capture.c:87:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 87 | fatal_error("Unable to set packet filters: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ capture.c:94:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 94 | fatal_error("Unable to determine datalink type: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ capture.c:114:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 114 | fatal_error("Unable to initialize pcap_loop: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ source='shape_arp_hdr.c' object='shape_arp_hdr.o' libtool=no \ depfile='.deps/shape_arp_hdr.Po' tmpdepfile='.deps/shape_arp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'shape_arp_hdr.c' || echo './'`shape_arp_hdr.c shape_arp_hdr.c: In function ‘shape_arp_hdr’: shape_arp_hdr.c:61:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 61 | fatal_error("Unable to retrieve local IP address: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_arp_hdr.c:63:32: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 63 | ahdr_o.s_paddr = libnet_addr2name4(s_paddr, 0); | ^ shape_arp_hdr.c:67:32: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 67 | ahdr_o.s_paddr = IPV4_DEFAULT; | ^ shape_arp_hdr.c:72:50: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] 72 | if((s_paddr = libnet_name2addr4(pkt_d, ahdr_o.s_paddr, 0)) == -1) | ~~~~~~^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ shape_arp_hdr.c:73:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 73 | fatal_error("Invalid sender protocol address: %s", ahdr_o.s_paddr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_arp_hdr.c:81:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 81 | fatal_error("Unable to determine ethernet address: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_arp_hdr.c:89:32: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 89 | ahdr_o.s_eaddr = ETH_DEFAULT; | ^ shape_arp_hdr.c:94:35: warning: pointer targets in passing argument 1 of ‘format_ethernet_addr’ differ in signedness [-Wpointer-sign] 94 | if(format_ethernet_addr(ahdr_o.s_eaddr, s_neaddr) == 0) | ~~~~~~^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:42, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: utils.h:43:32: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 43 | u_int32_t format_ethernet_addr(char *, u_int8_t[]); | ^~~~~~ shape_arp_hdr.c:95:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 95 | fatal_error("Invalid sender ethernet address"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_arp_hdr.c:97:20: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 97 | snprintf(ahdr_o.shw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", | ~~~~~~^~~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /usr/include/stdio.h:354:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 354 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ shape_arp_hdr.c:106:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 106 | fatal_error("Unable to retrieve local IP address: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_arp_hdr.c:108:32: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 108 | ahdr_o.r_paddr = libnet_addr2name4(r_paddr, 0); | ^ shape_arp_hdr.c:112:32: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 112 | ahdr_o.r_paddr = IPV4_DEFAULT; | ^ shape_arp_hdr.c:117:50: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] 117 | if((r_paddr = libnet_name2addr4(pkt_d, ahdr_o.r_paddr, 0)) == -1) | ~~~~~~^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ shape_arp_hdr.c:118:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 118 | fatal_error("Invalid receiver protocol address: %s", ahdr_o.r_paddr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_arp_hdr.c:126:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 126 | fatal_error("Unable to determine ethernet address: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_arp_hdr.c:134:32: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 134 | ahdr_o.r_eaddr = ETH_DEFAULT; | ^ shape_arp_hdr.c:139:35: warning: pointer targets in passing argument 1 of ‘format_ethernet_addr’ differ in signedness [-Wpointer-sign] 139 | if(format_ethernet_addr(ahdr_o.r_eaddr, r_neaddr) == 0) | ~~~~~~^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:42, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: utils.h:43:32: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 43 | u_int32_t format_ethernet_addr(char *, u_int8_t[]); | ^~~~~~ shape_arp_hdr.c:140:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 140 | fatal_error("Invalid receiver ethernet address"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_arp_hdr.c:142:20: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 142 | snprintf(ahdr_o.rhw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", | ~~~~~~^~~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /usr/include/stdio.h:354:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 354 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ shape_arp_hdr.c:160:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 160 | fatal_error("Unable to build ARP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ source='shape_tcp_hdr.c' object='shape_tcp_hdr.o' libtool=no \ depfile='.deps/shape_tcp_hdr.Po' tmpdepfile='.deps/shape_tcp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'shape_tcp_hdr.c' || echo './'`shape_tcp_hdr.c shape_tcp_hdr.c: In function ‘shape_tcp_hdr’: shape_tcp_hdr.c:51:30: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 51 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_tcp_hdr.c:70:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 70 | fatal_error("Unable to build TCP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ source='shape_udp_hdr.c' object='shape_udp_hdr.o' libtool=no \ depfile='.deps/shape_udp_hdr.Po' tmpdepfile='.deps/shape_udp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'shape_udp_hdr.c' || echo './'`shape_udp_hdr.c shape_udp_hdr.c: In function ‘shape_udp_hdr’: shape_udp_hdr.c:44:30: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 44 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_udp_hdr.c:58:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 58 | fatal_error("Unable to build UDP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ source='shape_icmpv4_hdr.c' object='shape_icmpv4_hdr.o' libtool=no \ depfile='.deps/shape_icmpv4_hdr.Po' tmpdepfile='.deps/shape_icmpv4_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'shape_icmpv4_hdr.c' || echo './'`shape_icmpv4_hdr.c shape_icmpv4_hdr.c: In function ‘shape_icmpv4_hdr’: shape_icmpv4_hdr.c:58:38: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 58 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_icmpv4_hdr.c:73:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 73 | fatal_error("Unable to build ICMPv4 echo header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:104:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 104 | fatal_error("No original source IP address defined"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:106:61: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] 106 | if((ihn_saddr = libnet_name2addr4(pkt_d, i4hdr_o.orig_s_addr, 1)) == -1) | ~~~~~~~^~~~~~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ shape_icmpv4_hdr.c:107:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 107 | fatal_error("Invalid original source IP address: %s", i4hdr_o.orig_s_addr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:110:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 110 | fatal_error("No original destination IP address defined"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:112:61: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] 112 | if((ihn_daddr = libnet_name2addr4(pkt_d, i4hdr_o.orig_d_addr, 1)) == -1) | ~~~~~~~^~~~~~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ shape_icmpv4_hdr.c:113:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 113 | fatal_error("Invalid original destination IP address: %s", i4hdr_o.orig_d_addr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:137:42: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 137 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_icmpv4_hdr.c:156:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 156 | fatal_error("Unable to build original IP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:168:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 168 | fatal_error("Unable to build ICMPv4 unreach header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:182:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 182 | fatal_error("No gateway IP address defined"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:184:62: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] 184 | if((ihn_gw = libnet_name2addr4(pkt_d, i4hdr_o.gw, 1)) == -1) | ~~~~~~~^~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ shape_icmpv4_hdr.c:185:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 185 | fatal_error("Invalid gateway IP address: %s", i4hdr_o.gw); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:192:42: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 192 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_icmpv4_hdr.c:211:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 211 | fatal_error("Unable to build original IP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:224:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 224 | fatal_error("Unable to build ICMPv4 redirect header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:239:42: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 239 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_icmpv4_hdr.c:258:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 258 | fatal_error("Unable to build original IP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:270:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 270 | fatal_error("Unable to build ICMPv4 timeexceed header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:292:38: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 292 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_icmpv4_hdr.c:310:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 310 | fatal_error("Unable to build ICMPv4 timestamp header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:327:64: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] 327 | if((ihn_mask = libnet_name2addr4(pkt_d, i4hdr_o.mask, 1)) == -1) | ~~~~~~~^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ shape_icmpv4_hdr.c:328:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 328 | fatal_error("Invalid mask address: %s", i4hdr_o.mask); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_icmpv4_hdr.c:335:38: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 335 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_icmpv4_hdr.c:351:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 351 | fatal_error("Unable to build ICMPv4 mask header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ source='shape_ipv4_hdr.c' object='shape_ipv4_hdr.o' libtool=no \ depfile='.deps/shape_ipv4_hdr.Po' tmpdepfile='.deps/shape_ipv4_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'shape_ipv4_hdr.c' || echo './'`shape_ipv4_hdr.c shape_ipv4_hdr.c: In function ‘shape_ipv4_hdr’: shape_ipv4_hdr.c:41:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 41 | fatal_error("Unable to retrieve local IP address: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_ipv4_hdr.c:43:25: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 43 | ip4hdr_o.s_addr = libnet_addr2name4(ip4hdr_o.n_saddr, 1); | ^ shape_ipv4_hdr.c:46:65: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] 46 | if((ip4hdr_o.n_saddr = libnet_name2addr4(pkt_d, ip4hdr_o.s_addr, 1)) == -1) | ~~~~~~~~^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ shape_ipv4_hdr.c:47:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 47 | fatal_error("Invalid source IP address: %s", ip4hdr_o.s_addr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_ipv4_hdr.c:50:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 50 | fatal_error("No destination IP address defined"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_ipv4_hdr.c:52:61: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] 52 | if((ip4hdr_o.n_daddr = libnet_name2addr4(pkt_d, ip4hdr_o.d_addr, 1)) == -1) | ~~~~~~~~^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:119, from globals.h:31, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ shape_ipv4_hdr.c:53:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 53 | fatal_error("Invalid destination IP address: %s", ip4hdr_o.d_addr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_ipv4_hdr.c:68:30: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 68 | payload_len = strlen(payload); | ^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ shape_ipv4_hdr.c:89:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 89 | fatal_error("Unable to build IP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ source='shape_ethernet_hdr.c' object='shape_ethernet_hdr.o' libtool=no \ depfile='.deps/shape_ethernet_hdr.Po' tmpdepfile='.deps/shape_ethernet_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'shape_ethernet_hdr.c' || echo './'`shape_ethernet_hdr.c shape_ethernet_hdr.c: In function ‘shape_ethernet_hdr’: shape_ethernet_hdr.c:50:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 50 | fatal_error("Unable to determine ethernet address: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_ethernet_hdr.c:56:39: warning: pointer targets in passing argument 1 of ‘format_ethernet_addr’ differ in signedness [-Wpointer-sign] 56 | if(format_ethernet_addr(ehdr_o.s_addr, us_addr) == 0) | ~~~~~~^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:42, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: utils.h:43:32: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 43 | u_int32_t format_ethernet_addr(char *, u_int8_t[]); | ^~~~~~ shape_ethernet_hdr.c:57:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 57 | fatal_error("Invalid source ethernet address"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_ethernet_hdr.c:59:20: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 59 | snprintf(ehdr_o.shw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", | ~~~~~~^~~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: /usr/include/stdio.h:354:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 354 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ shape_ethernet_hdr.c:63:23: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 63 | ehdr_o.d_addr = ETH_BROADCAST; | ^ shape_ethernet_hdr.c:68:23: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 68 | ehdr_o.d_addr = ETH_DEFAULT; | ^ shape_ethernet_hdr.c:71:35: warning: pointer targets in passing argument 1 of ‘format_ethernet_addr’ differ in signedness [-Wpointer-sign] 71 | if(format_ethernet_addr(ehdr_o.d_addr, ud_addr) == 0) | ~~~~~~^~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from globals.h:42, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: utils.h:43:32: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 43 | u_int32_t format_ethernet_addr(char *, u_int8_t[]); | ^~~~~~ shape_ethernet_hdr.c:72:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 72 | fatal_error("Invalid destination ethernet address"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_ethernet_hdr.c:74:20: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] 74 | snprintf(ehdr_o.dhw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", | ~~~~~~^~~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: /usr/include/stdio.h:354:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 354 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ shape_ethernet_hdr.c:86:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 86 | fatal_error("Unable to build ethernet header"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ shape_ethernet_hdr.c: In function ‘shape_ethernet_hdr_auto’: shape_ethernet_hdr.c:106:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 106 | fatal_error("Unable to auto-build ethernet header"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ source='shape_packet.c' object='shape_packet.o' libtool=no \ depfile='.deps/shape_packet.Po' tmpdepfile='.deps/shape_packet.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'shape_packet.c' || echo './'`shape_packet.c source='utils.c' object='utils.o' libtool=no \ depfile='.deps/utils.Po' tmpdepfile='.deps/utils.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'utils.c' || echo './'`utils.c utils.c: In function ‘retrieve_rand_ipv4_addr’: utils.c:95:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 95 | sprintf(ip, "%s.%d", ip, oct); | ^~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:97:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 97 | sprintf(ip, "%d", oct); | ^~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c: In function ‘retrieve_rand_ethernet_addr’: utils.c:117:20: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 117 | sprintf(eaddr, "%s:%0x", eaddr, oct); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:119:20: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 119 | sprintf(eaddr, "%0x", oct); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c: In function ‘print_separator’: utils.c:140:15: warning: pointer targets in passing argument 1 of ‘vsnprintf’ differ in signedness [-Wpointer-sign] 140 | vsnprintf(msg, 256, msgp, va); | ^~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:358:40: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 358 | extern int vsnprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ utils.c:140:25: warning: pointer targets in passing argument 3 of ‘vsnprintf’ differ in signedness [-Wpointer-sign] 140 | vsnprintf(msg, 256, msgp, va); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:359:46: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 359 | const char *__restrict __format, __gnuc_va_list __arg) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ utils.c:142:22: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 142 | msg_len = strlen(msg); | ^~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ utils.c: In function ‘retrieve_icmp_code’: utils.c:174:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 174 | sprintf(icmp_c, "Network"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:178:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 178 | sprintf(icmp_c, "Host"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:182:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 182 | sprintf(icmp_c, "Protocol"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:186:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 186 | sprintf(icmp_c, "Port"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:190:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 190 | sprintf(icmp_c, "Need Fragment"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:194:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 194 | sprintf(icmp_c, "Source Fail"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:198:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 198 | sprintf(icmp_c, "Network Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:202:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 202 | sprintf(icmp_c, "Host Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:206:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 206 | sprintf(icmp_c, "Isolated"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:210:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 210 | sprintf(icmp_c, "Network Prohibited"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:214:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 214 | sprintf(icmp_c, "Host Prohibited"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:218:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 218 | sprintf(icmp_c, "ToS Network"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:222:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 222 | sprintf(icmp_c, "ToS Host"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:226:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 226 | sprintf(icmp_c, "Filter Prohibited"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:230:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 230 | sprintf(icmp_c, "Host Precedence"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:234:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 234 | sprintf(icmp_c, "Precedence Cutoff"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:238:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 238 | sprintf(icmp_c, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:248:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 248 | sprintf(icmp_c, "Network"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:252:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 252 | sprintf(icmp_c, "Host"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:256:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 256 | sprintf(icmp_c, "ToS Net"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:260:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 260 | sprintf(icmp_c, "ToS Host"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:264:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 264 | sprintf(icmp_c, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:274:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 274 | sprintf(icmp_c, "In Transit"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:278:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 278 | sprintf(icmp_c, "Reassembly"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:282:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 282 | sprintf(icmp_c, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:292:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 292 | sprintf(icmp_c, "Missing Option"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:296:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 296 | sprintf(icmp_c, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:302:17: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 302 | sprintf(icmp_c, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c: In function ‘retrieve_icmp_type’: utils.c:323:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 323 | sprintf(icmp_t, "Echo Reply"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:327:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 327 | sprintf(icmp_t, "Unreachable"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:331:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 331 | sprintf(icmp_t, "Source Quench"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:335:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 335 | sprintf(icmp_t, "Redirect"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:339:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 339 | sprintf(icmp_t, "Echo Request"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:343:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 343 | sprintf(icmp_t, "Time Exceeded"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:347:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 347 | sprintf(icmp_t, "Param Problem"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:351:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 351 | sprintf(icmp_t, "Timestamp"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:355:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 355 | sprintf(icmp_t, "Timestamp Reply"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:359:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 359 | sprintf(icmp_t, "Info Request"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:363:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 363 | sprintf(icmp_t, "Info Reply"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:367:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 367 | sprintf(icmp_t, "Router Advertise"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:371:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 371 | sprintf(icmp_t, "Router Selection"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:375:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 375 | sprintf(icmp_t, "Address Mask Request"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:379:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 379 | sprintf(icmp_t, "Address Mask Reply"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:383:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 383 | sprintf(icmp_t, "Traceroute"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:387:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 387 | sprintf(icmp_t, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c: In function ‘retrieve_arp_type’: utils.c:408:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 408 | sprintf(arp_t, "Request"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:412:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 412 | sprintf(arp_t, "Reply"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:416:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 416 | sprintf(arp_t, "Reverse Request"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:420:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 420 | sprintf(arp_t, "Reverse Reply"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:424:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 424 | sprintf(arp_t, "Inverse Request"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:428:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 428 | sprintf(arp_t, "Inverse Reply"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:432:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 432 | sprintf(arp_t, "Unknown"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c: In function ‘retrieve_arp_hw_type’: utils.c:457:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 457 | sprintf(hw_t, "Net/ROM Pseudo"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:461:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 461 | sprintf(hw_t, "Ethernet 10/100"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:465:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 465 | sprintf(hw_t, "Experimental Ethernet"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:469:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 469 | sprintf(hw_t, "AX.25 Level 2"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:473:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 473 | sprintf(hw_t, "ProNet Token Ring"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:477:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 477 | sprintf(hw_t, "IEEE 802.2 Ethernet"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:481:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 481 | sprintf(hw_t, "ARCNet"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:485:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 485 | sprintf(hw_t, "AppleTalk"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:489:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 489 | sprintf(hw_t, "Lanstar"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:493:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 493 | sprintf(hw_t, "Frame Relay DLCI"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:497:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 497 | sprintf(hw_t, "ATM"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:501:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 501 | sprintf(hw_t, "Metricom STRIP"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:505:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 505 | sprintf(hw_t, "IPsec Tunnel"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c: At top level: utils.c:547:45: warning: argument 2 of type ‘u_int8_t[6]’ {aka ‘unsigned char[6]’} with mismatched bound [-Warray-parameter=] 547 | format_ethernet_addr(char *ethstr, u_int8_t u_eaddr[6]) | ~~~~~~~~~^~~~~~~~~~ In file included from utils.c:23: utils.h:43:40: note: previously declared as ‘u_int8_t[]’ {aka ‘unsigned char[]’} 43 | u_int32_t format_ethernet_addr(char *, u_int8_t[]); | ^~~~~~~~~~ utils.c: In function ‘format_ethernet_addr’: utils.c:551:30: warning: pointer targets in initialization of ‘u_int8_t *’ {aka ‘unsigned char *’} from ‘char *’ differ in signedness [-Wpointer-sign] 551 | u_int8_t *eptr, *delim = ":"; | ^~~ utils.c:559:17: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign] 559 | strncpy(o_ethstr, ethstr, 18); | ^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:128:40: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 128 | extern char *strncpy (char *__restrict __dest, | ~~~~~~~~~~~~~~~~~^~~~~~ utils.c:566:23: warning: pointer targets in passing argument 1 of ‘strtok’ differ in signedness [-Wpointer-sign] 566 | for(eptr = strtok(o_ethstr, delim); | ^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~^~~ utils.c:566:33: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] 566 | for(eptr = strtok(o_ethstr, delim); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:67: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ utils.c:566:14: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 566 | for(eptr = strtok(o_ethstr, delim); | ^ utils.c:568:30: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] 568 | eptr = strtok(NULL, delim)) | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:67: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ utils.c:568:15: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 568 | eptr = strtok(NULL, delim)) | ^ utils.c:570:29: warning: pointer targets in passing argument 1 of ‘strtol’ differ in signedness [-Wpointer-sign] 570 | if((base16 = strtol(eptr, 0, 16)) > 0xff) | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:67, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdlib.h:176:48: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 176 | extern long int strtol (const char *__restrict __nptr, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ utils.c:580:12: warning: pointer targets in assignment from ‘u_int8_t *’ {aka ‘unsigned char *’} to ‘char *’ differ in signedness [-Wpointer-sign] 580 | ethstr = o_ethstr; | ^ utils.c: In function ‘parse_port_range’: utils.c:588:45: warning: pointer targets in initialization of ‘u_int8_t *’ {aka ‘unsigned char *’} from ‘char *’ differ in signedness [-Wpointer-sign] 588 | u_int8_t o_rangestr[11], *ptr, *delim = "-"; | ^~~ utils.c:597:17: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign] 597 | strncpy(o_rangestr, rangestr, 11); | ^~~~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:128:40: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 128 | extern char *strncpy (char *__restrict __dest, | ~~~~~~~~~~~~~~~~~^~~~~~ utils.c:597:29: warning: pointer targets in passing argument 2 of ‘strncpy’ differ in signedness [-Wpointer-sign] 597 | strncpy(o_rangestr, rangestr, 11); | ^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:129:46: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 129 | const char *__restrict __src, size_t __n) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ utils.c:599:29: warning: pointer targets in passing argument 1 of ‘strtok’ differ in signedness [-Wpointer-sign] 599 | for(i = 0, ptr = strtok(o_rangestr, delim); | ^~~~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~^~~ utils.c:599:41: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] 599 | for(i = 0, ptr = strtok(o_rangestr, delim); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:67: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ utils.c:599:20: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 599 | for(i = 0, ptr = strtok(o_rangestr, delim); | ^ utils.c:601:28: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] 601 | ptr = strtok(NULL, delim)) | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:67: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ utils.c:601:13: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 601 | ptr = strtok(NULL, delim)) | ^ utils.c:603:31: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign] 603 | spread[i] = (int)atoi(ptr); | ^~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:473, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdlib.h:361:1: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 361 | __NTH (atoi (const char *__nptr)) | ^~~~~ utils.c: In function ‘generate_padding’: utils.c:645:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 645 | sprintf(string, "%c", c); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:647:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 647 | sprintf(string, "%s%c", string, c); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c: In function ‘format_hex_payload’: utils.c:659:23: warning: pointer targets in initialization of ‘u_int8_t *’ {aka ‘unsigned char *’} from ‘char *’ differ in signedness [-Wpointer-sign] 659 | u_int8_t *delim = " "; | ^~~ utils.c:668:13: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign] 668 | strncpy(pl, string, 65535); | ^~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:128:40: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 128 | extern char *strncpy (char *__restrict __dest, | ~~~~~~~~~~~~~~~~~^~~~~~ utils.c:668:17: warning: pointer targets in passing argument 2 of ‘strncpy’ differ in signedness [-Wpointer-sign] 668 | strncpy(pl, string, 65535); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:129:46: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 129 | const char *__restrict __src, size_t __n) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ utils.c:671:30: warning: argument to ‘sizeof’ in ‘memset’ call is the same pointer type ‘u_int8_t *’ {aka ‘unsigned char *’} as the destination; expected ‘u_int8_t’ {aka ‘unsigned char’} or an explicit length [-Wsizeof-pointer-memaccess] 671 | memset(string, 0, sizeof(u_int8_t *)); | ^~~~~~~~ utils.c:677:22: warning: pointer targets in passing argument 1 of ‘strtok’ differ in signedness [-Wpointer-sign] 677 | for(i = strtok(pl+3, delim); | ~~^~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~^~~ utils.c:677:26: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] 677 | for(i = strtok(pl+3, delim); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:67: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ utils.c:677:11: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 677 | for(i = strtok(pl+3, delim); | ^ utils.c:679:26: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] 679 | i = strtok(NULL, delim)) | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:340:67: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 340 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ utils.c:679:11: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 679 | i = strtok(NULL, delim)) | ^ utils.c:681:24: warning: pointer targets in passing argument 1 of ‘strtol’ differ in signedness [-Wpointer-sign] 681 | if((c = strtol(i, 0, 16)) > 0xff) | ^ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:67, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdlib.h:176:48: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 176 | extern long int strtol (const char *__restrict __nptr, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ utils.c:684:17: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 684 | sprintf(tchar,"%c",(u_int8_t)c); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:334:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 334 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ utils.c:685:23: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign] 685 | strncpy(string+len,tchar,2); | ~~~~~~^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:128:40: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 128 | extern char *strncpy (char *__restrict __dest, | ~~~~~~~~~~~~~~~~~^~~~~~ utils.c:685:28: warning: pointer targets in passing argument 2 of ‘strncpy’ differ in signedness [-Wpointer-sign] 685 | strncpy(string+len,tchar,2); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:129:46: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 129 | const char *__restrict __src, size_t __n) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ utils.c: In function ‘retrieve_rand_ipv4_addr’: utils.c:95:13: warning: ‘sprintf’ argument 3 overlaps destination object ‘ip’ [-Wrestrict] 95 | sprintf(ip, "%s.%d", ip, oct); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:74:35: note: destination object referenced by ‘restrict’-qualified argument 1 was declared here 74 | retrieve_rand_ipv4_addr(u_int8_t *ip) | ~~~~~~~~~~^~ utils.c: In function ‘retrieve_rand_ethernet_addr’: utils.c:117:12: warning: ‘sprintf’ argument 3 overlaps destination object ‘eaddr’ [-Wrestrict] 117 | sprintf(eaddr, "%s:%0x", eaddr, oct); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:104:39: note: destination object referenced by ‘restrict’-qualified argument 1 was declared here 104 | retrieve_rand_ethernet_addr(u_int8_t *eaddr) | ~~~~~~~~~~^~~~~ utils.c: In function ‘format_ethernet_addr’: utils.c:559:9: warning: ‘strncpy’ specified bound 18 equals destination size [-Wstringop-truncation] 559 | strncpy(o_ethstr, ethstr, 18); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c: In function ‘parse_port_range’: utils.c:597:9: warning: ‘strncpy’ specified bound 11 equals destination size [-Wstringop-truncation] 597 | strncpy(o_rangestr, rangestr, 11); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:612:31: warning: ‘spread’ may be used uninitialized [-Wmaybe-uninitialized] 612 | range = spread[1] - spread[0] + 1; | ~~~~~~^~~ utils.c:590:9: note: ‘spread’ declared here 590 | int spread[10]; | ^~~~~~ utils.c: In function ‘generate_padding’: utils.c:647:13: warning: ‘sprintf’ argument 3 overlaps destination object ‘string’ [-Wrestrict] 647 | sprintf(string, "%s%c", string, c); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source='stats.c' object='stats.o' libtool=no \ depfile='.deps/stats.Po' tmpdepfile='.deps/stats.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'stats.c' || echo './'`stats.c stats.c: In function ‘injection_stats’: stats.c:39:31: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 39 | print_separator(1, 1, "Trace Route Statistics"); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:42, from stats.h:26, from stats.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ stats.c:41:67: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 41 | print_separator((p_mode == M_INJECT_RESPONSE) ? 1 : 2, 1, "Packet Injection Statistics"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:42, from stats.h:26, from stats.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ stats.c:49:39: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] 49 | fprintf(stdout, "Injected: %llu Packets/Sec: %llu.%llu Bytes/Sec: %llu.%llu ", | ~~~^ | | | long long unsigned int | %lu 50 | (u_int64_t)ln_stats.packets_sent, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:49:58: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=] 49 | fprintf(stdout, "Injected: %llu Packets/Sec: %llu.%llu Bytes/Sec: %llu.%llu ", | ~~~^ | | | long long unsigned int | %lu 50 | (u_int64_t)ln_stats.packets_sent, 51 | (u_int64_t)ln_stats.packets_sent / tm_diff, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:49:63: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=] 49 | fprintf(stdout, "Injected: %llu Packets/Sec: %llu.%llu Bytes/Sec: %llu.%llu ", | ~~~^ | | | long long unsigned int | %lu ...... 52 | (u_int64_t)ln_stats.packets_sent % tm_diff, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:49:80: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘long unsigned int’ [-Wformat=] 49 | fprintf(stdout, "Injected: %llu Packets/Sec: %llu.%llu Bytes/Sec: %llu.%llu ", | ~~~^ | | | long long unsigned int | %lu ...... 53 | (u_int64_t)ln_stats.bytes_written / tm_diff, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:49:85: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 7 has type ‘long unsigned int’ [-Wformat=] 49 | fprintf(stdout, "Injected: %llu Packets/Sec: %llu.%llu Bytes/Sec: %llu.%llu ", | ~~~^ | | | long long unsigned int | %lu ...... 54 | (u_int64_t)ln_stats.bytes_written % tm_diff); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:58:39: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] 58 | fprintf(stdout, "Injected: %llu Received: %llu Loss: %llu.%llu%% Bytes Written: %llu ", | ~~~^ | | | long long unsigned int | %lu 59 | (u_int64_t)ln_stats.packets_sent, cap_cnt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:58:55: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘u_int64_t’ {aka ‘long unsigned int’} [-Wformat=] 58 | fprintf(stdout, "Injected: %llu Received: %llu Loss: %llu.%llu%% Bytes Written: %llu ", | ~~~^ | | | long long unsigned int | %lu 59 | (u_int64_t)ln_stats.packets_sent, cap_cnt, | ~~~~~~~ | | | u_int64_t {aka long unsigned int} stats.c:58:67: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=] 58 | fprintf(stdout, "Injected: %llu Received: %llu Loss: %llu.%llu%% Bytes Written: %llu ", | ~~~^ | | | long long unsigned int | %lu 59 | (u_int64_t)ln_stats.packets_sent, cap_cnt, 60 | (u_int64_t)(ln_stats.packets_sent == 0) ? 0 : (100 - (cap_cnt * 100) / ln_stats.packets_sent), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:58:72: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘long unsigned int’ [-Wformat=] 58 | fprintf(stdout, "Injected: %llu Received: %llu Loss: %llu.%llu%% Bytes Written: %llu ", | ~~~^ | | | long long unsigned int | %lu ...... 61 | (u_int64_t)(cap_cnt * 100) % ln_stats.packets_sent, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:58:95: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 7 has type ‘long unsigned int’ [-Wformat=] 58 | fprintf(stdout, "Injected: %llu Received: %llu Loss: %llu.%llu%% Bytes Written: %llu ", | ~~~^ | | | long long unsigned int | %lu ...... 62 | (u_int64_t)ln_stats.bytes_written); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:66:40: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘u_int64_t’ {aka ‘long unsigned int’} [-Wformat=] 66 | fprintf(stdout, "Hop Count: %llu Responses: %llu Bytes Written: %llu ", | ~~~^ | | | long long unsigned int | %lu 67 | inj_cnt, cap_cnt, | ~~~~~~~ | | | u_int64_t {aka long unsigned int} stats.c:66:57: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘u_int64_t’ {aka ‘long unsigned int’} [-Wformat=] 66 | fprintf(stdout, "Hop Count: %llu Responses: %llu Bytes Written: %llu ", | ~~~^ | | | long long unsigned int | %lu 67 | inj_cnt, cap_cnt, | ~~~~~~~ | | | u_int64_t {aka long unsigned int} stats.c:66:78: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=] 66 | fprintf(stdout, "Hop Count: %llu Responses: %llu Bytes Written: %llu ", | ~~~^ | | | long long unsigned int | %lu 67 | inj_cnt, cap_cnt, 68 | (u_int64_t)ln_stats.bytes_written); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c:70:33: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] 70 | fprintf(stdout, "Errors: %llu", | ~~~^ | | | long long unsigned int | %lu 71 | (u_int64_t)ln_stats.packet_errors); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int stats.c: In function ‘capture_stats’: stats.c:91:27: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 91 | print_separator(0, 1, "Packet Capture Statistics"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:42, from stats.h:26, from stats.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ stats.c:93:63: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘u_int64_t’ {aka ‘long unsigned int’} [-Wformat=] 93 | fprintf(stdout, "Received: %u Dropped: %u Processed: %llu", | ~~~^ | | | long long unsigned int | %lu 94 | p_stats.ps_recv, p_stats.ps_drop, inj_cnt); | ~~~~~~~ | | | u_int64_t {aka long unsigned int} source='contrib/pcap_setnonblock.c' object='pcap_setnonblock.o' libtool=no \ depfile='.deps/pcap_setnonblock.Po' tmpdepfile='.deps/pcap_setnonblock.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c -o pcap_setnonblock.o `test -f 'contrib/pcap_setnonblock.c' || echo './'`contrib/pcap_setnonblock.c source='usage.c' object='usage.o' libtool=no \ depfile='.deps/usage.Po' tmpdepfile='.deps/usage.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'usage.c' || echo './'`usage.c source='exit.c' object='exit.o' libtool=no \ depfile='.deps/exit.Po' tmpdepfile='.deps/exit.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'exit.c' || echo './'`exit.c exit.c: In function ‘injection_clean_exit’: exit.c:39:19: warning: pointer targets in passing argument 1 of ‘fgets’ differ in signedness [-Wpointer-sign] 39 | fgets(a, 16, stdin); | ^ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:62, from globals.h:31, from exit.h:26, from exit.c:23: /usr/include/stdio.h:568:38: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 568 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | ~~~~~~~~~~~~~~~~~^~~ exit.c:41:29: warning: pointer targets in passing argument 1 of ‘strncasecmp’ differ in signedness [-Wpointer-sign] 41 | if(!strncasecmp(a, "Y", 1)) | ^ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/string.h:446, from /usr/include/libnet.h:63, from globals.h:31, from exit.h:26, from exit.c:23: /usr/include/strings.h:120:37: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 120 | extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ exit.c:44:29: warning: pointer targets in passing argument 1 of ‘strncasecmp’ differ in signedness [-Wpointer-sign] 44 | if(!strncasecmp(a, "N", 1)) | ^ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/string.h:446, from /usr/include/libnet.h:63, from globals.h:31, from exit.h:26, from exit.c:23: /usr/include/strings.h:120:37: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 120 | extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ exit.c:39:13: warning: ‘fgets’ writing 16 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] 39 | fgets(a, 16, stdin); | ^~~~~~~~~~~~~~~~~~~ exit.c:28:14: note: destination object ‘a’ of size 2 28 | u_int8_t a[2]; | ^ In file included from /usr/include/libnet.h:62, from globals.h:31, from exit.h:26, from exit.c:23: /usr/include/stdio.h:568:14: note: in a call to function ‘fgets’ declared with attribute ‘access (write_only, 1, 2)’ 568 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | ^~~~~ source='main.c' object='main.o' libtool=no \ depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'main.c' || echo './'`main.c main.c: In function ‘parse_capture_options’: main.c:58:29: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 58 | if(!(device = strdup(optarg))) | ^ main.c:59:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 59 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:89:22: warning: pointer targets in passing argument 1 of ‘capture_init’ differ in signedness [-Wpointer-sign] 89 | capture_init(argv[optind], cnt); | ~~~~^~~~~~~~ | | | char * In file included from injection.h:28, from main.h:40, from main.c:23: capture.h:31:19: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void capture_init(u_int8_t *, u_int64_t); | ^~~~~~~~~~ main.c: In function ‘parse_inject_options’: main.c:103:35: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 103 | if(getuid() != 0) fatal_error("Sorry, you're not root!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:122:26: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 122 | opts = "a:b:c:d:D:e:E:fF:hH:i:n:p:q:Rs:S:T:o:u:vw:W:Z:"; | ^ main.c:132:26: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 132 | opts = "b:c:d:D:e:E:fhH:i:n:o:p:Rs:S:T:vw:Z:"; | ^ main.c:142:26: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 142 | opts = "b:c:C:d:e:E:fg:G:hH:i:j:J:k:K:l:L:m:M:n:N:o:O:p:P:Q:Rs:t:T:U:vw:z:Z:"; | ^ main.c:148:37: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 148 | fatal_error("ARP is not supported with trace mode."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:158:26: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 158 | opts = "A:b:c:e:E:i:p:Rs:S:vx:X:y:Y:"; | ^ main.c:164:37: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 164 | fatal_error("RAW is not supported with trace mode."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:170:26: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 170 | opts = "b:c:d:e:E:f:i:n:o:p:Rs:T:U:vV:w:Z:"; | ^ main.c:186:26: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 186 | opts = "b:c:C:d:e:E:fg:G:hH:i:j:J:k:K:l:L:m:M:n:N:o:O:p:P:Q:Rs:t:T:U:vw:z:Z:"; | ^ main.c:191:26: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 191 | opts = "a:b:c:d:D:e:E:fF:hH:i:n:p:q:Rs:S:T:o:u:vw:W:Z:"; | ^ main.c:207:37: warning: pointer targets in passing argument 3 of ‘getopt’ differ in signedness [-Wpointer-sign] 207 | while((opt = getopt(argc, argv, opts)) != -1) | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/bits/getopt_posix.h:27, from /usr/include/unistd.h:883, from /usr/include/libnet.h:64, from main.h:26, from main.c:23: /usr/include/bits/getopt_core.h:91:67: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 91 | extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) | ~~~~~~~~~~~~^~~~~~~~~~~ main.c:225:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 225 | fatal_error("Count cannot exceed max TTL value"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:238:38: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 238 | if(!(ip4hdr_o.d_addr = strdup(optarg))) | ^ main.c:239:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 239 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:247:31: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 247 | if(!(s_d_port = strdup(optarg)) && !rand_d_port) | ^ main.c:248:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 248 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:260:36: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 260 | if(!(ehdr_o.s_addr = strdup(optarg))) | ^ main.c:261:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 261 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:275:36: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 275 | if(!(ehdr_o.d_addr = strdup(optarg))) | ^ main.c:276:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 276 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:311:33: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 311 | if(!(i4hdr_o.gw = strdup(optarg))) | ^ main.c:312:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 312 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:317:35: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 317 | if(!(i4hdr_o.mask = strdup(optarg))) | ^ main.c:318:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 318 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:333:29: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 333 | if(!(device = strdup(optarg))) | ^ main.c:334:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 334 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:342:42: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 342 | if(!(i4hdr_o.orig_s_addr = strdup(optarg))) | ^ main.c:343:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 343 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:367:42: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 367 | if(!(i4hdr_o.orig_d_addr = strdup(optarg))) | ^ main.c:368:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 368 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:415:30: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 415 | if(!(payload = strdup(optarg))) | ^ main.c:416:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 416 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:430:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 430 | fatal_error("Unknown ICMP original protocol: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:454:38: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 454 | if(!(ip4hdr_o.s_addr = strdup(optarg))) | ^ main.c:455:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 455 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:470:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 470 | fatal_error("Invalid TTL value: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:507:37: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 507 | if(!(ahdr_o.s_paddr = strdup(optarg))) | ^ main.c:508:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 508 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:516:37: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 516 | if(!(ahdr_o.s_eaddr = strdup(optarg))) | ^ main.c:517:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 517 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:525:37: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 525 | if(!(ahdr_o.r_paddr = strdup(optarg))) | ^ main.c:526:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 526 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c:534:37: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 534 | if(!(ahdr_o.r_eaddr = strdup(optarg))) | ^ main.c:535:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] 535 | fatal_error("Memory unavailable for: %s", optarg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:43, from main.h:37, from main.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ main.c: In function ‘parse_capture_options’: main.c:64:17: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation] 64 | strncpy(w_file, optarg, OPT_MAXLEN); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:68:17: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation] 68 | strncpy(r_file, optarg, OPT_MAXLEN); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source='print_ts.c' object='print_ts.o' libtool=no \ depfile='.deps/print_ts.Po' tmpdepfile='.deps/print_ts.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_ts.c' || echo './'`print_ts.c source='print_arp_hdr.c' object='print_arp_hdr.o' libtool=no \ depfile='.deps/print_arp_hdr.Po' tmpdepfile='.deps/print_arp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_arp_hdr.c' || echo './'`print_arp_hdr.c source='print_tcp_hdr.c' object='print_tcp_hdr.o' libtool=no \ depfile='.deps/print_tcp_hdr.Po' tmpdepfile='.deps/print_tcp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_tcp_hdr.c' || echo './'`print_tcp_hdr.c print_tcp_hdr.c: In function ‘print_tcp_hdr’: print_tcp_hdr.c:47:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 47 | strcat(flags, "U"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_tcp_hdr.c:50:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 50 | strcat(flags, "A"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_tcp_hdr.c:53:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 53 | strcat(flags, "P"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_tcp_hdr.c:56:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 56 | strcat(flags, "R"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_tcp_hdr.c:59:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 59 | strcat(flags, "S"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_tcp_hdr.c:62:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 62 | strcat(flags, "F"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_tcp_hdr.c:64:15: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 64 | if(strlen(flags) == 0) | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ print_tcp_hdr.c:65:16: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] 65 | strcpy(flags, "None"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:125:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 125 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ source='print_udp_hdr.c' object='print_udp_hdr.o' libtool=no \ depfile='.deps/print_udp_hdr.Po' tmpdepfile='.deps/print_udp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_udp_hdr.c' || echo './'`print_udp_hdr.c source='print_icmpv4_hdr.c' object='print_icmpv4_hdr.o' libtool=no \ depfile='.deps/print_icmpv4_hdr.Po' tmpdepfile='.deps/print_icmpv4_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_icmpv4_hdr.c' || echo './'`print_icmpv4_hdr.c print_icmpv4_hdr.c: In function ‘print_icmpv4_hdr’: print_icmpv4_hdr.c:60:24: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 60 | s_addr = libnet_addr2name4(icmp_iphdr.ip_src.s_addr, 0); | ^ print_icmpv4_hdr.c:61:24: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 61 | d_addr = libnet_addr2name4(icmp_iphdr.ip_dst.s_addr, 0); | ^ print_icmpv4_hdr.c:86:24: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 86 | s_addr = libnet_addr2name4(icmp_iphdr.ip_src.s_addr, 0); | ^ print_icmpv4_hdr.c:87:24: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 87 | d_addr = libnet_addr2name4(icmp_iphdr.ip_dst.s_addr, 0); | ^ print_icmpv4_hdr.c:109:24: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 109 | s_addr = libnet_addr2name4(icmp_iphdr.ip_src.s_addr, 0); | ^ print_icmpv4_hdr.c:110:24: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 110 | d_addr = libnet_addr2name4(icmp_iphdr.ip_dst.s_addr, 0); | ^ source='print_ipv4_hdr.c' object='print_ipv4_hdr.o' libtool=no \ depfile='.deps/print_ipv4_hdr.Po' tmpdepfile='.deps/print_ipv4_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_ipv4_hdr.c' || echo './'`print_ipv4_hdr.c print_ipv4_hdr.c: In function ‘print_ipv4_hdr’: print_ipv4_hdr.c:42:12: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 42 | s_addr = libnet_addr2name4(iphdr->ip_src.s_addr, ((resolve == 1 || resolve == 3) ? 1 : 0)); | ^ print_ipv4_hdr.c:43:12: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 43 | d_addr = libnet_addr2name4(iphdr->ip_dst.s_addr, ((resolve == 1 || resolve == 3) ? 1 : 0)); | ^ source='print_ethernet_hdr.c' object='print_ethernet_hdr.o' libtool=no \ depfile='.deps/print_ethernet_hdr.Po' tmpdepfile='.deps/print_ethernet_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_ethernet_hdr.c' || echo './'`print_ethernet_hdr.c source='print_pktdump.c' object='print_pktdump.o' libtool=no \ depfile='.deps/print_pktdump.Po' tmpdepfile='.deps/print_pktdump.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_pktdump.c' || echo './'`print_pktdump.c source='print_capture.c' object='print_capture.o' libtool=no \ depfile='.deps/print_capture.Po' tmpdepfile='.deps/print_capture.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_capture.c' || echo './'`print_capture.c print_capture.c: In function ‘print_capture’: print_capture.c:47:39: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 47 | print_separator(1, 2, "PID %lld", (u_int64_t)cap_cnt + 1); | ^~~~~~~~~~ | | | char * In file included from globals.h:42, from print_capture.h:26, from print_capture.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ print_capture.c:50:39: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 50 | print_separator(1, 2, "RCV %lld", (u_int64_t)inj_cnt); | ^~~~~~~~~~ | | | char * In file included from globals.h:42, from print_capture.h:26, from print_capture.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ print_capture.c:106:39: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 106 | print_separator(1, 2, "PID %lld", (u_int64_t)cap_cnt + 1); | ^~~~~~~~~~ | | | char * In file included from globals.h:42, from print_capture.h:26, from print_capture.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ print_capture.c:109:39: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] 109 | print_separator(1, 2, "RCV %lld", (u_int64_t)inj_cnt); | ^~~~~~~~~~ | | | char * In file included from globals.h:42, from print_capture.h:26, from print_capture.c:23: utils.h:31:32: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~~~ source='print_injection.c' object='print_injection.o' libtool=no \ depfile='.deps/print_injection.Po' tmpdepfile='.deps/print_injection.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -fcommon -Wall -c `test -f 'print_injection.c' || echo './'`print_injection.c print_injection.c: In function ‘print_injection_details’: print_injection.c:44:30: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 44 | strcat(thdr_o.flags, "S"); | ~~~~~~^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_injection.c:47:30: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 47 | strcat(thdr_o.flags, "A"); | ~~~~~~^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_injection.c:50:30: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 50 | strcat(thdr_o.flags, "F"); | ~~~~~~^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_injection.c:53:30: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 53 | strcat(thdr_o.flags, "R"); | ~~~~~~^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_injection.c:56:30: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 56 | strcat(thdr_o.flags, "P"); | ~~~~~~^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_injection.c:59:30: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 59 | strcat(thdr_o.flags, "U"); | ~~~~~~^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 133 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ print_injection.c:61:29: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 61 | if(strlen(thdr_o.flags) < 1) | ~~~~~~^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:391:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 391 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ print_injection.c:62:30: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] 62 | strcpy(thdr_o.flags, "None"); | ~~~~~~^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:125:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 125 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src) | ~~~~~~~~~~~~~~~~~^~~~~~ gcc -O2 -fPIC -fcommon -Wall -o packit init.o define_defaults.o error.o injection.o capture.o shape_arp_hdr.o shape_tcp_hdr.o shape_udp_hdr.o shape_icmpv4_hdr.o shape_ipv4_hdr.o shape_ethernet_hdr.o shape_packet.o utils.o stats.o pcap_setnonblock.o usage.o exit.o main.o print_ts.o print_arp_hdr.o print_tcp_hdr.o print_udp_hdr.o print_icmpv4_hdr.o print_ipv4_hdr.o print_ethernet_hdr.o print_pktdump.o print_capture.o print_injection.o -lpcap -lpcap -lpcap -lnet make[2]: Entering directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0/src' /bin/sh ../mkinstalldirs /usr/src/slapt-src-x86_64/network/packit/package-packit/usr/sbin mkdir -p -- /usr/src/slapt-src-x86_64/network/packit/package-packit/usr/sbin /usr/bin/ginstall -c packit /usr/src/slapt-src-x86_64/network/packit/package-packit/usr/sbin/packit make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0/src' make[1]: Leaving directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0/src' Making install in man make[1]: Entering directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0/man' make[2]: Entering directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0/man' make[2]: Nothing to be done for 'install-exec-am'. /bin/sh ../mkinstalldirs /usr/src/slapt-src-x86_64/network/packit/package-packit/usr/man/man8 mkdir -p -- /usr/src/slapt-src-x86_64/network/packit/package-packit/usr/man/man8 /usr/bin/ginstall -c -m 644 ./packit.8 /usr/src/slapt-src-x86_64/network/packit/package-packit/usr/man/man8/packit.8 make[2]: Leaving directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0/man' make[1]: Leaving directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0/man' make[1]: Entering directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0' make[2]: Entering directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0' make[1]: Leaving directory '/usr/src/slapt-src-x86_64/network/packit/packit-1.0' Slackware package maker, version 3.14159265. Searching for symbolic links: No symbolic links were found, so we won't make an installation script. You can make your own later in ./install/doinst.sh and rebuild the package if you like. This next step is optional - you can set the directories in your package to some sane permissions. If any of the directories in your package have special permissions, then DO NOT reset them here! Would you like to reset all directory permissions to 755 (drwxr-xr-x) and directory ownerships to root.root ([y]es, [n]o)? n Creating Slackware package: /usr/src/slapt-src-x86_64/network/packit/packit-1.0-x86_64-4salix15.0.txz ./ install/ install/slack-desc usr/ usr/doc/ usr/doc/packit-1.0/ usr/doc/packit-1.0/ChangeLog usr/doc/packit-1.0/LICENSE usr/doc/packit-1.0/docs/ usr/doc/packit-1.0/docs/ICMP.txt usr/doc/packit-1.0/packit.SlackBuild usr/man/ usr/man/man8/ usr/man/man8/packit.8.gz usr/sbin/ usr/sbin/packit Slackware package /usr/src/slapt-src-x86_64/network/packit/packit-1.0-x86_64-4salix15.0.txz created. Installing package packit-1.0-x86_64-4salix15.0... | packit (network injection and capture) | | Packit (Packet toolkit) is a network auditing tool. Its value is | derived from its ability to customize, inject, monitor, and | manipulate IP traffic. By allowing you to define (spoof) nearly all | TCP, UDP, ICMP, IP, ARP, RARP, and Ethernet header options, Packit | can be useful in testing firewalls, intrusion detection/prevention | systems, port scanning, simulating network traffic, and general | TCP/IP auditing. Packit is also an excellent tool for learning | TCP/IP. | | |