Diff of the two buildlogs: -- --- b1/build.log 2024-11-05 16:01:22.942299126 +0000 +++ b2/build.log 2024-11-05 16:01:59.045010702 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Nov 5 03:59:34 -12 2024 -I: pbuilder-time-stamp: 1730822374 +I: Current time: Tue Dec 9 12:24:25 +14 2025 +I: pbuilder-time-stamp: 1765232665 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-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/3457318/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1119505/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 Dec 8 22:24 /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/1119505/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1119505/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='trixie' - 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]="32" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.32(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=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='7af36f70a0284a0b81e390bac92d867b' - 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='3457318' - PS1='# ' - PS2='> ' + INVOCATION_ID=8208d6044c484c0c9c1b31054db09b6d + 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=1119505 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.vUARzlTL/pbuilderrc_tLD3 --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.vUARzlTL/b1 --logfile b1/build.log 4g8_1.0-6.dsc' - SUDO_GID='110' - SUDO_UID='105' - 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.vUARzlTL/pbuilderrc_fV7U --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.vUARzlTL/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 ionos1-amd64 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.10.11+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.10.11-1~bpo12+1 (2024-10-03) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 4 21:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/3457318/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 4 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1119505/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -153,7 +185,7 @@ Get: 39 http://deb.debian.org/debian trixie/main amd64 libpcap0.8t64 amd64 1.10.5-1 [169 kB] Get: 40 http://deb.debian.org/debian trixie/main amd64 libpcap0.8-dev amd64 1.10.5-1 [284 kB] Get: 41 http://deb.debian.org/debian trixie/main amd64 libpcap-dev amd64 1.10.5-1 [31.7 kB] -Fetched 21.1 MB in 5s (4392 kB/s) +Fetched 21.1 MB in 3s (7999 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 ... 19970 files and directories currently installed.) @@ -333,7 +365,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/1119505/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/1119505/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 @@ -440,7 +476,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' @@ -461,24 +497,18 @@ 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 -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 *, ...); - | ^~~~~~~~~~ +error.c: In function 'fatal_error': 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 * +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 usage.h:29, from globals.h:45, from init.h:26, @@ -486,6 +516,16 @@ 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/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), + | ^~~~~ 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) @@ -607,7 +647,71 @@ 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 *,...); | ^~~~~~~~~~ +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 *,...); + | ^~~~~~~~~~ +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 *, ...); + | ^~~~~~~~~~ +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))) + | ^ +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); + | ^ +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 * +udp_hdr.c: In function 'udp_hdr': +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); + | ^ +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 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 *,...); + | ^~~~~~~~~~ utils.c: In function 'print_separator': +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 *,...); + | ^~~~~~~~~~ +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))) + | ^ utils.c:88:15: warning: pointer targets in passing argument 1 of 'vsnprintf' differ in signedness [-Wpointer-sign] 88 | vsnprintf(msg, 256, msgp, va); | ^~~ @@ -623,41 +727,186 @@ /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), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 * utils.c:88:25: warning: pointer targets in passing argument 3 of 'vsnprintf' differ in signedness [-Wpointer-sign] 88 | vsnprintf(msg, 256, msgp, va); | ^~~~ | | | 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: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), | ^~~~~ +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: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 *} +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); + | ^ +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))) + | ^ 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) | ~~~~~~~~~~~~^~~ +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 * +tcp_hdr.c: In function 'tcp_hdr': +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 *,...); + | ^~~~~~~~~~ +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 *} +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))) + | ^ +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), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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: +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: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 * +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), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 *,...); + | ^~~~~~~~~~ +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 *} +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 * +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))) + | ^ +/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), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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: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 * +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), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^ utils.c: In function 'retrieve_icmp_code': +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), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^ +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 *} utils.c:122:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 122 | sprintf(icmp_c, "Network"); | ^~~~~~ | | | 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), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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: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) + | ~~~~~~~~~~~~^~~ utils.c:126:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 126 | sprintf(icmp_c, "Host"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} +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/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: In function 'icmpv4_hdr': +/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:130:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 130 | sprintf(icmp_c, "Protocol"); | ^~~~~~ @@ -666,25 +915,34 @@ /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: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); - | ^ +ipv4_hdr.c: In function 'ipv4_hdr': utils.c:134:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 134 | sprintf(icmp_c, "Port"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} +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); + | ^ /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, ...)) | ^~~~~ +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); + | ^ +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 * utils.c:138:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 138 | sprintf(icmp_c, "Need Fragment"); | ^~~~~~ | | | 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, ...)) | ^~~~~ @@ -696,6 +954,36 @@ /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 *,...); + | ^~~~~~~~~~ +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 * +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 * +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 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 *,...); + | ^~~~~~~~~~ utils.c:146:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 146 | sprintf(icmp_c, "Network Unknown"); | ^~~~~~ @@ -704,20 +992,22 @@ /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); - | ^ +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 * utils.c:150:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 150 | sprintf(icmp_c, "Host Unknown"); | ^~~~~~ | | | 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, ...)) | ^~~~~ -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:154:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 154 | sprintf(icmp_c, "Isolated"); | ^~~~~~ @@ -758,18 +1048,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, ...)) | ^~~~~ -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: -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:174:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 174 | sprintf(icmp_c, "Filter Prohibited"); | ^~~~~~ @@ -786,14 +1064,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, ...)) | ^~~~~ -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:182:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 182 | sprintf(icmp_c, "Precedence Cutoff"); | ^~~~~~ @@ -802,9 +1072,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, ...)) | ^~~~~ -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:186:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 186 | sprintf(icmp_c, "Unknown"); | ^~~~~~ @@ -813,9 +1080,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, ...)) | ^~~~~ -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:196:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 196 | sprintf(icmp_c, "Network"); | ^~~~~~ @@ -829,9 +1093,13 @@ | ^~~~~~ | | | u_int8_t * {aka unsigned char *} +arp_cache.c: In function 'arp_cache_mgr': /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, ...)) | ^~~~~ +arp_cache.c:42:31: warning: argument to 'sizeof' in 'memset' call is the same pointer type 'struct libnet_ether_addr *' as the destination; expected 'struct libnet_ether_addr' or an explicit length [-Wsizeof-pointer-memaccess] + 42 | memset(hw_addr, 0, sizeof(struct libnet_ether_addr *)); + | ^~~~~~ utils.c:204:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 204 | sprintf(icmp_c, "ToS Net"); | ^~~~~~ @@ -840,6 +1108,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, ...)) | ^~~~~ +arp_cache.c:45:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 45 | fatal_error("Invalid receiver protocol address"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * utils.c:208:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 208 | sprintf(icmp_c, "ToS Host"); | ^~~~~~ @@ -848,6 +1121,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 arp_cache.h:26, + from arp_cache.c:24: +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:212:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 212 | sprintf(icmp_c, "Unknown"); | ^~~~~~ @@ -856,14 +1136,19 @@ /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 * +arp_cache.c:53:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 53 | fatal_error("Invalid sender ethernet address: %s", gw_mac); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | 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 *,...); | ^~~~~~~~~~ +arp_cache.c:55:48: warning: pointer targets in passing argument 2 of 'libnet_name2addr4' differ in signedness [-Wpointer-sign] + 55 | if((s_paddr = libnet_name2addr4(pkt_d, gw_ip, 0)) == -1) + | ^~~~~ + | | + | u_int8_t * {aka unsigned char *} utils.c:222:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 222 | sprintf(icmp_c, "In Transit"); | ^~~~~~ @@ -880,6 +1165,19 @@ /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:257:44: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 257 | libnet_name2addr4(libnet_t *l, const char *host_name, uint8_t use_name); + | ~~~~~~~~~~~~^~~~~~~~~ +arp_cache.c:56:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 56 | fatal_error("Invalid receiver protocol address: %s", gw_ip); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | 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:230:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 230 | sprintf(icmp_c, "Unknown"); | ^~~~~~ @@ -888,20 +1186,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, ...)) | ^~~~~ -error.c: In function 'fatal_error': -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 *,...); - | ^~~~~~~~~~ -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 *} +arp_cache.c:63:48: warning: pointer targets in passing argument 2 of 'libnet_name2addr4' differ in signedness [-Wpointer-sign] + 63 | if((s_paddr = libnet_name2addr4(pkt_d, gw_ip, 0)) == -1) + | ^~~~~ + | | + | u_int8_t * {aka unsigned char *} +/usr/include/libnet/libnet-functions.h:257:44: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 257 | libnet_name2addr4(libnet_t *l, const char *host_name, uint8_t use_name); + | ~~~~~~~~~~~~^~~~~~~~~ utils.c:240:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 240 | sprintf(icmp_c, "Missing Option"); | ^~~~~~ @@ -910,16 +1202,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, ...)) | ^~~~~ -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), - | ^~~~~ +arp_cache.c:64:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 64 | fatal_error("Invalid receiver protocol address: %s", gw_ip); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | 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:244:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 244 | sprintf(icmp_c, "Unknown"); | ^~~~~~ @@ -928,31 +1218,63 @@ /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: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 * +arp_cache.c:82:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 82 | fatal_error("Unable to build ARP 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:250:17: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 250 | sprintf(icmp_c, "Unknown"); | ^~~~~~ | | | 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, ...)) | ^~~~~ +arp_cache.c:86:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 86 | fatal_error("Invalid sender ethernet address"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | 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_icmp_type': +arp_cache.c:97:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 97 | fatal_error("Unable to build ethernet header"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | 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: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 *} +arp_cache.c:108:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 108 | fatal_error("Invalid sender ethernet address: %s", host_mac); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | 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, ...)) | ^~~~~ +arp_cache.c:110:48: warning: pointer targets in passing argument 2 of 'libnet_name2addr4' differ in signedness [-Wpointer-sign] + 110 | if((s_paddr = libnet_name2addr4(pkt_d, host_ip, 0)) == -1) + | ^~~~~~~ + | | + | u_int8_t * {aka unsigned char *} +/usr/include/libnet/libnet-functions.h:257:44: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 257 | libnet_name2addr4(libnet_t *l, const char *host_name, uint8_t use_name); + | ~~~~~~~~~~~~^~~~~~~~~ utils.c:275:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 275 | sprintf(icmp_t, "Unreachable"); | ^~~~~~ @@ -961,6 +1283,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, ...)) | ^~~~~ +arp_cache.c:111:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 111 | fatal_error("Invalid receiver protocol address: %s", host_ip); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * utils.c:279:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 279 | sprintf(icmp_t, "Source Quench"); | ^~~~~~ @@ -969,6 +1296,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, ...)) | ^~~~~ +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:283:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 283 | sprintf(icmp_t, "Redirect"); | ^~~~~~ @@ -977,14 +1307,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, ...)) | ^~~~~ +arp_cache.c:118:48: warning: pointer targets in passing argument 2 of 'libnet_name2addr4' differ in signedness [-Wpointer-sign] + 118 | if((s_paddr = libnet_name2addr4(pkt_d, host_ip, 0)) == -1) + | ^~~~~~~ + | | + | u_int8_t * {aka unsigned char *} utils.c:287:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 287 | sprintf(icmp_t, "Echo Request"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} +/usr/include/libnet/libnet-functions.h:257:44: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} + 257 | libnet_name2addr4(libnet_t *l, const char *host_name, uint8_t use_name); + | ~~~~~~~~~~~~^~~~~~~~~ /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, ...)) | ^~~~~ +arp_cache.c:119:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 119 | fatal_error("Invalid receiver protocol address: %s", host_ip); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | 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:291:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 291 | sprintf(icmp_t, "Time Exceeded"); | ^~~~~~ @@ -993,6 +1339,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, ...)) | ^~~~~ +arp_cache.c:137:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 137 | fatal_error("Unable to build ARP header: %s", libnet_geterror(pkt_d)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * utils.c:295:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 295 | sprintf(icmp_t, "Param Problem"); | ^~~~~~ @@ -1001,6 +1352,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, ...)) | ^~~~~ +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:299:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 299 | sprintf(icmp_t, "Timestamp"); | ^~~~~~ @@ -1009,6 +1363,22 @@ /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, ...)) | ^~~~~ +arp_cache.c:141:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 141 | fatal_error("Invalid sender ethernet address"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | 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 *,...); + | ^~~~~~~~~~ +arp_cache.c:152:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] + 152 | fatal_error("Unable to build ethernet header"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | 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:303:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 303 | sprintf(icmp_t, "Timestamp Reply"); | ^~~~~~ @@ -1041,10 +1411,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, ...)) | ^~~~~ -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))) - | ^ utils.c:319:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 319 | sprintf(icmp_t, "Router Selection"); | ^~~~~~ @@ -1053,96 +1419,22 @@ /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: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 *,...); - | ^~~~~~~~~~ -tcp_hdr.c: In function 'tcp_hdr': -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))) - | ^ 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"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} -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 *} /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: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 *,...); - | ^~~~~~~~~~ -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), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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))) - | ^ -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), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 * 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"); | ^~~~~~ | | | 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, ...)) | ^~~~~ -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), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:331:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 331 | sprintf(icmp_t, "Traceroute"); | ^~~~~~ @@ -1151,70 +1443,15 @@ /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: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 *} -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))) - | ^ -/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), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 *,...); - | ^~~~~~~~~~ -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), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:335:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 335 | sprintf(icmp_t, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} -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))) - | ^ -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 *} /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: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 *,...); - | ^~~~~~~~~~ -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) - | ~~~~~~~~~~~~^~~ utils.c: In function 'retrieve_arp_hw_type': -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:356:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 356 | sprintf(hw_t, "Net/ROM Pseudo"); | ^~~~ @@ -1247,11 +1484,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, ...)) | ^~~~~ -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 * 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"); | ^~~~ @@ -1284,11 +1516,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 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:388:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 388 | sprintf(hw_t, "Lanstar"); | ^~~~ @@ -1356,6 +1583,9 @@ /usr/include/x86_64-linux-gnu/bits/string_fortified.h:96:1: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} 96 | __NTH (strncpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~ +main.c:100:17: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation] + 100 | strncpy(w_file, optarg, OPT_MAXLEN); + | ^ utils.c:435:23: warning: pointer targets in passing argument 1 of 'strtok' differ in signedness [-Wpointer-sign] 435 | for(eptr = strtok(o_ethstr, delim); | ^~~~~~~~ @@ -1412,41 +1642,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, ...)) | ^~~~~ -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 *,...); - | ^~~~~~~~~~ -main.c:100:17: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation] - 100 | strncpy(w_file, optarg, OPT_MAXLEN); - | ^ -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 *,...); - | ^~~~~~~~~~ In file included from /usr/include/stdio.h:970: In function 'vsnprintf', inlined from 'print_separator' at utils.c:88:5: @@ -1455,165 +1650,6 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 *,...); - | ^~~~~~~~~~ -arp_cache.c: In function 'arp_cache_mgr': -arp_cache.c:42:31: warning: argument to 'sizeof' in 'memset' call is the same pointer type 'struct libnet_ether_addr *' as the destination; expected 'struct libnet_ether_addr' or an explicit length [-Wsizeof-pointer-memaccess] - 42 | memset(hw_addr, 0, sizeof(struct libnet_ether_addr *)); - | ^~~~~~ -arp_cache.c:45:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 45 | fatal_error("Invalid receiver protocol address"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -In file included from usage.h:29, - from globals.h:45, - from arp_cache.h:26, - from arp_cache.c:24: -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 *,...); - | ^~~~~~~~~~ -arp_cache.c:53:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 53 | fatal_error("Invalid sender ethernet address: %s", gw_mac); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | 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 *,...); - | ^~~~~~~~~~ -arp_cache.c:55:48: warning: pointer targets in passing argument 2 of 'libnet_name2addr4' differ in signedness [-Wpointer-sign] - 55 | if((s_paddr = libnet_name2addr4(pkt_d, gw_ip, 0)) == -1) - | ^~~~~ - | | - | 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:257:44: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 257 | libnet_name2addr4(libnet_t *l, const char *host_name, uint8_t use_name); - | ~~~~~~~~~~~~^~~~~~~~~ -arp_cache.c:56:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 56 | fatal_error("Invalid receiver protocol address: %s", gw_ip); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | 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 *,...); - | ^~~~~~~~~~ -arp_cache.c:63:48: warning: pointer targets in passing argument 2 of 'libnet_name2addr4' differ in signedness [-Wpointer-sign] - 63 | if((s_paddr = libnet_name2addr4(pkt_d, gw_ip, 0)) == -1) - | ^~~~~ - | | - | u_int8_t * {aka unsigned char *} -/usr/include/libnet/libnet-functions.h:257:44: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 257 | libnet_name2addr4(libnet_t *l, const char *host_name, uint8_t use_name); - | ~~~~~~~~~~~~^~~~~~~~~ -arp_cache.c:64:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 64 | fatal_error("Invalid receiver protocol address: %s", gw_ip); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | 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 *,...); - | ^~~~~~~~~~ -arp_cache.c:82:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 82 | fatal_error("Unable to build ARP 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 *,...); - | ^~~~~~~~~~ -arp_cache.c:86:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 86 | fatal_error("Invalid sender ethernet address"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | 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 *,...); - | ^~~~~~~~~~ -arp_cache.c:97:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 97 | fatal_error("Unable to build ethernet header"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | 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 *,...); - | ^~~~~~~~~~ -arp_cache.c:108:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 108 | fatal_error("Invalid sender ethernet address: %s", host_mac); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | 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 *,...); - | ^~~~~~~~~~ -arp_cache.c:110:48: warning: pointer targets in passing argument 2 of 'libnet_name2addr4' differ in signedness [-Wpointer-sign] - 110 | if((s_paddr = libnet_name2addr4(pkt_d, host_ip, 0)) == -1) - | ^~~~~~~ - | | - | u_int8_t * {aka unsigned char *} -/usr/include/libnet/libnet-functions.h:257:44: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 257 | libnet_name2addr4(libnet_t *l, const char *host_name, uint8_t use_name); - | ~~~~~~~~~~~~^~~~~~~~~ -arp_cache.c:111:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 111 | fatal_error("Invalid receiver protocol address: %s", host_ip); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | 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 *,...); - | ^~~~~~~~~~ -arp_cache.c:118:48: warning: pointer targets in passing argument 2 of 'libnet_name2addr4' differ in signedness [-Wpointer-sign] - 118 | if((s_paddr = libnet_name2addr4(pkt_d, host_ip, 0)) == -1) - | ^~~~~~~ - | | - | u_int8_t * {aka unsigned char *} -/usr/include/libnet/libnet-functions.h:257:44: note: expected 'const char *' but argument is of type 'u_int8_t *' {aka 'unsigned char *'} - 257 | libnet_name2addr4(libnet_t *l, const char *host_name, uint8_t use_name); - | ~~~~~~~~~~~~^~~~~~~~~ -arp_cache.c:119:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 119 | fatal_error("Invalid receiver protocol address: %s", host_ip); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | 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 *,...); - | ^~~~~~~~~~ -arp_cache.c:137:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 137 | fatal_error("Unable to build ARP 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 *,...); - | ^~~~~~~~~~ -arp_cache.c:141:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 141 | fatal_error("Invalid sender ethernet address"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | 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 *,...); - | ^~~~~~~~~~ -arp_cache.c:152:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] - 152 | fatal_error("Unable to build ethernet header"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | 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 'format_ethernet_addr': utils.c:428:9: warning: '__builtin_strncpy' specified bound 18 equals destination size [-Wstringop-truncation] 428 | strncpy(o_ethstr, ethstr, 18); @@ -1639,7 +1675,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' @@ -1651,7 +1687,7 @@ 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' @@ -1694,12 +1730,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/1119505/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1119505/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/3457318 and its subdirectories -I: Current time: Tue Nov 5 04:01:22 -12 2024 -I: pbuilder-time-stamp: 1730822482 +I: removing directory /srv/workspace/pbuilder/1119505 and its subdirectories +I: Current time: Tue Dec 9 12:24:58 +14 2025 +I: pbuilder-time-stamp: 1765232698