The following packages will be installed: packit Fetching README... 0%100%100%100%100%100%Done Fetching packit.SlackBuild... 0%100%100%100%100%100%Done Fetching packit.info... 0%100%100%100%100%100%Done Fetching slack-desc... 0%100%100%100%100%100%Done Fetching tcpdump.patch... 0%100%100%100%100%100%Done packit-1.0/ packit-1.0/ChangeLog packit-1.0/INSTALL packit-1.0/LICENSE packit-1.0/Makefile.am packit-1.0/Makefile.am.common packit-1.0/Makefile.in packit-1.0/VERSION packit-1.0/aclocal.m4 packit-1.0/compile packit-1.0/config.guess packit-1.0/config.h.in packit-1.0/config.status.lineno packit-1.0/config.sub packit-1.0/configure packit-1.0/configure.in packit-1.0/contrib/ packit-1.0/contrib/redhat/ packit-1.0/contrib/redhat/packit.spec packit-1.0/depcomp packit-1.0/docs/ packit-1.0/docs/ICMP.txt packit-1.0/install-sh packit-1.0/man/ packit-1.0/man/Makefile.am packit-1.0/man/Makefile.in packit-1.0/man/packit.8.in packit-1.0/missing packit-1.0/mkinstalldirs packit-1.0/src/ packit-1.0/src/utils.c packit-1.0/src/Makefile.am packit-1.0/src/print_arp_hdr.c packit-1.0/src/print_injection.c packit-1.0/src/error.c packit-1.0/src/print_udp_hdr.c packit-1.0/src/shape_icmpv4_hdr.c packit-1.0/src/injection.c packit-1.0/src/print_ipv4_hdr.c packit-1.0/src/capture.c packit-1.0/src/exit.c packit-1.0/src/shape_arp_hdr.c packit-1.0/src/shape_udp_hdr.c packit-1.0/src/shape_tcp_hdr.c packit-1.0/src/print_pktdump.c packit-1.0/src/shape_ethernet_hdr.c packit-1.0/src/print_tcp_hdr.c packit-1.0/src/print_icmpv4_hdr.c packit-1.0/src/print_ethernet_hdr.c packit-1.0/src/shape_ipv4_hdr.c packit-1.0/src/stats.c packit-1.0/src/shape_packet.c packit-1.0/src/usage.c packit-1.0/src/contrib/ packit-1.0/src/contrib/pcap_setnonblock.c packit-1.0/src/contrib/pcap-int.h packit-1.0/src/print_ts.c packit-1.0/src/Makefile.in packit-1.0/src/capture_defs.h packit-1.0/src/capture.h packit-1.0/src/error.h packit-1.0/src/exit.h packit-1.0/src/globals.h packit-1.0/src/init.h packit-1.0/src/inject_defs.h packit-1.0/src/injection.h packit-1.0/src/print_arp_hdr.h packit-1.0/src/print_defs.h packit-1.0/src/print_ethernet_hdr.h packit-1.0/src/print_icmpv4_hdr.h packit-1.0/src/print_injection.h packit-1.0/src/print_pktdump.h packit-1.0/src/print_ipv4_hdr.h packit-1.0/src/print_tcp_hdr.h packit-1.0/src/print_udp_hdr.h packit-1.0/src/shape_arp_hdr.h packit-1.0/src/shape_defs.h packit-1.0/src/shape_ethernet_hdr.h packit-1.0/src/shape_ipv4_hdr.h packit-1.0/src/init.c packit-1.0/src/shape_icmpv4_hdr.h packit-1.0/src/shape_packet.h packit-1.0/src/shape_tcp_hdr.h packit-1.0/src/shape_udp_hdr.h packit-1.0/src/stats.h packit-1.0/src/usage.h packit-1.0/src/utils.h packit-1.0/src/version.h.in packit-1.0/src/print_ts.h packit-1.0/src/main.h packit-1.0/src/define_defaults.h packit-1.0/src/define_defaults.c packit-1.0/src/main.c packit-1.0/src/print_capture.c packit-1.0/src/print_capture.h packit-1.0/src/payload.diff patching file src/globals.h patching file src/main.h beginning auto-configuration process for packit-1.0... checking for a BSD-compatible install... /usr/bin/ginstall -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets ${MAKE}... yes checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for gcc... yes checking build system type... x86_64-slackware-linux-gnu checking host system type... x86_64-slackware-linux-gnu checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for u_int8_t... yes checking for u_int16_t... yes checking for u_int32_t... yes checking for u_int64_t... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking net/bpf.h usability... no checking net/bpf.h presence... no checking for net/bpf.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking libnet.h usability... yes checking libnet.h presence... yes checking for libnet.h... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for printf... yes checking for fprintf... yes checking for snprintf... yes checking for sprintf... yes checking for strdup... yes checking for strrchr... yes checking for strstr... yes checking for strncasecmp... yes checking for strtol... yes checking for strncmp... yes checking for strncat... yes checking for memset... yes checking for malloc... yes checking for gethostbyname... yes checking for gettimeofday... yes checking for getuid... yes checking for select... yes checking for setitimer... yes checking for libnet_build_ipv4 in -lnet... yes checking for pcap_open_live in -lpcap... yes checking for pcap_setnonblock in -lpcap... yes checking for pcap_freecode in -lpcap... yes checking for bpf... no checking for a BSD-compatible install... /usr/bin/ginstall -c configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating man/Makefile config.status: creating man/packit.8 config.status: creating src/version.h config.status: creating config.h config.status: executing depfiles commands _ _ _ _ __ __ _ ___| | _(_) |_ | '_ \ / _` |/ __| |/ / | __| | |_) | (_| | (__| <| | |_ | .__/ \__,_|\___|_|\_\_|\__| |_| 1.0 has been configured with the following options: ----------------------------------------------- Host type : x86_64-slackware-linux-gnu Compiler : gcc Compiler flags : -O2 -fPIC -Wall Linker flags : Libraries : -lpcap -lpcap -lpcap -lnet Binary : /usr/bin Manual pages : /usr/man/ Injection support : yes Capture support : yes Enable debugging : no ----------------------------------------------- make all-recursive make[1]: Entering directory '/usr/src/slapt-src/network/packit/packit-1.0' Making all in src make[2]: Entering directory '/usr/src/slapt-src/network/packit/packit-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 -O2 -fPIC -Wall -c `test -f 'init.c' || echo './'`init.c init.c: In function ‘injection_struct_init’: init.c:34:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ahdr_o.s_paddr = IPV4_DEFAULT; ^ init.c:35:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ahdr_o.s_eaddr = ETH_DEFAULT; ^ init.c:36:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ahdr_o.r_paddr = IPV4_DEFAULT; ^ init.c:37:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ahdr_o.r_eaddr = ETH_DEFAULT; ^ source='define_defaults.c' object='define_defaults.o' libtool=no \ depfile='.deps/define_defaults.Po' tmpdepfile='.deps/define_defaults.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'define_defaults.c' || echo './'`define_defaults.c define_defaults.c: In function ‘define_injection_defaults’: define_defaults.c:34:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] s_d_port = "0"; ^ define_defaults.c:39:13: warning: array subscript is above array bounds [-Warray-bounds] hwaddr_p[17] = 0; ^ source='error.c' object='error.o' libtool=no \ depfile='.deps/error.Po' tmpdepfile='.deps/error.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -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] vsnprintf(error_buf, ERRBUF_MAXLEN, err, va); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from error.h:26, from error.c:23: /usr/include/stdio.h:390:12: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int vsnprintf (char *__restrict __s, size_t __maxlen, ^ source='injection.c' object='injection.o' libtool=no \ depfile='.deps/injection.Po' tmpdepfile='.deps/injection.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'injection.c' || echo './'`injection.c injection.c: In function ‘injection_init’: injection.c:60:19: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness [-Wpointer-sign] if(strstr(s_d_port, "-")) ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/string.h:337:14: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strstr (const char *__haystack, const char *__needle) ^ injection.c:65:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Invalid port range: %s", s_d_port); ^ In file included from usage.h:29:0, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ injection.c:70:34: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign] d_port = (u_int16_t)atoi(s_d_port); ^ In file included from /usr/include/features.h:368:0, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/stdlib.h:278:1: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ __NTH (atoi (const char *__nptr)) ^ injection.c:73:27: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!device && (device = pcap_lookupdev(error_buf)) == NULL) ^ injection.c:74:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Device lookup failure: Are you root?"); ^ In file included from usage.h:29:0, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ injection.c:76:15: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness [-Wpointer-sign] if(strstr(device, "any")) strcpy(device, "lo"); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/string.h:337:14: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strstr (const char *__haystack, const char *__needle) ^ injection.c:76:38: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] if(strstr(device, "any")) strcpy(device, "lo"); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/string.h:125:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ injection.c:79:25: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘u_int64_t {aka long unsigned int}’ [-Wformat=] fprintf(stdout, "Mode: Trace Route [Hop Max: %llu] using device: %s\n", cnt, device); ^ injection.c:83:40: warning: pointer targets in passing argument 2 of ‘libnet_init’ differ in signedness [-Wpointer-sign] if((pkt_d = libnet_init(init_type, device, error_buf)) == NULL) ^ In file included from /usr/include/libnet.h:119:0, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/libnet/libnet-functions.h:64:1: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ libnet_init(int injection_type, const char *device, char *err_buf); ^ injection.c:84:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to initialize packet injection"); ^ In file included from usage.h:29:0, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ injection.c: In function ‘with_response’: injection.c:124:30: warning: pointer targets in passing argument 1 of ‘pcap_open_live’ differ in signedness [-Wpointer-sign] if((pkt = pcap_open_live(device, 1500, 1, READ_TIMEOUT, error_buf)) == NULL) ^ In file included from globals.h:32:0, from injection.h:26, from injection.c:23: /usr/include/pcap/pcap.h:349:9: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ pcap_t *pcap_open_live(const char *, int, int, int, char *); ^ injection.c:125:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to open device: %s", error_buf); ^ In file included from usage.h:29:0, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ injection.c:127:23: warning: pointer targets in passing argument 1 of ‘pcap_lookupnet’ differ in signedness [-Wpointer-sign] if(pcap_lookupnet(device, &localnet, &netmask, error_buf) < 0) ^ In file included from globals.h:32:0, from injection.h:26, from injection.c:23: /usr/include/pcap/pcap.h:275:5: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); ^ injection.c:145:27: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] snprintf(ufilter, 1024, ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/stdio.h:386:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int snprintf (char *__restrict __s, size_t __maxlen, ^ injection.c:158:27: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] snprintf(ufilter, 1024, ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/stdio.h:386:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int snprintf (char *__restrict __s, size_t __maxlen, ^ injection.c:171:27: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] snprintf(ufilter, 1024, ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/stdio.h:386:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int snprintf (char *__restrict __s, size_t __maxlen, ^ injection.c:191:36: warning: pointer targets in passing argument 3 of ‘pcap_compile’ differ in signedness [-Wpointer-sign] if(pcap_compile(pkt, &bpf, filter, 0, netmask) < 0) ^ In file included from globals.h:32:0, from injection.h:26, from injection.c:23: /usr/include/pcap/pcap.h:389:5: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ int pcap_compile(pcap_t *, struct bpf_program *, const char *, int, ^ injection.c:195:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to set packet filters: %s", pcap_geterr(pkt)); ^ In file included from usage.h:29:0, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ injection.c:202:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to determine datalink type: %s", pcap_geterr(pkt)); ^ In file included from usage.h:29:0, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ injection.c:210:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to change to blocking mode: %s", error_buf); ^ In file included from usage.h:29:0, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ injection.c:217:31: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] print_separator(1, 2, (p_mode == M_TRACE) ? "HOP %d" : "SND %d", inj_cnt); ^ In file included from globals.h:42:0, from injection.h:26, from injection.c:23: utils.h:31:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void print_separator(int, int, u_int8_t *, ...); ^ injection.c:221:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to inject packet"); ^ In file included from usage.h:29:0, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ injection.c:244:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to inject packet"); ^ In file included from usage.h:29:0, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ injection.c:269:69: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] print_separator((p_mode == M_TRACE) ? 0 : 1, 1, "No Response From Peer"); ^ In file included from globals.h:42:0, from injection.h:26, from injection.c:23: utils.h:31:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void print_separator(int, int, u_int8_t *, ...); ^ injection.c: In function ‘without_response’: injection.c:327:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to inject packet"); ^ In file included from usage.h:29:0, from globals.h:43, from injection.h:26, from injection.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ injection.c:331:35: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] print_separator(1, 2, "SND %ld", inj_cnt); ^ In file included from globals.h:42:0, from injection.h:26, from injection.c:23: utils.h:31:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void print_separator(int, int, u_int8_t *, ...); ^ injection.c:348:37: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘u_int64_t {aka long unsigned int}’ [-Wformat=] fprintf(stderr, "\nWriting packet(s) (%llu): ", cnt); ^ source='capture.c' object='capture.o' libtool=no \ depfile='.deps/capture.Po' tmpdepfile='.deps/capture.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'capture.c' || echo './'`capture.c capture.c: In function ‘capture_init’: capture.c:54:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to open file: %s", error_buf); ^ In file included from usage.h:29:0, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ capture.c:60:24: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if((device = pcap_lookupdev(error_buf)) == NULL) ^ capture.c:61:29: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("%s: Check device permissions", error_buf); ^ In file included from usage.h:29:0, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ capture.c:64:34: warning: pointer targets in passing argument 1 of ‘pcap_open_live’ differ in signedness [-Wpointer-sign] if((pkt = pcap_open_live(device, snap_len, 1, READ_TIMEOUT, error_buf)) == NULL) ^ In file included from globals.h:32:0, from capture.h:26, from capture.c:23: /usr/include/pcap/pcap.h:349:9: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ pcap_t *pcap_open_live(const char *, int, int, int, char *); ^ capture.c:65:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to open device: %s", error_buf); ^ In file included from usage.h:29:0, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ capture.c:75:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to initialize packet capture: %s", pcap_geterr(pkt)); ^ In file included from usage.h:29:0, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ capture.c:80:23: warning: pointer targets in passing argument 1 of ‘pcap_lookupnet’ differ in signedness [-Wpointer-sign] if(pcap_lookupnet(device, &localnet, &netmask, error_buf) < 0) ^ In file included from globals.h:32:0, from capture.h:26, from capture.c:23: /usr/include/pcap/pcap.h:275:5: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); ^ capture.c:83:32: warning: pointer targets in passing argument 3 of ‘pcap_compile’ differ in signedness [-Wpointer-sign] if(pcap_compile(pkt, &bpf, filter, 0, netmask) < 0) ^ In file included from globals.h:32:0, from capture.h:26, from capture.c:23: /usr/include/pcap/pcap.h:389:5: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ int pcap_compile(pcap_t *, struct bpf_program *, const char *, int, ^ capture.c:87:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to set packet filters: %s", pcap_geterr(pkt)); ^ In file included from usage.h:29:0, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ capture.c:94:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to determine datalink type: %s", pcap_geterr(pkt)); ^ In file included from usage.h:29:0, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ capture.c:114:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to initialize pcap_loop: %s", pcap_geterr(pkt)); ^ In file included from usage.h:29:0, from globals.h:43, from capture.h:26, from capture.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ source='shape_arp_hdr.c' object='shape_arp_hdr.o' libtool=no \ depfile='.deps/shape_arp_hdr.Po' tmpdepfile='.deps/shape_arp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'shape_arp_hdr.c' || echo './'`shape_arp_hdr.c shape_arp_hdr.c: In function ‘shape_arp_hdr’: shape_arp_hdr.c:61:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to retrieve local IP address: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_arp_hdr.c:63:32: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ahdr_o.s_paddr = libnet_addr2name4(s_paddr, 0); ^ shape_arp_hdr.c:67:32: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ahdr_o.s_paddr = IPV4_DEFAULT; ^ shape_arp_hdr.c:72:44: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] if((s_paddr = libnet_name2addr4(pkt_d, ahdr_o.s_paddr, 0)) == -1) ^ In file included from /usr/include/libnet.h:119:0, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:1: note: expected ‘char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); ^ shape_arp_hdr.c:73:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Invalid sender protocol address: %s", ahdr_o.s_paddr); ^ In file included from usage.h:29:0, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_arp_hdr.c:81:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to determine ethernet address: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_arp_hdr.c:89:32: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ahdr_o.s_eaddr = ETH_DEFAULT; ^ shape_arp_hdr.c:94:29: warning: pointer targets in passing argument 1 of ‘format_ethernet_addr’ differ in signedness [-Wpointer-sign] if(format_ethernet_addr(ahdr_o.s_eaddr, s_neaddr) == 0) ^ In file included from globals.h:42:0, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: utils.h:43:11: note: expected ‘char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ u_int32_t format_ethernet_addr(char *, u_int8_t[]); ^ shape_arp_hdr.c:95:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Invalid sender ethernet address"); ^ In file included from usage.h:29:0, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_arp_hdr.c:97:14: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] snprintf(ahdr_o.shw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /usr/include/stdio.h:386:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int snprintf (char *__restrict __s, size_t __maxlen, ^ shape_arp_hdr.c:106:26: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to retrieve local IP address: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_arp_hdr.c:108:32: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ahdr_o.r_paddr = libnet_addr2name4(r_paddr, 0); ^ shape_arp_hdr.c:112:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ahdr_o.r_paddr = IPV4_DEFAULT; ^ shape_arp_hdr.c:117:44: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] if((r_paddr = libnet_name2addr4(pkt_d, ahdr_o.r_paddr, 0)) == -1) ^ In file included from /usr/include/libnet.h:119:0, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:1: note: expected ‘char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); ^ shape_arp_hdr.c:118:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Invalid receiver protocol address: %s", ahdr_o.r_paddr); ^ In file included from usage.h:29:0, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_arp_hdr.c:126:26: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to determine ethernet address: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_arp_hdr.c:134:32: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ahdr_o.r_eaddr = ETH_DEFAULT; ^ shape_arp_hdr.c:139:29: warning: pointer targets in passing argument 1 of ‘format_ethernet_addr’ differ in signedness [-Wpointer-sign] if(format_ethernet_addr(ahdr_o.r_eaddr, r_neaddr) == 0) ^ In file included from globals.h:42:0, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: utils.h:43:11: note: expected ‘char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ u_int32_t format_ethernet_addr(char *, u_int8_t[]); ^ shape_arp_hdr.c:140:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Invalid receiver ethernet address"); ^ In file included from usage.h:29:0, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_arp_hdr.c:142:14: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] snprintf(ahdr_o.rhw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /usr/include/stdio.h:386:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int snprintf (char *__restrict __s, size_t __maxlen, ^ shape_arp_hdr.c:160:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to build ARP header: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ source='shape_tcp_hdr.c' object='shape_tcp_hdr.o' libtool=no \ depfile='.deps/shape_tcp_hdr.Po' tmpdepfile='.deps/shape_tcp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'shape_tcp_hdr.c' || echo './'`shape_tcp_hdr.c shape_tcp_hdr.c: In function ‘shape_tcp_hdr’: shape_tcp_hdr.c:51:30: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] payload_len = strlen(payload); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern size_t strlen (const char *__s) ^ shape_tcp_hdr.c:70:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to build TCP header: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ source='shape_udp_hdr.c' object='shape_udp_hdr.o' libtool=no \ depfile='.deps/shape_udp_hdr.Po' tmpdepfile='.deps/shape_udp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'shape_udp_hdr.c' || echo './'`shape_udp_hdr.c shape_udp_hdr.c: In function ‘shape_udp_hdr’: shape_udp_hdr.c:44:30: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] payload_len = strlen(payload); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern size_t strlen (const char *__s) ^ shape_udp_hdr.c:58:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to build UDP header: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ source='shape_icmpv4_hdr.c' object='shape_icmpv4_hdr.o' libtool=no \ depfile='.deps/shape_icmpv4_hdr.Po' tmpdepfile='.deps/shape_icmpv4_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'shape_icmpv4_hdr.c' || echo './'`shape_icmpv4_hdr.c shape_icmpv4_hdr.c: In function ‘shape_icmpv4_hdr’: shape_icmpv4_hdr.c:58:38: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] payload_len = strlen(payload); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern size_t strlen (const char *__s) ^ shape_icmpv4_hdr.c:73:22: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to build ICMPv4 echo header: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_icmpv4_hdr.c:104:22: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("No original source IP address defined"); ^ In file included from usage.h:29:0, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_icmpv4_hdr.c:106:47: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] if((ihn_saddr = libnet_name2addr4(pkt_d, i4hdr_o.orig_s_addr, 1)) == -1) ^ In file included from /usr/include/libnet.h:119:0, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:1: note: expected ‘char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); ^ shape_icmpv4_hdr.c:107:22: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Invalid original source IP address: %s", i4hdr_o.orig_s_addr); ^ In file included from usage.h:29:0, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_icmpv4_hdr.c:110:22: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("No original destination IP address defined"); ^ In file included from usage.h:29:0, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_icmpv4_hdr.c:112:47: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] if((ihn_daddr = libnet_name2addr4(pkt_d, i4hdr_o.orig_d_addr, 1)) == -1) ^ In file included from /usr/include/libnet.h:119:0, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:1: note: expected ‘char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); ^ shape_icmpv4_hdr.c:113:22: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Invalid original destination IP address: %s", i4hdr_o.orig_d_addr); ^ In file included from usage.h:29:0, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_icmpv4_hdr.c:137:42: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] payload_len = strlen(payload); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern size_t strlen (const char *__s) ^ shape_icmpv4_hdr.c:156:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to build original IP header: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_icmpv4_hdr.c:168:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to build ICMPv4 unreach header: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_icmpv4_hdr.c:182:26: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("No gateway IP address defined"); ^ In file included from usage.h:29:0, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_icmpv4_hdr.c:184:55: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] if((ihn_gw = libnet_name2addr4(pkt_d, i4hdr_o.gw, 1)) == -1) ^ In file included from /usr/include/libnet.h:119:0, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:1: note: expected ‘char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); ^ shape_icmpv4_hdr.c:185:26: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Invalid gateway IP address: %s", i4hdr_o.gw); ^ In file included from usage.h:29:0, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_icmpv4_hdr.c:192:42: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] payload_len = strlen(payload); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern size_t strlen (const char *__s) ^ shape_icmpv4_hdr.c:211:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to build original IP header: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_icmpv4_hdr.c:224:26: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to build ICMPv4 redirect header: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_icmpv4_hdr.c:239:42: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] payload_len = strlen(payload); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern size_t strlen (const char *__s) ^ shape_icmpv4_hdr.c:258:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to build original IP header: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_icmpv4_hdr.c:270:26: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to build ICMPv4 timeexceed header: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_icmpv4_hdr.c:292:38: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] payload_len = strlen(payload); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern size_t strlen (const char *__s) ^ shape_icmpv4_hdr.c:310:15: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to build ICMPv4 timestamp header: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_icmpv4_hdr.c:327:57: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] if((ihn_mask = libnet_name2addr4(pkt_d, i4hdr_o.mask, 1)) == -1) ^ In file included from /usr/include/libnet.h:119:0, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:1: note: expected ‘char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); ^ shape_icmpv4_hdr.c:328:26: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Invalid mask address: %s", i4hdr_o.mask); ^ In file included from usage.h:29:0, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_icmpv4_hdr.c:335:38: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] payload_len = strlen(payload); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern size_t strlen (const char *__s) ^ shape_icmpv4_hdr.c:351:22: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to build ICMPv4 mask header: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_icmpv4_hdr.h:26, from shape_icmpv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ source='shape_ipv4_hdr.c' object='shape_ipv4_hdr.o' libtool=no \ depfile='.deps/shape_ipv4_hdr.Po' tmpdepfile='.deps/shape_ipv4_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'shape_ipv4_hdr.c' || echo './'`shape_ipv4_hdr.c shape_ipv4_hdr.c: In function ‘shape_ipv4_hdr’: shape_ipv4_hdr.c:41:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to retreive local IP address: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_ipv4_hdr.c:43:25: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ip4hdr_o.s_addr = libnet_addr2name4(ip4hdr_o.n_saddr, 1); ^ shape_ipv4_hdr.c:46:57: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] if((ip4hdr_o.n_saddr = libnet_name2addr4(pkt_d, ip4hdr_o.s_addr, 1)) == -1) ^ In file included from /usr/include/libnet.h:119:0, from globals.h:31, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:1: note: expected ‘char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); ^ shape_ipv4_hdr.c:47:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Invalid source IP address: %s", ip4hdr_o.s_addr); ^ In file included from usage.h:29:0, from globals.h:43, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_ipv4_hdr.c:50:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("No destination IP address defined"); ^ In file included from usage.h:29:0, from globals.h:43, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_ipv4_hdr.c:52:53: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness [-Wpointer-sign] if((ip4hdr_o.n_daddr = libnet_name2addr4(pkt_d, ip4hdr_o.d_addr, 1)) == -1) ^ In file included from /usr/include/libnet.h:119:0, from globals.h:31, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: /usr/include/libnet/libnet-functions.h:227:1: note: expected ‘char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); ^ shape_ipv4_hdr.c:53:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Invalid destination IP address: %s", ip4hdr_o.d_addr); ^ In file included from usage.h:29:0, from globals.h:43, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_ipv4_hdr.c:68:30: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] payload_len = strlen(payload); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern size_t strlen (const char *__s) ^ shape_ipv4_hdr.c:89:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to build IP header: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_ipv4_hdr.h:26, from shape_ipv4_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ source='shape_ethernet_hdr.c' object='shape_ethernet_hdr.o' libtool=no \ depfile='.deps/shape_ethernet_hdr.Po' tmpdepfile='.deps/shape_ethernet_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'shape_ethernet_hdr.c' || echo './'`shape_ethernet_hdr.c shape_ethernet_hdr.c: In function ‘shape_ethernet_hdr’: shape_ethernet_hdr.c:50:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to determine ethernet address: %s", libnet_geterror(pkt_d)); ^ In file included from usage.h:29:0, from globals.h:43, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_ethernet_hdr.c:56:33: warning: pointer targets in passing argument 1 of ‘format_ethernet_addr’ differ in signedness [-Wpointer-sign] if(format_ethernet_addr(ehdr_o.s_addr, us_addr) == 0) ^ In file included from globals.h:42:0, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: utils.h:43:11: note: expected ‘char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ u_int32_t format_ethernet_addr(char *, u_int8_t[]); ^ shape_ethernet_hdr.c:57:25: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Invalid source ethernet address"); ^ In file included from usage.h:29:0, from globals.h:43, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_ethernet_hdr.c:59:14: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] snprintf(ehdr_o.shw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: /usr/include/stdio.h:386:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int snprintf (char *__restrict __s, size_t __maxlen, ^ shape_ethernet_hdr.c:63:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ehdr_o.d_addr = ETH_BROADCAST; ^ shape_ethernet_hdr.c:68:23: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ehdr_o.d_addr = ETH_DEFAULT; ^ shape_ethernet_hdr.c:71:29: warning: pointer targets in passing argument 1 of ‘format_ethernet_addr’ differ in signedness [-Wpointer-sign] if(format_ethernet_addr(ehdr_o.d_addr, ud_addr) == 0) ^ In file included from globals.h:42:0, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: utils.h:43:11: note: expected ‘char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ u_int32_t format_ethernet_addr(char *, u_int8_t[]); ^ shape_ethernet_hdr.c:72:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Invalid destination ethernet address"); ^ In file included from usage.h:29:0, from globals.h:43, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_ethernet_hdr.c:74:14: warning: pointer targets in passing argument 1 of ‘snprintf’ differ in signedness [-Wpointer-sign] snprintf(ehdr_o.dhw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: /usr/include/stdio.h:386:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int snprintf (char *__restrict __s, size_t __maxlen, ^ shape_ethernet_hdr.c:86:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to build ethernet header"); ^ In file included from usage.h:29:0, from globals.h:43, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ shape_ethernet_hdr.c: In function ‘shape_ethernet_hdr_auto’: shape_ethernet_hdr.c:106:21: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unable to auto-build ethernet header"); ^ In file included from usage.h:29:0, from globals.h:43, from shape_ethernet_hdr.h:26, from shape_ethernet_hdr.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ source='shape_packet.c' object='shape_packet.o' libtool=no \ depfile='.deps/shape_packet.Po' tmpdepfile='.deps/shape_packet.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'shape_packet.c' || echo './'`shape_packet.c source='utils.c' object='utils.o' libtool=no \ depfile='.deps/utils.Po' tmpdepfile='.deps/utils.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'utils.c' || echo './'`utils.c utils.c: In function ‘retrieve_rand_ipv4_addr’: utils.c:95:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(ip, "%s.%d", ip, oct); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:97:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(ip, "%d", oct); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c: In function ‘retrieve_rand_ethernet_addr’: utils.c:117:20: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(eaddr, "%s:%0x", eaddr, oct); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:119:20: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(eaddr, "%0x", oct); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c: In function ‘print_separator’: utils.c:140:15: warning: pointer targets in passing argument 1 of ‘vsnprintf’ differ in signedness [-Wpointer-sign] vsnprintf(msg, 256, msgp, va); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:390:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int vsnprintf (char *__restrict __s, size_t __maxlen, ^ utils.c:140:25: warning: pointer targets in passing argument 3 of ‘vsnprintf’ differ in signedness [-Wpointer-sign] vsnprintf(msg, 256, msgp, va); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:390:12: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int vsnprintf (char *__restrict __s, size_t __maxlen, ^ utils.c:142:22: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] msg_len = strlen(msg); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern size_t strlen (const char *__s) ^ utils.c: In function ‘retrieve_icmp_code’: utils.c:174:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Network"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:178:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Host"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:182:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Protocol"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:186:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Port"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:190:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Need Fragment"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:194:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Source Fail"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:198:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Network Unknown"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:202:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Host Unknown"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:206:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Isolated"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:210:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Network Prohibited"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:214:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Host Prohibited"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:218:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "ToS Network"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:222:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "ToS Host"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:226:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Filter Prohibited"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:230:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Host Precedence"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:234:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Precedence Cutoff"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:238:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Unknown"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:248:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Network"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:252:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Host"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:256:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "ToS Net"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:260:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "ToS Host"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:264:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Unknown"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:274:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "In Transit"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:278:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Reassembly"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:282:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Unknown"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:292:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Missing Option"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:296:25: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Unknown"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:302:17: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_c, "Unknown"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c: In function ‘retrieve_icmp_type’: utils.c:323:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Echo Reply"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:327:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Unreachable"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:331:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Source Quench"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:335:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Redirect"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:339:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Echo Request"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:343:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Time Exceeded"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:347:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Param Problem"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:351:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Timestamp"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:355:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Timestamp Reply"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:359:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Info Request"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:363:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Info Reply"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:367:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Router Advertise"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:371:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Router Selection"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:375:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Address Mask Request"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:379:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Address Mask Reply"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:383:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Traceroute"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:387:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(icmp_t, "Unknown"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c: In function ‘retrieve_arp_type’: utils.c:408:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(arp_t, "Request"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:412:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(arp_t, "Reply"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:416:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(arp_t, "Reverse Request"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:420:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(arp_t, "Reverse Reply"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:424:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(arp_t, "Inverse Request"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:428:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(arp_t, "Inverse Reply"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:432:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(arp_t, "Unknown"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c: In function ‘retrieve_arp_hw_type’: utils.c:457:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(hw_t, "Net/ROM Pseudo"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:461:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(hw_t, "Ethernet 10/100"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:465:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(hw_t, "Experimental Ethernet"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:469:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(hw_t, "AX.25 Level 2"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:473:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(hw_t, "ProNet Token Ring"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:477:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(hw_t, "IEEE 802.2 Ethernet"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:481:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(hw_t, "ARCNet"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:485:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(hw_t, "AppleTalk"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:489:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(hw_t, "Lanstar"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:493:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(hw_t, "Frame Relay DLCI"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:497:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(hw_t, "ATM"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:501:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(hw_t, "Metricom STRIP"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:505:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(hw_t, "IPsec Tunnel"); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c: In function ‘format_ethernet_addr’: utils.c:551:30: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] u_int8_t *eptr, *delim = ":"; ^ In file included from /usr/include/string.h:630:0, from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: utils.c:559:17: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign] strncpy(o_ethstr, ethstr, 18); ^ utils.c:559:17: note: expected ‘char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ utils.c:566:23: warning: pointer targets in passing argument 1 of ‘strtok’ differ in signedness [-Wpointer-sign] for(eptr = strtok(o_ethstr, delim); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:343:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strtok (char *__restrict __s, const char *__restrict __delim) ^ utils.c:566:33: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] for(eptr = strtok(o_ethstr, delim); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:343:14: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strtok (char *__restrict __s, const char *__restrict __delim) ^ utils.c:566:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] for(eptr = strtok(o_ethstr, delim); ^ utils.c:568:30: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] eptr = strtok(NULL, delim)) ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:343:14: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strtok (char *__restrict __s, const char *__restrict __delim) ^ utils.c:568:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] eptr = strtok(NULL, delim)) ^ utils.c:570:29: warning: pointer targets in passing argument 1 of ‘strtol’ differ in signedness [-Wpointer-sign] if((base16 = strtol(eptr, 0, 16)) > 0xff) ^ In file included from /usr/include/libnet.h:67:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdlib.h:183:17: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern long int strtol (const char *__restrict __nptr, ^ utils.c:580:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ethstr = o_ethstr; ^ utils.c: In function ‘parse_port_range’: utils.c:588:45: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] u_int8_t o_rangestr[11], *ptr, *delim = "-"; ^ In file included from /usr/include/string.h:630:0, from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: utils.c:597:17: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign] strncpy(o_rangestr, rangestr, 11); ^ utils.c:597:17: note: expected ‘char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ utils.c:597:29: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign] strncpy(o_rangestr, rangestr, 11); ^ utils.c:597:29: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ utils.c:599:29: warning: pointer targets in passing argument 1 of ‘strtok’ differ in signedness [-Wpointer-sign] for(i = 0, ptr = strtok(o_rangestr, delim); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:343:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strtok (char *__restrict __s, const char *__restrict __delim) ^ utils.c:599:41: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] for(i = 0, ptr = strtok(o_rangestr, delim); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:343:14: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strtok (char *__restrict __s, const char *__restrict __delim) ^ utils.c:599:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] for(i = 0, ptr = strtok(o_rangestr, delim); ^ utils.c:601:28: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] ptr = strtok(NULL, delim)) ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:343:14: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strtok (char *__restrict __s, const char *__restrict __delim) ^ utils.c:601:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ptr = strtok(NULL, delim)) ^ utils.c:603:31: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign] spread[i] = (int)atoi(ptr); ^ In file included from /usr/include/features.h:368:0, from /usr/include/stdio.h:27, from /usr/include/libnet.h:62, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdlib.h:278:1: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ __NTH (atoi (const char *__nptr)) ^ utils.c: In function ‘generate_padding’: utils.c:645:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(string, "%c", c); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c:647:21: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(string, "%s%c", string, c); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ utils.c: In function ‘format_hex_payload’: utils.c:659:23: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] u_int8_t *delim = " "; ^ In file included from /usr/include/string.h:630:0, from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: utils.c:668:13: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign] strncpy(pl, string, 65535); ^ utils.c:668:13: note: expected ‘char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ utils.c:668:17: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign] strncpy(pl, string, 65535); ^ utils.c:668:17: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ utils.c:671:29: warning: argument to ‘sizeof’ in ‘memset’ call is the same pointer type ‘u_int8_t * {aka unsigned char *}’ as the destination; expected ‘u_int8_t {aka unsigned char}’ or an explicit length [-Wsizeof-pointer-memaccess] memset(string, 0, sizeof(u_int8_t *)); ^ utils.c:677:20: warning: pointer targets in passing argument 1 of ‘strtok’ differ in signedness [-Wpointer-sign] for(i = strtok(pl+3, delim); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:343:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strtok (char *__restrict __s, const char *__restrict __delim) ^ utils.c:677:26: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] for(i = strtok(pl+3, delim); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:343:14: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strtok (char *__restrict __s, const char *__restrict __delim) ^ utils.c:677:11: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] for(i = strtok(pl+3, delim); ^ utils.c:679:26: warning: pointer targets in passing argument 2 of ‘strtok’ differ in signedness [-Wpointer-sign] i = strtok(NULL, delim)) ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/string.h:343:14: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strtok (char *__restrict __s, const char *__restrict __delim) ^ utils.c:679:11: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] i = strtok(NULL, delim)) ^ utils.c:681:24: warning: pointer targets in passing argument 1 of ‘strtol’ differ in signedness [-Wpointer-sign] if((c = strtol(i, 0, 16)) > 0xff) ^ In file included from /usr/include/libnet.h:67:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdlib.h:183:17: note: expected ‘const char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern long int strtol (const char *__restrict __nptr, ^ utils.c:684:17: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(tchar,"%c",(u_int8_t)c); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from utils.h:26, from utils.c:23: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int sprintf (char *__restrict __s, ^ In file included from /usr/include/string.h:630:0, from /usr/include/libnet.h:63, from globals.h:31, from utils.h:26, from utils.c:23: utils.c:685:17: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign] strncpy(string+len,tchar,2); ^ utils.c:685:17: note: expected ‘char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ utils.c:685:28: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign] strncpy(string+len,tchar,2); ^ utils.c:685:28: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ source='stats.c' object='stats.o' libtool=no \ depfile='.deps/stats.Po' tmpdepfile='.deps/stats.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'stats.c' || echo './'`stats.c stats.c: In function ‘injection_stats’: stats.c:39:31: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] print_separator(1, 1, "Trace Route Statistics"); ^ In file included from globals.h:42:0, from stats.h:26, from stats.c:23: utils.h:31:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void print_separator(int, int, u_int8_t *, ...); ^ stats.c:41:67: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] print_separator((p_mode == M_INJECT_RESPONSE) ? 1 : 2, 1, "Packet Injection Statistics"); ^ In file included from globals.h:42:0, from stats.h:26, from stats.c:23: utils.h:31:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void print_separator(int, int, u_int8_t *, ...); ^ stats.c:49:25: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] fprintf(stdout, "Injected: %llu Packets/Sec: %llu.%llu Bytes/Sec: %llu.%llu ", ^ stats.c:49:25: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=] stats.c:49:25: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=] stats.c:49:25: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘long unsigned int’ [-Wformat=] stats.c:49:25: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 7 has type ‘long unsigned int’ [-Wformat=] stats.c:58:25: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] fprintf(stdout, "Injected: %llu Received: %llu Loss: %llu.%llu%% Bytes Written: %llu ", ^ stats.c:58:25: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘u_int64_t {aka long unsigned int}’ [-Wformat=] stats.c:58:25: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=] stats.c:58:25: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘long unsigned int’ [-Wformat=] stats.c:58:25: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 7 has type ‘long unsigned int’ [-Wformat=] stats.c:66:25: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘u_int64_t {aka long unsigned int}’ [-Wformat=] fprintf(stdout, "Hop Count: %llu Responses: %llu Bytes Written: %llu ", ^ stats.c:66:25: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘u_int64_t {aka long unsigned int}’ [-Wformat=] stats.c:66:25: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=] stats.c:70:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] fprintf(stdout, "Errors: %llu", ^ stats.c: In function ‘capture_stats’: stats.c:91:27: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] print_separator(0, 1, "Packet Capture Statistics"); ^ In file included from globals.h:42:0, from stats.h:26, from stats.c:23: utils.h:31:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void print_separator(int, int, u_int8_t *, ...); ^ stats.c:93:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘u_int64_t {aka long unsigned int}’ [-Wformat=] fprintf(stdout, "Received: %u Dropped: %u Processed: %llu", ^ source='contrib/pcap_setnonblock.c' object='pcap_setnonblock.o' libtool=no \ depfile='.deps/pcap_setnonblock.Po' tmpdepfile='.deps/pcap_setnonblock.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c -o pcap_setnonblock.o `test -f 'contrib/pcap_setnonblock.c' || echo './'`contrib/pcap_setnonblock.c source='usage.c' object='usage.o' libtool=no \ depfile='.deps/usage.Po' tmpdepfile='.deps/usage.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'usage.c' || echo './'`usage.c source='exit.c' object='exit.o' libtool=no \ depfile='.deps/exit.Po' tmpdepfile='.deps/exit.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'exit.c' || echo './'`exit.c exit.c: In function ‘injection_clean_exit’: exit.c:39:19: warning: pointer targets in passing argument 1 of ‘fgets’ differ in signedness [-Wpointer-sign] fgets(a, 16, stdin); ^ In file included from /usr/include/libnet.h:62:0, from globals.h:31, from exit.h:26, from exit.c:23: /usr/include/stdio.h:622:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^ exit.c:41:29: warning: pointer targets in passing argument 1 of ‘strncasecmp’ differ in signedness [-Wpointer-sign] if(!strncasecmp(a, "Y", 1)) ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from exit.h:26, from exit.c:23: /usr/include/string.h:533:12: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) ^ exit.c:44:29: warning: pointer targets in passing argument 1 of ‘strncasecmp’ differ in signedness [-Wpointer-sign] if(!strncasecmp(a, "N", 1)) ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from exit.h:26, from exit.c:23: /usr/include/string.h:533:12: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) ^ source='main.c' object='main.o' libtool=no \ depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'main.c' || echo './'`main.c main.c: In function ‘parse_capture_options’: main.c:58:29: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!(device = strdup(optarg))) ^ main.c:59:19: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Memory unavailable for: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:89:18: warning: pointer targets in passing argument 1 of ‘capture_init’ differ in signedness [-Wpointer-sign] capture_init(argv[optind], cnt); ^ In file included from injection.h:28:0, from main.h:40, from main.c:23: capture.h:31:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void capture_init(u_int8_t *, u_int64_t); ^ main.c: In function ‘parse_inject_options’: main.c:103:35: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] if(getuid() != 0) fatal_error("Sorry, you're not root!"); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:122:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] opts = "a:b:c:d:D:e:E:fF:hH:i:n:p:q:Rs:S:T:o:u:vw:W:Z:"; ^ main.c:132:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] opts = "b:c:d:D:e:E:fhH:i:n:o:p:Rs:S:T:vw:Z:"; ^ main.c:142:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] opts = "b:c:C:d:e:E:fg:G:hH:i:j:J:k:K:l:L:m:M:n:N:o:O:p:P:Q:Rs:t:T:U:vw:z:Z:"; ^ main.c:148:37: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("ARP is not supported with trace mode."); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:158:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] opts = "A:b:c:e:E:i:p:Rs:S:vx:X:y:Y:"; ^ main.c:164:37: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("RAW is not supported with trace mode."); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:170:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] opts = "b:c:d:e:E:f:i:n:o:p:Rs:T:U:vV:w:Z:"; ^ main.c:186:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] opts = "b:c:C:d:e:E:fg:G:hH:i:j:J:k:K:l:L:m:M:n:N:o:O:p:P:Q:Rs:t:T:U:vw:z:Z:"; ^ main.c:191:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] opts = "a:b:c:d:D:e:E:fF:hH:i:n:p:q:Rs:S:T:o:u:vw:W:Z:"; ^ main.c:205:37: warning: pointer targets in passing argument 3 of ‘getopt’ differ in signedness [-Wpointer-sign] while((opt = getopt(argc, argv, opts)) != -1) ^ In file included from /usr/include/unistd.h:874:0, from /usr/include/libnet.h:64, from main.h:26, from main.c:23: /usr/include/getopt.h:150:12: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) ^ main.c:223:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Count cannot exceed max TTL value"); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:236:24: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!(ip4hdr_o.d_addr = strdup(optarg))) ^ main.c:237:19: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Memory unavailable for: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:245:31: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!(s_d_port = strdup(optarg)) && !rand_d_port) ^ main.c:246:19: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Memory unavailable for: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:258:28: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!(ehdr_o.s_addr = strdup(optarg))) ^ main.c:259:19: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Memory unavailable for: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:273:36: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!(ehdr_o.d_addr = strdup(optarg))) ^ main.c:274:19: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Memory unavailable for: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:309:33: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!(i4hdr_o.gw = strdup(optarg))) ^ main.c:310:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Memory unavailable for: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:315:35: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!(i4hdr_o.mask = strdup(optarg))) ^ main.c:316:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Memory unavailable for: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:331:29: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!(device = strdup(optarg))) ^ main.c:332:19: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Memory unavailable for: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:340:42: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!(i4hdr_o.orig_s_addr = strdup(optarg))) ^ main.c:341:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Memory unavailable for: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:365:42: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!(i4hdr_o.orig_d_addr = strdup(optarg))) ^ main.c:366:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Memory unavailable for: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:413:30: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!(payload = strdup(optarg))) ^ main.c:414:19: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Memory unavailable for: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:428:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Unknown ICMP original protocol: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:452:38: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!(ip4hdr_o.s_addr = strdup(optarg))) ^ main.c:453:19: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Memory unavailable for: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:468:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Invalid TTL value: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:505:37: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!(ahdr_o.s_paddr = strdup(optarg))) ^ main.c:506:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Memory unavailable for: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:514:37: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!(ahdr_o.s_eaddr = strdup(optarg))) ^ main.c:515:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Memory unavailable for: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:523:37: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!(ahdr_o.r_paddr = strdup(optarg))) ^ main.c:524:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Memory unavailable for: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ main.c:532:37: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if(!(ahdr_o.r_eaddr = strdup(optarg))) ^ main.c:533:33: warning: pointer targets in passing argument 1 of ‘fatal_error’ differ in signedness [-Wpointer-sign] fatal_error("Memory unavailable for: %s", optarg); ^ In file included from usage.h:29:0, from globals.h:43, from main.h:37, from main.c:23: error.h:34:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void fatal_error(u_int8_t *,...); ^ source='print_ts.c' object='print_ts.o' libtool=no \ depfile='.deps/print_ts.Po' tmpdepfile='.deps/print_ts.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'print_ts.c' || echo './'`print_ts.c source='print_arp_hdr.c' object='print_arp_hdr.o' libtool=no \ depfile='.deps/print_arp_hdr.Po' tmpdepfile='.deps/print_arp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'print_arp_hdr.c' || echo './'`print_arp_hdr.c source='print_tcp_hdr.c' object='print_tcp_hdr.o' libtool=no \ depfile='.deps/print_tcp_hdr.Po' tmpdepfile='.deps/print_tcp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'print_tcp_hdr.c' || echo './'`print_tcp_hdr.c print_tcp_hdr.c: In function ‘print_tcp_hdr’: print_tcp_hdr.c:47:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] strcat(flags, "U"); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strcat (char *__restrict __dest, const char *__restrict __src) ^ print_tcp_hdr.c:50:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] strcat(flags, "A"); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strcat (char *__restrict __dest, const char *__restrict __src) ^ print_tcp_hdr.c:53:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] strcat(flags, "P"); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strcat (char *__restrict __dest, const char *__restrict __src) ^ print_tcp_hdr.c:56:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] strcat(flags, "R"); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strcat (char *__restrict __dest, const char *__restrict __src) ^ print_tcp_hdr.c:59:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] strcat(flags, "S"); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strcat (char *__restrict __dest, const char *__restrict __src) ^ print_tcp_hdr.c:62:16: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] strcat(flags, "F"); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:133:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strcat (char *__restrict __dest, const char *__restrict __src) ^ print_tcp_hdr.c:64:15: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] if(strlen(flags) == 0) ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern size_t strlen (const char *__s) ^ print_tcp_hdr.c:65:16: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(flags, "None"); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from print_tcp_hdr.h:26, from print_tcp_hdr.c:23: /usr/include/string.h:125:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ source='print_udp_hdr.c' object='print_udp_hdr.o' libtool=no \ depfile='.deps/print_udp_hdr.Po' tmpdepfile='.deps/print_udp_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'print_udp_hdr.c' || echo './'`print_udp_hdr.c source='print_icmpv4_hdr.c' object='print_icmpv4_hdr.o' libtool=no \ depfile='.deps/print_icmpv4_hdr.Po' tmpdepfile='.deps/print_icmpv4_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'print_icmpv4_hdr.c' || echo './'`print_icmpv4_hdr.c print_icmpv4_hdr.c: In function ‘print_icmpv4_hdr’: print_icmpv4_hdr.c:60:24: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] s_addr = libnet_addr2name4(icmp_iphdr.ip_src.s_addr, 0); ^ print_icmpv4_hdr.c:61:24: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] d_addr = libnet_addr2name4(icmp_iphdr.ip_dst.s_addr, 0); ^ print_icmpv4_hdr.c:86:24: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] s_addr = libnet_addr2name4(icmp_iphdr.ip_src.s_addr, 0); ^ print_icmpv4_hdr.c:87:24: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] d_addr = libnet_addr2name4(icmp_iphdr.ip_dst.s_addr, 0); ^ print_icmpv4_hdr.c:109:24: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] s_addr = libnet_addr2name4(icmp_iphdr.ip_src.s_addr, 0); ^ print_icmpv4_hdr.c:110:24: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] d_addr = libnet_addr2name4(icmp_iphdr.ip_dst.s_addr, 0); ^ source='print_ipv4_hdr.c' object='print_ipv4_hdr.o' libtool=no \ depfile='.deps/print_ipv4_hdr.Po' tmpdepfile='.deps/print_ipv4_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'print_ipv4_hdr.c' || echo './'`print_ipv4_hdr.c print_ipv4_hdr.c: In function ‘print_ipv4_hdr’: print_ipv4_hdr.c:42:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] s_addr = libnet_addr2name4(iphdr->ip_src.s_addr, ((resolve == 1 || resolve == 3) ? 1 : 0)); ^ print_ipv4_hdr.c:43:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] d_addr = libnet_addr2name4(iphdr->ip_dst.s_addr, ((resolve == 1 || resolve == 3) ? 1 : 0)); ^ source='print_ethernet_hdr.c' object='print_ethernet_hdr.o' libtool=no \ depfile='.deps/print_ethernet_hdr.Po' tmpdepfile='.deps/print_ethernet_hdr.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'print_ethernet_hdr.c' || echo './'`print_ethernet_hdr.c source='print_pktdump.c' object='print_pktdump.o' libtool=no \ depfile='.deps/print_pktdump.Po' tmpdepfile='.deps/print_pktdump.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'print_pktdump.c' || echo './'`print_pktdump.c source='print_capture.c' object='print_capture.o' libtool=no \ depfile='.deps/print_capture.Po' tmpdepfile='.deps/print_capture.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'print_capture.c' || echo './'`print_capture.c print_capture.c: In function ‘print_capture’: print_capture.c:47:39: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] print_separator(1, 2, "PID %lld", (u_int64_t)cap_cnt + 1); ^ In file included from globals.h:42:0, from print_capture.h:26, from print_capture.c:23: utils.h:31:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void print_separator(int, int, u_int8_t *, ...); ^ print_capture.c:50:39: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] print_separator(1, 2, "RCV %lld", (u_int64_t)inj_cnt); ^ In file included from globals.h:42:0, from print_capture.h:26, from print_capture.c:23: utils.h:31:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void print_separator(int, int, u_int8_t *, ...); ^ print_capture.c:106:39: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] print_separator(1, 2, "PID %lld", (u_int64_t)cap_cnt + 1); ^ In file included from globals.h:42:0, from print_capture.h:26, from print_capture.c:23: utils.h:31:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void print_separator(int, int, u_int8_t *, ...); ^ print_capture.c:109:39: warning: pointer targets in passing argument 3 of ‘print_separator’ differ in signedness [-Wpointer-sign] print_separator(1, 2, "RCV %lld", (u_int64_t)inj_cnt); ^ In file included from globals.h:42:0, from print_capture.h:26, from print_capture.c:23: utils.h:31:6: note: expected ‘u_int8_t * {aka unsigned char *}’ but argument is of type ‘char *’ void print_separator(int, int, u_int8_t *, ...); ^ source='print_injection.c' object='print_injection.o' libtool=no \ depfile='.deps/print_injection.Po' tmpdepfile='.deps/print_injection.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/usr/include/pcap -O2 -fPIC -Wall -c `test -f 'print_injection.c' || echo './'`print_injection.c print_injection.c: In function ‘print_injection_details’: print_injection.c:44:24: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] strcat(thdr_o.flags, "S"); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strcat (char *__restrict __dest, const char *__restrict __src) ^ print_injection.c:47:24: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] strcat(thdr_o.flags, "A"); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strcat (char *__restrict __dest, const char *__restrict __src) ^ print_injection.c:50:24: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] strcat(thdr_o.flags, "F"); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strcat (char *__restrict __dest, const char *__restrict __src) ^ print_injection.c:53:24: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] strcat(thdr_o.flags, "R"); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strcat (char *__restrict __dest, const char *__restrict __src) ^ print_injection.c:56:24: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] strcat(thdr_o.flags, "P"); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strcat (char *__restrict __dest, const char *__restrict __src) ^ print_injection.c:59:24: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness [-Wpointer-sign] strcat(thdr_o.flags, "U"); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:133:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strcat (char *__restrict __dest, const char *__restrict __src) ^ print_injection.c:61:23: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] if(strlen(thdr_o.flags) < 1) ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:394:15: note: expected ‘const char *’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern size_t strlen (const char *__s) ^ print_injection.c:62:24: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(thdr_o.flags, "None"); ^ In file included from /usr/include/libnet.h:63:0, from globals.h:31, from print_injection.h:26, from print_injection.c:23: /usr/include/string.h:125:14: note: expected ‘char * restrict’ but argument is of type ‘u_int8_t * {aka unsigned char *}’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ gcc -O2 -fPIC -Wall -o packit init.o define_defaults.o error.o injection.o capture.o shape_arp_hdr.o shape_tcp_hdr.o shape_udp_hdr.o shape_icmpv4_hdr.o shape_ipv4_hdr.o shape_ethernet_hdr.o shape_packet.o utils.o stats.o pcap_setnonblock.o usage.o exit.o main.o print_ts.o print_arp_hdr.o print_tcp_hdr.o print_udp_hdr.o print_icmpv4_hdr.o print_ipv4_hdr.o print_ethernet_hdr.o print_pktdump.o print_capture.o print_injection.o -lpcap -lpcap -lpcap -lnet strip packit cp packit .. make[2]: Leaving directory '/usr/src/slapt-src/network/packit/packit-1.0/src' Making all in man make[2]: Entering directory '/usr/src/slapt-src/network/packit/packit-1.0/man' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/usr/src/slapt-src/network/packit/packit-1.0/man' make[2]: Entering directory '/usr/src/slapt-src/network/packit/packit-1.0' make[2]: Leaving directory '/usr/src/slapt-src/network/packit/packit-1.0' make[1]: Leaving directory '/usr/src/slapt-src/network/packit/packit-1.0' Making install in src make[1]: Entering directory '/usr/src/slapt-src/network/packit/packit-1.0/src' make[2]: Entering directory '/usr/src/slapt-src/network/packit/packit-1.0/src' /bin/sh ../mkinstalldirs /usr/src/slapt-src/network/packit/package-packit/usr/sbin mkdir -p -- /usr/src/slapt-src/network/packit/package-packit/usr/sbin /usr/bin/ginstall -c packit /usr/src/slapt-src/network/packit/package-packit/usr/sbin/packit make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/usr/src/slapt-src/network/packit/packit-1.0/src' make[1]: Leaving directory '/usr/src/slapt-src/network/packit/packit-1.0/src' Making install in man make[1]: Entering directory '/usr/src/slapt-src/network/packit/packit-1.0/man' make[2]: Entering directory '/usr/src/slapt-src/network/packit/packit-1.0/man' make[2]: Nothing to be done for 'install-exec-am'. /bin/sh ../mkinstalldirs /usr/src/slapt-src/network/packit/package-packit/usr/man/man8 mkdir -p -- /usr/src/slapt-src/network/packit/package-packit/usr/man/man8 /usr/bin/ginstall -c -m 644 ./packit.8 /usr/src/slapt-src/network/packit/package-packit/usr/man/man8/packit.8 make[2]: Leaving directory '/usr/src/slapt-src/network/packit/packit-1.0/man' make[1]: Leaving directory '/usr/src/slapt-src/network/packit/packit-1.0/man' make[1]: Entering directory '/usr/src/slapt-src/network/packit/packit-1.0' make[2]: Entering directory '/usr/src/slapt-src/network/packit/packit-1.0' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/usr/src/slapt-src/network/packit/packit-1.0' make[1]: Leaving directory '/usr/src/slapt-src/network/packit/packit-1.0' Slackware package maker, version 3.141593. Searching for symbolic links: No symbolic links were found, so we won't make an installation script. You can make your own later in ./install/doinst.sh and rebuild the package if you like. This next step is optional - you can set the directories in your package to some sane permissions. If any of the directories in your package have special permissions, then DO NOT reset them here! Would you like to reset all directory permissions to 755 (drwxr-xr-x) and directory ownerships to root.root ([y]es, [n]o)? n Creating Slackware package: /usr/src/slapt-src/network/packit/packit-1.0-x86_64-2salix.txz ./ usr/ usr/sbin/ usr/sbin/packit usr/doc/ usr/doc/packit-1.0/ usr/doc/packit-1.0/LICENSE usr/doc/packit-1.0/packit.SlackBuild usr/doc/packit-1.0/docs/ usr/doc/packit-1.0/docs/ICMP.txt usr/doc/packit-1.0/ChangeLog usr/man/ usr/man/man8/ usr/man/man8/packit.8.gz install/ install/slack-desc Slackware package /usr/src/slapt-src/network/packit/packit-1.0-x86_64-2salix.txz created. Installing package packit-1.0-x86_64-2salix... | Packit - Network Injection and Capture | | Packit (Packet toolkit) is a network auditing tool. Its value is | derived from its ability to customize, inject, monitor, and | manipulate IP traffic. By allowing you to define (spoof) nearly all | TCP, UDP, ICMP, IP, ARP, RARP, and Ethernet header options, Packit | can be useful in testing firewalls, intrusion detection/prevention | systems, port scanning, simulating network traffic, and general | TCP/IP auditing. Packit is also an excellent tool for learning | TCP/IP. | | |