Diff of the two buildlogs: -- --- b1/build.log 2024-12-17 10:42:42.159935151 +0000 +++ b2/build.log 2024-12-17 10:45:06.505365136 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Dec 16 22:41:13 -12 2024 -I: pbuilder-time-stamp: 1734432073 +I: Current time: Tue Jan 20 07:05:45 +14 2026 +I: pbuilder-time-stamp: 1768842345 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -27,52 +27,84 @@ dpkg-source: info: applying debian.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2920232/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2248660/tmp/hooks/D01_modify_environment starting +debug: Running on ionos5-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jan 19 17:06 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/2248660/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2248660/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='e6c38b83830c4ae5bec1022778c4c577' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='2920232' - PS1='# ' - PS2='> ' + INVOCATION_ID=06850b861b52416dbadc27d6838d1fd3 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=2248660 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.5LTJ84FG/pbuilderrc_0RsS --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.5LTJ84FG/b1 --logfile b1/build.log 4g8_1.0-6.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.5LTJ84FG/pbuilderrc_boBR --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.5LTJ84FG/b2 --logfile b2/build.log 4g8_1.0-6.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos11-amd64 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.11.5+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.5-1~bpo12+1 (2024-11-11) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2920232/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/2248660/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -154,7 +186,7 @@ Get: 40 http://deb.debian.org/debian unstable/main amd64 libpcap0.8t64 amd64 1.10.5-1 [169 kB] Get: 41 http://deb.debian.org/debian unstable/main amd64 libpcap0.8-dev amd64 1.10.5-1 [284 kB] Get: 42 http://deb.debian.org/debian unstable/main amd64 libpcap-dev amd64 1.10.5-1 [31.7 kB] -Fetched 22.4 MB in 2s (12.7 MB/s) +Fetched 22.4 MB in 3s (6642 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sgml-base. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19966 files and directories currently installed.) @@ -338,7 +370,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/4g8-1.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../4g8_1.0-6_source.changes +I: user script /srv/workspace/pbuilder/2248660/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/2248660/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/4g8-1.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../4g8_1.0-6_source.changes dpkg-buildpackage: info: source package 4g8 dpkg-buildpackage: info: source version 1.0-6 dpkg-buildpackage: info: source distribution unstable @@ -445,7 +481,7 @@ ----------------------------------------------- dh_auto_build - make -j20 + make -j42 make[1]: Entering directory '/build/reproducible-path/4g8-1.0' make all-recursive make[2]: Entering directory '/build/reproducible-path/4g8-1.0' @@ -466,12 +502,41 @@ gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/4g8-1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -c -o dump_packet.o dump_packet.c gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/4g8-1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -c -o arp_cache.o arp_cache.c gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/4g8-1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -c -o process_packets.o process_packets.c +ethernet_hdr.c: In function 'ethernet_hdr': +ethernet_hdr.c:69:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 69 | fatal_error("Unable to build ethernet header"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +In file included from usage.h:29, + from globals.h:45, + from ethernet_hdr.h:26, + from 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 *,...); + | ^~~~~~~~~~ utils.c: In function 'print_separator': utils.c:88:15: warning: pointer targets in passing argument 1 of 'vsnprintf' differ in signedness [-Wpointer-sign] 88 | vsnprintf(msg, 256, msgp, va); | ^~~ | | | u_int8_t * {aka unsigned char *} +tcp_hdr.c: In function 'tcp_hdr': +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/features.h:510, + from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, + from /usr/include/stdio.h:28, + from /usr/include/libnet.h:53, + from globals.h:31, + from tcp_hdr.h:26, + from tcp_hdr.c:23: +/usr/include/x86_64-linux-gnu/bits/string_fortified.h:136:16: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 136 | __NTH (strcat (__fortify_clang_overload_arg (char *, __restrict, __dest), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:510, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, @@ -482,6 +547,14 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:93:19: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 93 | __NTH (vsnprintf (__fortify_clang_overload_arg (char *, __restrict, __s), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 *} +/usr/include/x86_64-linux-gnu/bits/string_fortified.h:136:16: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 136 | __NTH (strcat (__fortify_clang_overload_arg (char *, __restrict, __dest), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:88:25: warning: pointer targets in passing argument 3 of 'vsnprintf' differ in signedness [-Wpointer-sign] 88 | vsnprintf(msg, 256, msgp, va); | ^~~~ @@ -490,15 +563,64 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:93:1: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 93 | __NTH (vsnprintf (__fortify_clang_overload_arg (char *, __restrict, __s), | ^~~~~ +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 *} +/usr/include/x86_64-linux-gnu/bits/string_fortified.h:136:16: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 136 | __NTH (strcat (__fortify_clang_overload_arg (char *, __restrict, __dest), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:90:22: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 90 | msg_len = strlen(msg); | ^~~ | | | u_int8_t * {aka unsigned char *} +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 *} +/usr/include/x86_64-linux-gnu/bits/string_fortified.h:136:16: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 136 | __NTH (strcat (__fortify_clang_overload_arg (char *, __restrict, __dest), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 *} +/usr/include/x86_64-linux-gnu/bits/string_fortified.h:136:16: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 136 | __NTH (strcat (__fortify_clang_overload_arg (char *, __restrict, __dest), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/libnet.h:54: +/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 407 | extern size_t strlen (const char *__s) + | ~~~~~~~~~~~~^~~ +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 *} +/usr/include/x86_64-linux-gnu/bits/string_fortified.h:136:16: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 136 | __NTH (strcat (__fortify_clang_overload_arg (char *, __restrict, __dest), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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:54: /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ +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 *} +/usr/include/x86_64-linux-gnu/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c: In function 'retrieve_icmp_code': utils.c:122:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 122 | sprintf(icmp_c, "Network"); @@ -516,6 +638,16 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ +tcp_hdr.c:102:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 102 | fatal_error("Unable to build TCP header: %s", libnet_geterror(pkt_d)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +In file included from usage.h:29, + from globals.h:45: +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 *,...); + | ^~~~~~~~~~ utils.c:130:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 130 | sprintf(icmp_c, "Protocol"); | ^~~~~~ @@ -652,6 +784,12 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ +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 *} utils.c:204:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 204 | sprintf(icmp_c, "ToS Net"); | ^~~~~~ @@ -660,6 +798,16 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ +In file included from /usr/include/features.h:510, + from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, + from /usr/include/stdio.h:28, + from /usr/include/libnet.h:53, + from globals.h:31, + from error.h:26, + from error.c:23: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:93:1: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 93 | __NTH (vsnprintf (__fortify_clang_overload_arg (char *, __restrict, __s), + | ^~~~~ utils.c:208:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 208 | sprintf(icmp_c, "ToS Host"); | ^~~~~~ @@ -725,30 +873,21 @@ 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c: In function 'retrieve_icmp_type': +icmpv4_hdr.c: In function 'icmpv4_hdr': +icmpv4_hdr.c:58:20: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 58 | s_addr = libnet_addr2name4(icmp_iphdr.ip_src.s_addr, 0); + | ^ +icmpv4_hdr.c:59:20: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 59 | d_addr = libnet_addr2name4(icmp_iphdr.ip_dst.s_addr, 0); + | ^ utils.c:271:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 271 | sprintf(icmp_t, "Echo Reply"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} -error.c: In function 'fatal_error': /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ -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/features.h:510, - from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, - from /usr/include/stdio.h:28, - from /usr/include/libnet.h:53, - from globals.h:31, - from error.h:26, - from error.c:23: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:93:1: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 93 | __NTH (vsnprintf (__fortify_clang_overload_arg (char *, __restrict, __s), - | ^~~~~ utils.c:275:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 275 | sprintf(icmp_t, "Unreachable"); | ^~~~~~ @@ -765,6 +904,9 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ +icmpv4_hdr.c:81:20: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 81 | s_addr = libnet_addr2name4(icmp_iphdr.ip_src.s_addr, 0); + | ^ utils.c:283:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 283 | sprintf(icmp_t, "Redirect"); | ^~~~~~ @@ -773,6 +915,9 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ +icmpv4_hdr.c:82:20: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 82 | d_addr = libnet_addr2name4(icmp_iphdr.ip_dst.s_addr, 0); + | ^ utils.c:287:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 287 | sprintf(icmp_t, "Echo Request"); | ^~~~~~ @@ -813,6 +958,11 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ +icmpv4_hdr.c:111:29: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 111 | fatal_error("Unable to build original IP header: %s", libnet_geterror(pkt_d)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * utils.c:307:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 307 | sprintf(icmp_t, "Info Request"); | ^~~~~~ @@ -821,6 +971,13 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ +In file included from usage.h:29, + from globals.h:45, + from icmpv4_hdr.h:26, + from 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 *,...); + | ^~~~~~~~~~ utils.c:311:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 311 | sprintf(icmp_t, "Info Reply"); | ^~~~~~ @@ -837,6 +994,14 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ +icmpv4_hdr.c:123:29: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 123 | fatal_error("Unable to build ICMPv4 unreach header: %s", libnet_geterror(pkt_d)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +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 *,...); + | ^~~~~~~~~~ utils.c:319:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 319 | sprintf(icmp_t, "Router Selection"); | ^~~~~~ @@ -845,6 +1010,9 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ +icmpv4_hdr.c:131:20: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 131 | s_addr = libnet_addr2name4(icmp_iphdr.ip_src.s_addr, 0); + | ^ utils.c:323:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 323 | sprintf(icmp_t, "Address Mask Request"); | ^~~~~~ @@ -853,6 +1021,9 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ +icmpv4_hdr.c:132:20: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 132 | d_addr = libnet_addr2name4(icmp_iphdr.ip_dst.s_addr, 0); + | ^ utils.c:327:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 327 | sprintf(icmp_t, "Address Mask Reply"); | ^~~~~~ @@ -877,6 +1048,90 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ +icmpv4_hdr.c:179:29: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 179 | fatal_error("Unable to build ICMPv4 mask header: %s", libnet_geterror(pkt_d)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +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 *,...); + | ^~~~~~~~~~ +icmpv4_hdr.c:203:29: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 203 | fatal_error("Unable to build ICMPv4 echo header: %s", libnet_geterror(pkt_d)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +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 *,...); + | ^~~~~~~~~~ +icmpv4_hdr.c:226:29: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 226 | fatal_error("Unable to build ICMPv4 mask header: %s", libnet_geterror(pkt_d)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +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 'main': +main.c:60:28: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 60 | if(!(gw_ip = strdup(optarg))) + | ^ +main.c:61:33: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 61 | fatal_error("Memory unavailable for: %s", optarg); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +In file included from usage.h:29, + from globals.h:45, + from main.h:44, + 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:66:29: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 66 | if(!(gw_mac = strdup(optarg))) + | ^ +main.c:67:33: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 67 | fatal_error("Memory unavailable for: %s", optarg); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +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:77:29: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 77 | if(!(device = strdup(optarg))) + | ^ +main.c:78:33: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 78 | fatal_error("Memory unavailable for: %s", optarg); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +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:83:30: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 83 | if(!(host_ip = strdup(optarg))) + | ^ +main.c:84:33: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 84 | fatal_error("Memory unavailable for: %s", optarg); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +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:31: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 89 | if(!(host_mac = strdup(optarg))) + | ^ +main.c:90:33: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 90 | fatal_error("Memory unavailable for: %s", optarg); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +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 *,...); + | ^~~~~~~~~~ utils.c: In function 'retrieve_arp_hw_type': utils.c:356:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 356 | sprintf(hw_t, "Net/ROM Pseudo"); @@ -902,25 +1157,6 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ -init.c: In function 'capture_loop': -init.c:32:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 32 | fatal_error("Unable to inject packet"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -In file included from usage.h:29, - from globals.h:45, - from init.h:26, - from init.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 *,...); - | ^~~~~~~~~~ -init.c: In function 'init': -init.c:61:32: warning: pointer targets in passing argument 2 of 'libnet_init' differ in signedness [-Wpointer-sign] - 61 | if((pkt_d = libnet_init(0, device, error_buf)) == NULL) - | ^~~~~~ - | | - | u_int8_t * {aka unsigned char *} utils.c:368:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 368 | sprintf(hw_t, "AX.25 Level 2"); | ^~~~ @@ -929,19 +1165,6 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ -In file included from /usr/include/libnet.h:109, - from globals.h:31: -/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); - | ~~~~~~~~~~~~^~~~~~ -init.c:62:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 62 | fatal_error("Unable to initialize packet injection"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -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 *,...); - | ^~~~~~~~~~ utils.c:372:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 372 | sprintf(hw_t, "ProNet Token Ring"); | ^~~~ @@ -950,100 +1173,30 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ -init.c:65:9: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] - 65 | if((device = pcap_lookupdev(error_buf)) == NULL) - | ^~ -In file included from globals.h:32: -/usr/include/pcap/pcap.h:444:18: note: declared here - 444 | PCAP_API char *pcap_lookupdev(char *); - | ^~~~~~~~~~~~~~ -init.c:65:20: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 65 | if((device = pcap_lookupdev(error_buf)) == NULL) - | ^ utils.c:376:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 376 | sprintf(hw_t, "IEEE 802.2 Ethernet"); | ^~~~ | | | u_int8_t * {aka unsigned char *} -init.c:66:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 66 | fatal_error("%s: Check device permissions", error_buf); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -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 *,...); - | ^~~~~~~~~~ -init.c:68:30: warning: pointer targets in passing argument 1 of 'pcap_open_live' differ in signedness [-Wpointer-sign] - 68 | if((pkt = pcap_open_live(device, 1500, 1, 500, error_buf)) == NULL) - | ^~~~~~ - | | - | u_int8_t * {aka unsigned char *} -/usr/include/pcap/pcap.h:564:33: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 564 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); - | ^~~~~~~~~~~~ -init.c:69:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 69 | fatal_error("Unable to open device: %s", error_buf); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ -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 *,...); - | ^~~~~~~~~~ -init.c:78:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 78 | fatal_error("Unable to initialize packet capture: %s", pcap_geterr(pkt)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * utils.c:380:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 380 | sprintf(hw_t, "ARCNet"); | ^~~~ | | | u_int8_t * {aka unsigned char *} -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 *,...); - | ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ -init.c:83:23: warning: pointer targets in passing argument 1 of 'pcap_lookupnet' differ in signedness [-Wpointer-sign] - 83 | if(pcap_lookupnet(device, &localnet, &netmask, error_buf) < 0) - | ^~~~~~ - | | - | u_int8_t * {aka unsigned char *} -/usr/include/pcap/pcap.h:447:32: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 447 | PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); - | ^~~~~~~~~~~~ utils.c:384:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 384 | sprintf(hw_t, "AppleTalk"); | ^~~~ | | | u_int8_t * {aka unsigned char *} -init.c:87:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] - 87 | snprintf(filter, 255, "(ip src host %s and ether dst %0x:%0x:%0x:%0x:%0x:%0x) or (ip dst host %s and ether dst %0x:%0x:%0x:%0x:%0x:%0x)", - | ^~~~~~ - | | - | u_int8_t * {aka unsigned char *} /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ -In file included from /usr/include/features.h:510, - from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, - from /usr/include/stdio.h:28, - from /usr/include/libnet.h:53: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 65 | __NTH (snprintf (char *__restrict __s, size_t __n, - | ^~~~~ -init.c:105:32: warning: pointer targets in passing argument 3 of 'pcap_compile' differ in signedness [-Wpointer-sign] - 105 | if(pcap_compile(pkt, &bpf, filter, 0, netmask) < 0) - | ^~~~~~ - | | - | u_int8_t * {aka unsigned char *} -/usr/include/pcap/pcap.h:662:62: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 662 | PCAP_API int pcap_compile(pcap_t *, struct bpf_program *, const char *, int, - | ^~~~~~~~~~~~ utils.c:388:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 388 | sprintf(hw_t, "Lanstar"); | ^~~~ @@ -1052,19 +1205,6 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ -init.c:106:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 106 | fatal_error("Unable to compile packet filters: %s\n", pcap_geterr(pkt)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -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 *,...); - | ^~~~~~~~~~ -init.c:109:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 109 | fatal_error("Unable to set packet filters: %s", pcap_geterr(pkt)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * utils.c:392:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 392 | sprintf(hw_t, "Frame Relay DLCI"); | ^~~~ @@ -1073,9 +1213,6 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ -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 *,...); - | ^~~~~~~~~~ utils.c:396:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 396 | sprintf(hw_t, "ATM"); | ^~~~ @@ -1100,30 +1237,14 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ -init.c:116:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 116 | fatal_error("Unable to determine datalink type: %s", pcap_geterr(pkt)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * utils.c: At top level: utils.c:416:49: warning: argument 2 of type 'u_int8_t[6]' {aka 'unsigned char[6]'} with mismatched bound [-Warray-parameter=] 416 | format_ethernet_addr(u_int8_t *ethstr, u_int8_t u_eaddr[6]) | ~~~~~~~~~^~~~~~~~~~ -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 *,...); - | ^~~~~~~~~~ utils.h:38:44: note: previously declared as 'u_int8_t[]' {aka 'unsigned char[]'} 38 | u_int32_t format_ethernet_addr(u_int8_t *, u_int8_t[]); | ^~~~~~~~~~ utils.c: In function 'format_ethernet_addr': -init.c:130:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 130 | fatal_error("Unable to initialize pcap_loop: %s", pcap_geterr(pkt)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -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 *,...); - | ^~~~~~~~~~ utils.c:420:30: warning: pointer targets in initialization of 'u_int8_t *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 420 | u_int8_t *eptr, *delim = ":"; | ^~~ @@ -1199,104 +1320,20 @@ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ -main.c: In function 'main': -main.c:60:28: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 60 | if(!(gw_ip = strdup(optarg))) - | ^ -main.c:61:33: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 61 | fatal_error("Memory unavailable for: %s", optarg); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -In file included from usage.h:29, - from globals.h:45, - from main.h:44, - 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:66:29: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 66 | if(!(gw_mac = strdup(optarg))) - | ^ -main.c:67:33: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 67 | fatal_error("Memory unavailable for: %s", optarg); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -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:77:29: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 77 | if(!(device = strdup(optarg))) - | ^ -main.c:78:33: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 78 | fatal_error("Memory unavailable for: %s", optarg); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -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:83:30: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 83 | if(!(host_ip = strdup(optarg))) - | ^ -main.c:84:33: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 84 | fatal_error("Memory unavailable for: %s", optarg); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -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:31: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 89 | if(!(host_mac = strdup(optarg))) - | ^ -main.c:90:33: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 90 | fatal_error("Memory unavailable for: %s", optarg); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -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 *,...); - | ^~~~~~~~~~ -stats.c: In function 'capture_stats': -udp_hdr.c: In function 'udp_hdr': -udp_hdr.c:55:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 55 | fatal_error("Unable to build UDP header: %s", libnet_geterror(pkt_d)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -stats.c:46:27: warning: pointer targets in passing argument 3 of 'print_separator' differ in signedness [-Wpointer-sign] - 46 | print_separator(0, 1, "4g8 Capture Statistics"); - | ^~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -In file included from usage.h:29, - from globals.h:45, - from udp_hdr.h:26, - from 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 *,...); - | ^~~~~~~~~~ -In file included from globals.h:44, - from stats.h:26, - from stats.c:23: -utils.h:29:32: note: expected 'u_int8_t *' {aka 'unsigned char *'} but argument is of type 'char *' - 29 | void print_separator(int, int, u_int8_t *, ...); - | ^~~~~~~~~~ -ethernet_hdr.c: In function 'ethernet_hdr': -ethernet_hdr.c:69:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 69 | fatal_error("Unable to build ethernet header"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +init.c: In function 'capture_loop': +init.c:32:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 32 | fatal_error("Unable to inject packet"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from usage.h:29, from globals.h:45, - from ethernet_hdr.h:26, - from ethernet_hdr.c:23: + from init.h:26, + from init.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 *,...); | ^~~~~~~~~~ +init.c: In function 'init': main.c:100:17: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation] 100 | strncpy(w_file, optarg, OPT_MAXLEN); | ^ @@ -1446,176 +1483,175 @@ 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 *,...); | ^~~~~~~~~~ -ipv4_hdr.c: In function 'ipv4_hdr': -ipv4_hdr.c:37:12: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 37 | s_addr = libnet_addr2name4(iphdr->ip_src.s_addr, 0); - | ^ -ipv4_hdr.c:38:12: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 38 | d_addr = libnet_addr2name4(iphdr->ip_dst.s_addr, 0); - | ^ -ipv4_hdr.c:68:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 68 | fatal_error("Unable to build IP header: %s", libnet_geterror(pkt_d)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +init.c:61:32: warning: pointer targets in passing argument 2 of 'libnet_init' differ in signedness [-Wpointer-sign] + 61 | if((pkt_d = libnet_init(0, device, error_buf)) == NULL) + | ^~~~~~ + | | + | u_int8_t * {aka unsigned char *} +In file included from /usr/include/libnet.h:109, + from globals.h:31: +/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); + | ~~~~~~~~~~~~^~~~~~ +init.c:62:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 62 | fatal_error("Unable to initialize packet injection"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * -In file included from usage.h:29, - from globals.h:45, - from ipv4_hdr.h:26, - from 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 *,...); | ^~~~~~~~~~ -In file included from /usr/include/stdio.h:970: -In function 'vsnprintf', - inlined from 'print_separator' at utils.c:88:5: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:100:10: warning: '__builtin___vsnprintf_chk' specified bound 256 exceeds destination size 255 [-Wstringop-overflow=] - 100 | return __builtin___vsnprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 101 | __glibc_objsize (__s), __fmt, __ap); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -tcp_hdr.c: In function 'tcp_hdr': -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 *} +init.c:65:9: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] + 65 | if((device = pcap_lookupdev(error_buf)) == NULL) + | ^~ +In file included from globals.h:32: +/usr/include/pcap/pcap.h:444:18: note: declared here + 444 | PCAP_API char *pcap_lookupdev(char *); + | ^~~~~~~~~~~~~~ +init.c:65:20: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 65 | if((device = pcap_lookupdev(error_buf)) == NULL) + | ^ +init.c:66:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 66 | fatal_error("%s: Check device permissions", error_buf); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +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 *,...); + | ^~~~~~~~~~ +init.c:68:30: warning: pointer targets in passing argument 1 of 'pcap_open_live' differ in signedness [-Wpointer-sign] + 68 | if((pkt = pcap_open_live(device, 1500, 1, 500, error_buf)) == NULL) + | ^~~~~~ + | | + | u_int8_t * {aka unsigned char *} +/usr/include/pcap/pcap.h:564:33: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 564 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); + | ^~~~~~~~~~~~ +init.c:69:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 69 | fatal_error("Unable to open device: %s", error_buf); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +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 *,...); + | ^~~~~~~~~~ +init.c:78:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 78 | fatal_error("Unable to initialize packet capture: %s", pcap_geterr(pkt)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +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 *,...); + | ^~~~~~~~~~ +init.c:83:23: warning: pointer targets in passing argument 1 of 'pcap_lookupnet' differ in signedness [-Wpointer-sign] + 83 | if(pcap_lookupnet(device, &localnet, &netmask, error_buf) < 0) + | ^~~~~~ + | | + | u_int8_t * {aka unsigned char *} +/usr/include/pcap/pcap.h:447:32: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 447 | PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); + | ^~~~~~~~~~~~ +init.c:87:14: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] + 87 | snprintf(filter, 255, "(ip src host %s and ether dst %0x:%0x:%0x:%0x:%0x:%0x) or (ip dst host %s and ether dst %0x:%0x:%0x:%0x:%0x:%0x)", + | ^~~~~~ + | | + | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:510, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, - from /usr/include/libnet.h:53, - from globals.h:31, - from tcp_hdr.h:26, - from tcp_hdr.c:23: -/usr/include/x86_64-linux-gnu/bits/string_fortified.h:136:16: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 136 | __NTH (strcat (__fortify_clang_overload_arg (char *, __restrict, __dest), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 *} -/usr/include/x86_64-linux-gnu/bits/string_fortified.h:136:16: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 136 | __NTH (strcat (__fortify_clang_overload_arg (char *, __restrict, __dest), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 *} -/usr/include/x86_64-linux-gnu/bits/string_fortified.h:136:16: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 136 | __NTH (strcat (__fortify_clang_overload_arg (char *, __restrict, __dest), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 *} -/usr/include/x86_64-linux-gnu/bits/string_fortified.h:136:16: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 136 | __NTH (strcat (__fortify_clang_overload_arg (char *, __restrict, __dest), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 *} -/usr/include/x86_64-linux-gnu/bits/string_fortified.h:136:16: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 136 | __NTH (strcat (__fortify_clang_overload_arg (char *, __restrict, __dest), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 *} -/usr/include/x86_64-linux-gnu/bits/string_fortified.h:136:16: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 136 | __NTH (strcat (__fortify_clang_overload_arg (char *, __restrict, __dest), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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:54: -/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 407 | extern size_t strlen (const char *__s) - | ~~~~~~~~~~~~^~~ -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 *} -/usr/include/x86_64-linux-gnu/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -tcp_hdr.c:102:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 102 | fatal_error("Unable to build TCP header: %s", libnet_geterror(pkt_d)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + from /usr/include/libnet.h:53: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:1: note: expected 'char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 65 | __NTH (snprintf (char *__restrict __s, size_t __n, + | ^~~~~ +init.c:105:32: warning: pointer targets in passing argument 3 of 'pcap_compile' differ in signedness [-Wpointer-sign] + 105 | if(pcap_compile(pkt, &bpf, filter, 0, netmask) < 0) + | ^~~~~~ + | | + | u_int8_t * {aka unsigned char *} +/usr/include/pcap/pcap.h:662:62: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 662 | PCAP_API int pcap_compile(pcap_t *, struct bpf_program *, const char *, int, + | ^~~~~~~~~~~~ +init.c:106:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 106 | fatal_error("Unable to compile packet filters: %s\n", pcap_geterr(pkt)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * -In file included from usage.h:29, - from globals.h:45: 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 *,...); | ^~~~~~~~~~ -icmpv4_hdr.c: In function 'icmpv4_hdr': -icmpv4_hdr.c:58:20: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 58 | s_addr = libnet_addr2name4(icmp_iphdr.ip_src.s_addr, 0); - | ^ -icmpv4_hdr.c:59:20: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 59 | d_addr = libnet_addr2name4(icmp_iphdr.ip_dst.s_addr, 0); - | ^ -icmpv4_hdr.c:81:20: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 81 | s_addr = libnet_addr2name4(icmp_iphdr.ip_src.s_addr, 0); - | ^ -icmpv4_hdr.c:82:20: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 82 | d_addr = libnet_addr2name4(icmp_iphdr.ip_dst.s_addr, 0); - | ^ -icmpv4_hdr.c:111:29: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 111 | fatal_error("Unable to build original IP header: %s", libnet_geterror(pkt_d)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -In file included from usage.h:29, - from globals.h:45, - from icmpv4_hdr.h:26, - from icmpv4_hdr.c:23: +init.c:109:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 109 | fatal_error("Unable to set packet filters: %s", pcap_geterr(pkt)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * 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 *,...); | ^~~~~~~~~~ -icmpv4_hdr.c:123:29: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 123 | fatal_error("Unable to build ICMPv4 unreach header: %s", libnet_geterror(pkt_d)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * +init.c:116:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 116 | fatal_error("Unable to determine datalink type: %s", pcap_geterr(pkt)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * 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 *,...); | ^~~~~~~~~~ -icmpv4_hdr.c:131:20: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 131 | s_addr = libnet_addr2name4(icmp_iphdr.ip_src.s_addr, 0); - | ^ -icmpv4_hdr.c:132:20: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 132 | d_addr = libnet_addr2name4(icmp_iphdr.ip_dst.s_addr, 0); - | ^ -icmpv4_hdr.c:179:29: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 179 | fatal_error("Unable to build ICMPv4 mask header: %s", libnet_geterror(pkt_d)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * +init.c:130:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 130 | fatal_error("Unable to initialize pcap_loop: %s", pcap_geterr(pkt)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * 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 *,...); | ^~~~~~~~~~ -icmpv4_hdr.c:203:29: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 203 | fatal_error("Unable to build ICMPv4 echo header: %s", libnet_geterror(pkt_d)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * +In file included from /usr/include/stdio.h:970: +In function 'vsnprintf', + inlined from 'print_separator' at utils.c:88:5: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:100:10: warning: '__builtin___vsnprintf_chk' specified bound 256 exceeds destination size 255 [-Wstringop-overflow=] + 100 | return __builtin___vsnprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 101 | __glibc_objsize (__s), __fmt, __ap); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +udp_hdr.c: In function 'udp_hdr': +udp_hdr.c:55:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 55 | fatal_error("Unable to build UDP header: %s", libnet_geterror(pkt_d)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +In file included from usage.h:29, + from globals.h:45, + from udp_hdr.h:26, + from 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 *,...); | ^~~~~~~~~~ -icmpv4_hdr.c:226:29: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 226 | fatal_error("Unable to build ICMPv4 mask header: %s", libnet_geterror(pkt_d)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * +stats.c: In function 'capture_stats': +stats.c:46:27: warning: pointer targets in passing argument 3 of 'print_separator' differ in signedness [-Wpointer-sign] + 46 | print_separator(0, 1, "4g8 Capture Statistics"); + | ^~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +In file included from globals.h:44, + from stats.h:26, + from stats.c:23: +utils.h:29:32: note: expected 'u_int8_t *' {aka 'unsigned char *'} but argument is of type 'char *' + 29 | void print_separator(int, int, u_int8_t *, ...); + | ^~~~~~~~~~ +ipv4_hdr.c: In function 'ipv4_hdr': +ipv4_hdr.c:37:12: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 37 | s_addr = libnet_addr2name4(iphdr->ip_src.s_addr, 0); + | ^ +ipv4_hdr.c:38:12: warning: pointer targets in assignment from 'char *' to 'u_int8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 38 | d_addr = libnet_addr2name4(iphdr->ip_dst.s_addr, 0); + | ^ +ipv4_hdr.c:68:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 68 | fatal_error("Unable to build IP header: %s", libnet_geterror(pkt_d)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +In file included from usage.h:29, + from globals.h:45, + from ipv4_hdr.h:26, + from 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 *,...); | ^~~~~~~~~~ @@ -1644,7 +1680,7 @@ make[2]: Leaving directory '/build/reproducible-path/4g8-1.0' make[1]: Leaving directory '/build/reproducible-path/4g8-1.0' dh_auto_test - make -j20 check "TESTSUITEFLAGS=-j20 --verbose" VERBOSE=1 + make -j42 check "TESTSUITEFLAGS=-j42 --verbose" VERBOSE=1 make[1]: Entering directory '/build/reproducible-path/4g8-1.0' Making check in src make[2]: Entering directory '/build/reproducible-path/4g8-1.0/src' @@ -1656,13 +1692,13 @@ create-stamp debian/debhelper-build-stamp dh_prep dh_auto_install --destdir=debian/4g8/ - make -j20 install DESTDIR=/build/reproducible-path/4g8-1.0/debian/4g8 AM_UPDATE_INFO_DIR=no + make -j42 install DESTDIR=/build/reproducible-path/4g8-1.0/debian/4g8 AM_UPDATE_INFO_DIR=no make[1]: Entering directory '/build/reproducible-path/4g8-1.0' Making install in src make[2]: Entering directory '/build/reproducible-path/4g8-1.0/src' make[3]: Entering directory '/build/reproducible-path/4g8-1.0/src' -make[3]: Nothing to be done for 'install-data-am'. /usr/bin/mkdir -p '/build/reproducible-path/4g8-1.0/debian/4g8/usr/sbin' +make[3]: Nothing to be done for 'install-data-am'. /usr/bin/install -c 4g8 '/build/reproducible-path/4g8-1.0/debian/4g8/usr/sbin' make[3]: Leaving directory '/build/reproducible-path/4g8-1.0/src' make[2]: Leaving directory '/build/reproducible-path/4g8-1.0/src' @@ -1699,12 +1735,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/2248660/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/2248660/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/2920232 and its subdirectories -I: Current time: Mon Dec 16 22:42:41 -12 2024 -I: pbuilder-time-stamp: 1734432161 +I: removing directory /srv/workspace/pbuilder/2248660 and its subdirectories +I: Current time: Tue Jan 20 07:08:05 +14 2026 +I: pbuilder-time-stamp: 1768842485