Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/4/4g8/4g8_1.0-3.3_amd64.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/4g8-1.0-3.327ffg8lp/4g8_1.0-3.3_amd64.buildinfo Get source package info: 4g8=1.0-3.3 Source URL: http://snapshot.notset.fr/mr/package/4g8/1.0-3.3/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=autoconf=2.69-11.1 automake=1:1.16.2-4 autopoint=0.19.8.1-10 autotools-dev=20180224.1 base-files=11 base-passwd=3.5.48 bash=5.1~rc1-2 binutils=2.35.1-2 binutils-common=2.35.1-2 binutils-x86-64-linux-gnu=2.35.1-2 bsdextrautils=2.36-3+b1 bsdutils=1:2.36-3+b1 build-essential=12.8 bzip2=1.0.8-4 coreutils=8.32-4+b1 cpp=4:10.2.0-1 cpp-10=10.2.0-15 dash=0.5.10.2-7 debconf=1.5.74 debhelper=13.2.1 debianutils=4.11.2 dh-autoreconf=19 dh-strip-nondeterminism=1.9.0-1 diffutils=1:3.7-3 dpkg=1.20.5 dpkg-dev=1.20.5 dwz=0.13-5 file=1:5.38-5 findutils=4.7.0-1 g++=4:10.2.0-1 g++-10=10.2.0-15 gcc=4:10.2.0-1 gcc-10=10.2.0-15 gcc-10-base=10.2.0-15 gettext=0.19.8.1-10 gettext-base=0.19.8.1-10 grep=3.4-1 groff-base=1.22.4-5 gzip=1.10-2 hostname=3.23 init-system-helpers=1.58 intltool-debian=0.35.0+20060710.5 libacl1=2.2.53-8 libarchive-zip-perl=1.68-1 libasan6=10.2.0-15 libatomic1=10.2.0-15 libattr1=1:2.4.48-5 libaudit-common=1:2.8.5-3.1 libaudit1=1:2.8.5-3.1 libbinutils=2.35.1-2 libblkid1=2.36-3+b1 libbz2-1.0=1.0.8-4 libc-bin=2.31-4 libc-dev-bin=2.31-4 libc6=2.31-4 libc6-dev=2.31-4 libcap-ng0=0.7.9-2.2 libcc1-0=10.2.0-15 libcom-err2=1.45.6-1 libcroco3=0.6.13-1 libcrypt-dev=1:4.4.17-1 libcrypt1=1:4.4.17-1 libctf-nobfd0=2.35.1-2 libctf0=2.35.1-2 libdb5.3=5.3.28+dfsg1-0.6 libdbus-1-3=1.12.20-1 libdebconfclient0=0.254 libdebhelper-perl=13.2.1 libdpkg-perl=1.20.5 libelf1=0.181-1 libffi7=3.3-4 libfile-stripnondeterminism-perl=1.9.0-1 libgcc-10-dev=10.2.0-15 libgcc-s1=10.2.0-15 libgcrypt20=1.8.6-2 libgdbm-compat4=1.18.1-5.1 libgdbm6=1.18.1-5.1 libglib2.0-0=2.66.1-2 libgmp10=2:6.2.0+dfsg-6 libgomp1=10.2.0-15 libgpg-error0=1.38-2 libgssapi-krb5-2=1.17-10 libicu67=67.1-4 libisl22=0.22.1-1 libitm1=10.2.0-15 libk5crypto3=1.17-10 libkeyutils1=1.6.1-2 libkrb5-3=1.17-10 libkrb5support0=1.17-10 liblsan0=10.2.0-15 liblz4-1=1.9.2-2 liblzma5=5.2.4-1+b1 libmagic-mgc=1:5.38-5 libmagic1=1:5.38-5 libmount1=2.36-3+b1 libmpc3=1.2.0-1 libmpfr6=4.1.0-3 libnet1=1.1.6+dfsg-3.1 libnet1-dev=1.1.6+dfsg-3.1 libnsl-dev=1.3.0-2 libnsl2=1.3.0-2 libnss-nis=3.1-4 libnss-nisplus=1.3-4 libpam-modules=1.3.1-5 libpam-modules-bin=1.3.1-5 libpam-runtime=1.3.1-5 libpam0g=1.3.1-5 libpcap-dev=1.9.1-4 libpcap0.8=1.9.1-4 libpcap0.8-dev=1.9.1-4 libpcre2-8-0=10.34-7 libpcre3=2:8.39-13 libperl5.30=5.30.3-4 libpipeline1=1.5.3-1 libquadmath0=10.2.0-15 libseccomp2=2.4.4-1+b1 libselinux1=3.1-2+b1 libsigsegv2=2.12-2 libsmartcols1=2.36-3+b1 libssl1.1=1.1.1h-1 libstdc++-10-dev=10.2.0-15 libstdc++6=10.2.0-15 libsub-override-perl=0.09-2 libsystemd0=246.6-2 libtinfo6=6.2+20200918-1 libtirpc-common=1.2.6-3 libtirpc-dev=1.2.6-3 libtirpc3=1.2.6-3 libtool=2.4.6-14 libtsan0=10.2.0-15 libubsan1=10.2.0-15 libuchardet0=0.0.7-1 libudev1=246.6-2 libunistring2=0.9.10-4 libuuid1=2.36-3+b1 libxml2=2.9.10+dfsg-6.1 libzstd1=1.4.5+dfsg-4 linux-libc-dev=5.9.1-1 login=1:4.8.1-1 lsb-base=11.1.0 m4=1.4.18-4 make=4.3-4 man-db=2.9.3-2 mawk=1.3.4.20200120-2 ncurses-base=6.2+20200918-1 ncurses-bin=6.2+20200918-1 patch=2.7.6-6 perl=5.30.3-4 perl-base=5.30.3-4 perl-modules-5.30=5.30.3-4 po-debconf=1.0.21 sed=4.7-1 sensible-utils=0.0.12+nmu1 sysvinit-utils=2.96-5 tar=1.30+dfsg-7 util-linux=2.36-3+b1 xz-utils=5.2.4-1+b1 zlib1g=1:1.2.11.dfsg-2 --variant=apt --aptopt=Acquire::Check-Valid-Until "false" --aptopt=Acquire::http::Dl-Limit "1000"; --aptopt=Acquire::https::Dl-Limit "1000"; --aptopt=Acquire::Retries "5"; --aptopt=APT::Get::allow-downgrades "true"; --keyring=/usr/share/keyrings/ --essential-hook=chroot "$1" sh -c "apt-get --yes install fakeroot util-linux" --essential-hook=copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ --essential-hook=chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20201028T033542Z/ unstable main' >> /etc/apt/sources.list && apt-get update" --customize-hook=chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash --customize-hook=chroot "$1" env sh -c "apt-get source --only-source -d 4g8=1.0-3.3 && mkdir -p /build/4g8-4nGBP6 && dpkg-source --no-check -x /*.dsc /build/4g8-4nGBP6/4g8-1.0 && chown -R builduser:builduser /build/4g8-4nGBP6" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/4g8-4nGBP6/4g8-1.0 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1601945490" dpkg-buildpackage -uc -a amd64 --build=any" --customize-hook=sync-out /build/4g8-4nGBP6 /tmp/4g8-1.0-3.327ffg8lp bullseye /dev/null deb http://snapshot.notset.fr/archive/debian/20201028T033542Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: tar I: using /tmp/mmdebstrap.GKvfimoac_ as tempdir I: running apt-get update... I: downloading packages with apt... I: extracting archives... I: installing essential packages... I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "apt-get --yes install fakeroot util-linux"' exec /tmp/mmdebstrap.GKvfimoac_ Reading package lists... Building dependency tree... util-linux is already the newest version (2.36-3+b1). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 134 kB of archives. After this operation, 397 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20201028T033542Z unstable/main amd64 libfakeroot amd64 1.25.3-1 [47.0 kB] Get:2 http://snapshot.notset.fr/archive/debian/20201028T033542Z unstable/main amd64 fakeroot amd64 1.25.3-1 [87.0 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 134 kB in 0s (738 kB/s) Selecting previously unselected package libfakeroot:amd64. (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 ... 4664 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.25.3-1_amd64.deb ... Unpacking libfakeroot:amd64 (1.25.3-1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.25.3-1_amd64.deb ... Unpacking fakeroot (1.25.3-1) ... Setting up libfakeroot:amd64 (1.25.3-1) ... Setting up fakeroot (1.25.3-1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.31-4) ... I: running special hook: copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20201028T033542Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.GKvfimoac_ Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20201028T033542Z unstable InRelease Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources [11.4 MB] Get:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages [11.1 MB] Fetched 22.6 MB in 20s (1144 kB/s) Reading package lists... I: installing remaining packages inside the chroot... I: running --customize-hook in shell: sh -c 'chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash' exec /tmp/mmdebstrap.GKvfimoac_ I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d 4g8=1.0-3.3 && mkdir -p /build/4g8-4nGBP6 && dpkg-source --no-check -x /*.dsc /build/4g8-4nGBP6/4g8-1.0 && chown -R builduser:builduser /build/4g8-4nGBP6"' exec /tmp/mmdebstrap.GKvfimoac_ Reading package lists... NOTICE: '4g8' packaging is maintained in the 'Git' version control system at: git://git.debian.org/~lamont/4g8.git Please use: git clone git://git.debian.org/~lamont/4g8.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 148 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main 4g8 1.0-3.3 (dsc) [1744 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main 4g8 1.0-3.3 (tar) [111 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main 4g8 1.0-3.3 (diff) [35.0 kB] Fetched 148 kB in 0s (843 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file '4g8_1.0-3.3.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting 4g8 in /build/4g8-4nGBP6/4g8-1.0 dpkg-source: info: unpacking 4g8_1.0.orig.tar.gz dpkg-source: info: applying 4g8_1.0-3.3.diff.gz dpkg-source: info: upstream files that have been modified: /build/4g8-4nGBP6/4g8-1.0/4g8.1 /build/4g8-4nGBP6/4g8-1.0/config.guess /build/4g8-4nGBP6/4g8-1.0/config.status.lineno /build/4g8-4nGBP6/4g8-1.0/config.sub /build/4g8-4nGBP6/4g8-1.0/src/Makefile.in /build/4g8-4nGBP6/4g8-1.0/src/error.h /build/4g8-4nGBP6/4g8-1.0/src/globals.h /build/4g8-4nGBP6/4g8-1.0/src/main.c /build/4g8-4nGBP6/4g8-1.0/src/main.h I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/4g8-4nGBP6/4g8-1.0 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1601945490" dpkg-buildpackage -uc -a amd64 --build=any"' exec /tmp/mmdebstrap.GKvfimoac_ dpkg-buildpackage: info: source package 4g8 dpkg-buildpackage: info: source version 1.0-3.3 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Michael Hudson-Doyle dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 fakeroot debian/rules clean dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. [ ! -f Makefile ] || /usr/bin/make distclean dh_clean dh_clean: warning: Compatibility levels before 10 are deprecated (level 9 in use) debian/rules build-arch dh_testdir # Add here commands to compile the package. cp /usr/share/misc/config.guess /usr/share/misc/config.sub . chmod u+x ./configure CFLAGS="-g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" CXXFLAGS="-g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security" FCFLAGS="-g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong" FFLAGS="-g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong" GCJFLAGS="-g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong" LDFLAGS="-Wl,-z,relro" OBJCFLAGS="-g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security" OBJCXXFLAGS="-g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security" ./configure --prefix=/usr --mandir=/usr/share/man beginning auto-configuration process for 4g8-1.0... checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for gcc... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for u_int8_t... yes checking for u_int16_t... yes checking for u_int32_t... yes checking for u_int64_t... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking net/bpf.h usability... no checking net/bpf.h presence... no checking for net/bpf.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking libnet.h usability... yes checking libnet.h presence... yes checking for libnet.h... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for printf... yes checking for fprintf... yes checking for snprintf... yes checking for sprintf... yes checking for strdup... yes checking for strrchr... yes checking for strstr... yes checking for strncasecmp... yes checking for strtol... yes checking for strncmp... yes checking for strncat... yes checking for memset... yes checking for malloc... yes checking for gethostbyname... yes checking for gettimeofday... yes checking for getuid... yes checking for select... yes checking for setitimer... yes checking for libnet_build_ipv4 in -lnet... yes checking for pcap_open_live in -lpcap... yes checking for bpf... no checking for a BSD-compatible install... /usr/bin/install -c configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/version.h config.status: creating config.h config.status: executing depfiles commands 4g8 has been configured with the following options: ----------------------------------------------- Host type : x86_64-pc-linux-gnu Compiler : gcc Compiler flags : -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall Linker flags : -Wl,-z,relro Libraries : -lpcap -lnet Binary : /usr/bin Enable debugging : no ----------------------------------------------- /usr/bin/make make[1]: Entering directory '/build/4g8-4nGBP6/4g8-1.0' /usr/bin/make all-recursive make[2]: Entering directory '/build/4g8-4nGBP6/4g8-1.0' Making all in src make[3]: Entering directory '/build/4g8-4nGBP6/4g8-1.0/src' source='init.c' object='init.o' libtool=no \ depfile='.deps/init.Po' tmpdepfile='.deps/init.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c `test -f 'init.c' || echo './'`init.c 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 *} In file included from /usr/include/libnet.h:119, from globals.h:31, from init.h:26, from init.c:23: /usr/include/libnet/libnet-functions.h:64:45: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 64 | libnet_init(int injection_type, const char *device, char *err_buf); | ~~~~~~~~~~~~^~~~~~ 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 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: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, from init.h:26, from init.c:23: /usr/include/pcap/pcap.h:328:16: note: declared here 328 | 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 * 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: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 *} In file included from globals.h:32, from init.h:26, from init.c:23: /usr/include/pcap/pcap.h:409:33: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 409 | 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 * 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: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 * 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: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 *} In file included from globals.h:32, from init.h:26, from init.c:23: /usr/include/pcap/pcap.h:331:29: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 331 | 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:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from init.h:26, from init.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:64:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 64 | __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 *} In file included from globals.h:32, from init.h:26, from init.c:23: /usr/include/pcap/pcap.h:458:59: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 458 | 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, 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: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 * 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: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 * 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: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 * 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 *,...); | ^~~~~~~~~~ source='error.c' object='error.o' libtool=no \ depfile='.deps/error.Po' tmpdepfile='.deps/error.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c `test -f 'error.c' || echo './'`error.c error.c: In function ‘fatal_error’: error.c:35:41: warning: pointer targets in passing argument 3 of ‘vsnprintf’ differ in signedness [-Wpointer-sign] 35 | vsnprintf(error_buf, ERRBUF_MAXLEN, err, va); | ^~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from error.h:26, from error.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:77:1: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 77 | __NTH (vsnprintf (char *__restrict __s, size_t __n, | ^~~~~ source='utils.c' object='utils.o' libtool=no \ depfile='.deps/utils.Po' tmpdepfile='.deps/utils.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c `test -f 'utils.c' || echo './'`utils.c 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 *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:77:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 77 | __NTH (vsnprintf (char *__restrict __s, size_t __n, | ^~~~~ 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 *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:77:1: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 77 | __NTH (vsnprintf (char *__restrict __s, size_t __n, | ^~~~~ 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 *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:385:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 385 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ 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"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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 *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:130:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 130 | sprintf(icmp_c, "Protocol"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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 *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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 *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:142:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 142 | sprintf(icmp_c, "Source Fail"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:146:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 146 | sprintf(icmp_c, "Network Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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 *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:154:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 154 | sprintf(icmp_c, "Isolated"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:158:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 158 | sprintf(icmp_c, "Network Prohibited"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:162:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 162 | sprintf(icmp_c, "Host Prohibited"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:166:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 166 | sprintf(icmp_c, "ToS Network"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:170:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 170 | sprintf(icmp_c, "ToS Host"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:174:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 174 | sprintf(icmp_c, "Filter Prohibited"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:178:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 178 | sprintf(icmp_c, "Host Precedence"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:182:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 182 | sprintf(icmp_c, "Precedence Cutoff"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:186:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 186 | sprintf(icmp_c, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:196:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 196 | sprintf(icmp_c, "Network"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:200:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 200 | sprintf(icmp_c, "Host"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:204:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 204 | sprintf(icmp_c, "ToS Net"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:208:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 208 | sprintf(icmp_c, "ToS Host"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:212:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 212 | sprintf(icmp_c, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:222:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 222 | sprintf(icmp_c, "In Transit"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:226:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 226 | sprintf(icmp_c, "Reassembly"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:230:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 230 | sprintf(icmp_c, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:240:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 240 | sprintf(icmp_c, "Missing Option"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:244:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 244 | sprintf(icmp_c, "Unknown"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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 *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c: In function ‘retrieve_icmp_type’: 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 *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:275:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 275 | sprintf(icmp_t, "Unreachable"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:279:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 279 | sprintf(icmp_t, "Source Quench"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:283:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 283 | sprintf(icmp_t, "Redirect"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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 *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:291:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 291 | sprintf(icmp_t, "Time Exceeded"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:295:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 295 | sprintf(icmp_t, "Param Problem"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:299:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 299 | sprintf(icmp_t, "Timestamp"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:303:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 303 | sprintf(icmp_t, "Timestamp Reply"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:307:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 307 | sprintf(icmp_t, "Info Request"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:311:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 311 | sprintf(icmp_t, "Info Reply"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:315:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 315 | sprintf(icmp_t, "Router Advertise"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:319:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 319 | sprintf(icmp_t, "Router Selection"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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 *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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 *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:331:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 331 | sprintf(icmp_t, "Traceroute"); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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 *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:360:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 360 | sprintf(hw_t, "Ethernet 10/100"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:364:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 364 | sprintf(hw_t, "Experimental Ethernet"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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 *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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 *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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 *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:388:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 388 | sprintf(hw_t, "Lanstar"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ 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"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:396:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 396 | sprintf(hw_t, "ATM"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:400:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 400 | sprintf(hw_t, "Metricom STRIP"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:404:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 404 | sprintf(hw_t, "IPsec Tunnel"); | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c: In function ‘format_ethernet_addr’: 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 = ":"; | ^~~ utils.c:428:17: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign] 428 | strncpy(o_ethstr, ethstr, 18); | ^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:103:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 103 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, | ^~~~~ utils.c:428:27: warning: pointer targets in passing argument 2 of ‘strncpy’ differ in signedness [-Wpointer-sign] 428 | strncpy(o_ethstr, ethstr, 18); | ^~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:103:1: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 103 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, | ^~~~~ 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); | ^~~~~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:336:39: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 336 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~^~~ utils.c:435:33: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] 435 | for(eptr = strtok(o_ethstr, delim); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:336:67: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 336 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ utils.c:435:14: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 435 | for(eptr = strtok(o_ethstr, delim); | ^ utils.c:437:30: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] 437 | eptr = strtok(NULL, delim)) | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:336:67: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 336 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ utils.c:437:15: warning: pointer targets in assignment from ‘char *’ to ‘u_int8_t *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 437 | eptr = strtok(NULL, delim)) | ^ utils.c:439:29: warning: pointer targets in passing argument 1 of ‘strtol’ differ in signedness [-Wpointer-sign] 439 | if((base16 = strtol(eptr, 0, 16)) > 0xff) | ^~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:67, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdlib.h:176:48: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 176 | extern long int strtol (const char *__restrict __nptr, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ utils.c: In function ‘retrieve_rand_ethernet_addr’: utils.c:468:20: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 468 | sprintf(eaddr, "%s:%0x", eaddr, oct); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ utils.c:470:20: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] 470 | sprintf(eaddr, "%0x", oct); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 34 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ In file included from /usr/include/stdio.h:867, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: In function ‘vsnprintf’, inlined from ‘print_separator’ at utils.c:88:5: /usr/include/x86_64-linux-gnu/bits/stdio2.h:80:10: warning: ‘__builtin___vsnprintf_chk’ specified bound 256 exceeds destination size 255 [-Wstringop-overflow=] 80 | return __builtin___vsnprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 81 | __bos (__s), __fmt, __ap); | ~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: In function ‘strncpy’, inlined from ‘format_ethernet_addr’ at utils.c:428:9: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 18 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source='stats.c' object='stats.o' libtool=no \ depfile='.deps/stats.Po' tmpdepfile='.deps/stats.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c `test -f 'stats.c' || echo './'`stats.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 *, ...); | ^~~~~~~~~~ source='usage.c' object='usage.o' libtool=no \ depfile='.deps/usage.Po' tmpdepfile='.deps/usage.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c `test -f 'usage.c' || echo './'`usage.c source='exit.c' object='exit.o' libtool=no \ depfile='.deps/exit.Po' tmpdepfile='.deps/exit.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c `test -f 'exit.c' || echo './'`exit.c source='main.c' object='main.o' libtool=no \ depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c `test -f 'main.c' || echo './'`main.c 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 * 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: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 * 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: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 * 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: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 * 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 *,...); | ^~~~~~~~~~ In file included from /usr/include/string.h:495, from /usr/include/libnet.h:63, from main.h:31, from main.c:23: In function ‘strncpy’, inlined from ‘main’ at main.c:100:17: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 32 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source='tcp_hdr.c' object='tcp_hdr.o' libtool=no \ depfile='.deps/tcp_hdr.Po' tmpdepfile='.deps/tcp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c `test -f 'tcp_hdr.c' || echo './'`tcp_hdr.c 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:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from tcp_hdr.h:26, from tcp_hdr.c:23: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:126:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 126 | __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ tcp_hdr.c:50:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 50 | strcat(flags, "A"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from tcp_hdr.h:26, from tcp_hdr.c:23: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:126:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 126 | __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ tcp_hdr.c:53:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 53 | strcat(flags, "P"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from tcp_hdr.h:26, from tcp_hdr.c:23: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:126:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 126 | __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ tcp_hdr.c:56:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 56 | strcat(flags, "R"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from tcp_hdr.h:26, from tcp_hdr.c:23: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:126:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 126 | __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ tcp_hdr.c:59:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 59 | strcat(flags, "S"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from tcp_hdr.h:26, from tcp_hdr.c:23: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:126:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 126 | __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ tcp_hdr.c:62:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] 62 | strcat(flags, "F"); | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from tcp_hdr.h:26, from tcp_hdr.c:23: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:126:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 126 | __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ tcp_hdr.c:64:15: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] 64 | if(strlen(flags) == 0) | ^~~~~ | | | u_int8_t * {aka unsigned char *} In file included from /usr/include/libnet.h:63, from globals.h:31, from tcp_hdr.h:26, from tcp_hdr.c:23: /usr/include/string.h:385:35: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 385 | 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 *} In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from tcp_hdr.h:26, from tcp_hdr.c:23: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:1: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 88 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) | ^~~~~ 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, from tcp_hdr.h:26, from tcp_hdr.c:23: error.h:34:18: note: expected ‘u_int8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’ 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~~~ source='udp_hdr.c' object='udp_hdr.o' libtool=no \ depfile='.deps/udp_hdr.Po' tmpdepfile='.deps/udp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c `test -f 'udp_hdr.c' || echo './'`udp_hdr.c 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 *,...); | ^~~~~~~~~~ source='icmpv4_hdr.c' object='icmpv4_hdr.o' libtool=no \ depfile='.deps/icmpv4_hdr.Po' tmpdepfile='.deps/icmpv4_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c `test -f 'icmpv4_hdr.c' || echo './'`icmpv4_hdr.c 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: 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 * 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 *,...); | ^~~~~~~~~~ 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 * 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 *,...); | ^~~~~~~~~~ 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 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 *,...); | ^~~~~~~~~~ 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 * 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 *,...); | ^~~~~~~~~~ source='ipv4_hdr.c' object='ipv4_hdr.o' libtool=no \ depfile='.deps/ipv4_hdr.Po' tmpdepfile='.deps/ipv4_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c `test -f 'ipv4_hdr.c' || echo './'`ipv4_hdr.c 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 *,...); | ^~~~~~~~~~ source='ethernet_hdr.c' object='ethernet_hdr.o' libtool=no \ depfile='.deps/ethernet_hdr.Po' tmpdepfile='.deps/ethernet_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c `test -f 'ethernet_hdr.c' || echo './'`ethernet_hdr.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 *,...); | ^~~~~~~~~~ source='dump_packet.c' object='dump_packet.o' libtool=no \ depfile='.deps/dump_packet.Po' tmpdepfile='.deps/dump_packet.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c `test -f 'dump_packet.c' || echo './'`dump_packet.c source='arp_cache.c' object='arp_cache.o' libtool=no \ depfile='.deps/arp_cache.Po' tmpdepfile='.deps/arp_cache.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c `test -f 'arp_cache.c' || echo './'`arp_cache.c 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 * 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: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:119, from globals.h:31, from arp_cache.h:26, from arp_cache.c:24: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ 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 * 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: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 *} In file included from /usr/include/libnet.h:119, from globals.h:31, from arp_cache.h:26, from arp_cache.c:24: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ 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 * 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: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 * 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: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 * 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: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 * 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: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 * 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: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 *} In file included from /usr/include/libnet.h:119, from globals.h:31, from arp_cache.h:26, from arp_cache.c:24: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ 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 * 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: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 *} In file included from /usr/include/libnet.h:119, from globals.h:31, from arp_cache.h:26, from arp_cache.c:24: /usr/include/libnet/libnet-functions.h:227:38: note: expected ‘char *’ but argument is of type ‘u_int8_t *’ {aka ‘unsigned char *’} 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); | ~~~~~~^~~~~~~~~ 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 * 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: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 * 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: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 * 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: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 * 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 *,...); | ^~~~~~~~~~ source='process_packets.c' object='process_packets.o' libtool=no \ depfile='.deps/process_packets.Po' tmpdepfile='.deps/process_packets.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c `test -f 'process_packets.c' || echo './'`process_packets.c gcc -g -O2 -fdebug-prefix-map=/build/4g8-4nGBP6/4g8-1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wl,-z,relro -o 4g8 init.o error.o utils.o stats.o usage.o exit.o main.o tcp_hdr.o udp_hdr.o icmpv4_hdr.o ipv4_hdr.o ethernet_hdr.o dump_packet.o arp_cache.o process_packets.o -lpcap -lnet #strip 4g8 cp 4g8 .. make[3]: Leaving directory '/build/4g8-4nGBP6/4g8-1.0/src' make[3]: Entering directory '/build/4g8-4nGBP6/4g8-1.0' make[3]: Leaving directory '/build/4g8-4nGBP6/4g8-1.0' make[2]: Leaving directory '/build/4g8-4nGBP6/4g8-1.0' make[1]: Leaving directory '/build/4g8-4nGBP6/4g8-1.0' touch build-stamp fakeroot debian/rules binary-arch dh_testdir dh_testroot dh_prep dh_installdirs dh_installdirs: warning: Compatibility levels before 10 are deprecated (level 9 in use) # Add here commands to install the package into debian/tmp /usr/bin/make install prefix=$(pwd)/debian/4g8/usr \ mandir=$(pwd)/debian/4g8/usr/share/man make[1]: Entering directory '/build/4g8-4nGBP6/4g8-1.0' Making install in src make[2]: Entering directory '/build/4g8-4nGBP6/4g8-1.0/src' make[3]: Entering directory '/build/4g8-4nGBP6/4g8-1.0/src' /bin/sh ../mkinstalldirs /build/4g8-4nGBP6/4g8-1.0/debian/4g8/usr/sbin mkdir -p -- /build/4g8-4nGBP6/4g8-1.0/debian/4g8/usr/sbin /usr/bin/install -c 4g8 /build/4g8-4nGBP6/4g8-1.0/debian/4g8/usr/sbin/4g8 make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/build/4g8-4nGBP6/4g8-1.0/src' make[2]: Leaving directory '/build/4g8-4nGBP6/4g8-1.0/src' make[2]: Entering directory '/build/4g8-4nGBP6/4g8-1.0' make[3]: Entering directory '/build/4g8-4nGBP6/4g8-1.0' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/build/4g8-4nGBP6/4g8-1.0' make[2]: Leaving directory '/build/4g8-4nGBP6/4g8-1.0' make[1]: Leaving directory '/build/4g8-4nGBP6/4g8-1.0' dh_testdir dh_testroot dh_installchangelogs dh_installchangelogs: warning: Compatibility levels before 10 are deprecated (level 9 in use) dh_installdocs dh_installdocs: warning: Compatibility levels before 10 are deprecated (level 9 in use) dh_installexamples dh_installexamples: warning: Compatibility levels before 10 are deprecated (level 9 in use) dh_installman 4g8.1 dh_installman: warning: Compatibility levels before 10 are deprecated (level 9 in use) dh_link dh_strip dh_strip: warning: Compatibility levels before 10 are deprecated (level 9 in use) dh_compress dh_compress: warning: Compatibility levels before 10 are deprecated (level 9 in use) dh_fixperms dh_installdeb dh_installdeb: warning: Compatibility levels before 10 are deprecated (level 9 in use) dh_shlibdeps dh_shlibdeps: warning: Compatibility levels before 10 are deprecated (level 9 in use) dh_gencontrol dh_md5sums dh_builddeb dpkg-deb: building package '4g8' in '../4g8_1.0-3.3_amd64.deb'. dpkg-deb: building package '4g8-dbgsym' in '../4g8-dbgsym_1.0-3.3_amd64.deb'. dpkg-genbuildinfo --build=any dpkg-genchanges --build=any >../4g8_1.0-3.3_amd64.changes dpkg-genchanges: info: binary-only arch-specific upload (source code and arch-indep packages not included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: running special hook: sync-out /build/4g8-4nGBP6 /tmp/4g8-1.0-3.327ffg8lp I: cleaning package lists and apt cache... I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap.GKvfimoac_... I: success in 297.9862 seconds md5: 4g8-dbgsym_1.0-3.3_amd64.deb: OK md5: 4g8_1.0-3.3_amd64.deb: OK sha1: 4g8-dbgsym_1.0-3.3_amd64.deb: OK sha1: 4g8_1.0-3.3_amd64.deb: OK sha256: 4g8-dbgsym_1.0-3.3_amd64.deb: OK sha256: 4g8_1.0-3.3_amd64.deb: OK Checksums: OK