==> Creating clean working copy [build]...done
==> Making package: irpas 0.10-3 (Sat Mar 25 16:40:06 EDT 2017)
==> Retrieving sources...
  -> Found irpas_0.10.tar.gz
==> Validating source files with sha512sums...
    irpas_0.10.tar.gz ... Passed
==> Making package: irpas 0.10-3 (Sat Mar 25 16:40:07 EDT 2017)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Packages (13) dbus-1.10.16-1  hwids-20161103-1  iptables-1.6.0-1  kbd-2.0.4-1  kmod-24-1  libelf-0.168-1  libmnl-1.0.4-1  libnftnl-1.0.7-1  libnl-3.2.29-2  libseccomp-2.3.2-1  libusb-1.0.21-1  systemd-232-8  libpcap-1.8.1-2

Total Installed Size:  29.52 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing libnl...
installing dbus...
installing libmnl...
installing libnftnl...
installing iptables...
installing kbd...
installing kmod...
installing hwids...
installing libelf...
installing libseccomp...
installing systemd...
warning: directory permissions differ on /var/log/journal/
filesystem: 755  package: 2755
Creating group systemd-journal-upload with gid 999.
Creating user systemd-journal-upload (systemd Journal Upload) with uid 999 and gid 999.
Creating group systemd-journal-remote with gid 998.
Creating user systemd-journal-remote (systemd Journal Remote) with uid 998 and gid 998.
Creating group systemd-coredump with gid 997.
Creating user systemd-coredump (systemd Core Dumper) with uid 997 and gid 997.
Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service -> /usr/lib/systemd/system/getty@.service.
Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target -> /usr/lib/systemd/system/remote-fs.target.
:: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
   bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
Optional dependencies for systemd
    cryptsetup: required for encrypted block devices
    libmicrohttpd: remote journald capabilities
    quota-tools: kernel-level quota management
    systemd-sysvcompat: symlink package to provide sysvinit binaries
    polkit: allow administration as unprivileged user
installing libusb...
installing libpcap...
:: Running post-transaction hooks...
(1/4) Updating udev hardware database...
(2/4) Updating system user accounts...
(3/4) Creating temporary files...
(4/4) Arming ConditionNeedsUpdate...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found irpas_0.10.tar.gz
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha512sums...
    irpas_0.10.tar.gz ... Passed
==> Extracting sources...
  -> Extracting irpas_0.10.tar.gz with bsdtar
==> Starting build()...
( cd libpcap-0.4; ./configure && make )
loading cache ./config.cache
checking host system type... Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized

checking target system type... Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized

checking build system type... Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized

checking for gcc... (cached) gcc
checking whether the C compiler (gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -Wl,-O1,--sort-common,--as-needed,-z,relro) works... yes
checking whether the C compiler (gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -Wl,-O1,--sort-common,--as-needed,-z,relro) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking gcc version... (cached) 2
checking how to run the C preprocessor... (cached) gcc -E
checking for malloc.h... (cached) yes
checking for sys/ioccom.h... (cached) no
checking for sys/sockio.h... (cached) no
checking for ANSI ioctl definitions... (cached) yes
checking for ether_hostton... (cached) yes
checking for strerror... (cached) yes
checking packet capture type... linux
checking for net/if_arp.h... (cached) yes
checking Linux kernel version... (cached) 2
checking for flex... (cached) flex
checking for flex 2.4 or higher... (cached) yes
checking for bison... (cached) bison
checking for ranlib... (cached) ranlib
checking if sockaddr struct has sa_len member... (cached) no
checking if unaligned accesses fail... (cached) no
checking for a BSD compatible install... (cached) /usr/bin/ginstall -c
creating ./config.status
creating Makefile
make[1]: Entering directory '/build/irpas/src/libpcap-0.4'
gcc -O2 -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -I.  -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./pcap-linux.c
./pcap-linux.c: In function 'pcap_read':
./pcap-linux.c:113:47: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign]
   cc = recvfrom(p->fd, bp, bufsize, 0, &from, &fromlen);
                                               ^
In file included from ./pcap-linux.c:28:0:
/usr/include/sys/socket.h:168:16: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *'
 extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
                ^~~~~~~~
At top level:
./pcap-linux.c:22:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] =
                   ^~~~~
gcc -O2 -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -I.  -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./pcap.c
./pcap.c:35:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] =
                   ^~~~~
gcc -O2 -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -I.  -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./inet.c
./inet.c:35:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] =
                   ^~~~~
gcc -O2 -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -I.  -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./gencode.c
./gencode.c:77:1: warning: function definition has qualified void return type
 bpf_error(const char *fmt, ...)
 ^~~~~~~~~
./gencode.c: In function 'newchunk':
./gencode.c:167:4: warning: function with qualified void return type called
    bpf_error("out of memory");
    ^~~~~~~~~
./gencode.c:173:4: warning: function with qualified void return type called
    bpf_error("out of memory");
    ^~~~~~~~~
./gencode.c: In function 'syntax':
./gencode.c:244:2: warning: function with qualified void return type called
  bpf_error("syntax error in filter expression");
  ^~~~~~~~~
./gencode.c: In function 'pcap_compile':
./gencode.c:282:4: warning: function with qualified void return type called
    bpf_error("expression rejects all packets");
    ^~~~~~~~~
./gencode.c: In function 'init_linktype':
./gencode.c:534:2: warning: function with qualified void return type called
  bpf_error("unknown data link type 0x%x", linktype);
  ^~~~~~~~~
./gencode.c: In function 'gen_host':
./gencode.c:855:3: warning: function with qualified void return type called
   bpf_error("'tcp' modifier applied to host");
   ^~~~~~~~~
./gencode.c:858:3: warning: function with qualified void return type called
   bpf_error("'udp' modifier applied to host");
   ^~~~~~~~~
./gencode.c:861:3: warning: function with qualified void return type called
   bpf_error("'icmp' modifier applied to host");
   ^~~~~~~~~
./gencode.c:864:3: warning: function with qualified void return type called
   bpf_error("'igmp' modifier applied to host");
   ^~~~~~~~~
./gencode.c:867:3: warning: function with qualified void return type called
   bpf_error("'igrp' modifier applied to host");
   ^~~~~~~~~
./gencode.c:870:3: warning: function with qualified void return type called
   bpf_error("ATALK host filtering not implemented");
   ^~~~~~~~~
./gencode.c:876:3: warning: function with qualified void return type called
   bpf_error("SCA host filtering not implemented");
   ^~~~~~~~~
./gencode.c:879:3: warning: function with qualified void return type called
   bpf_error("LAT host filtering not implemented");
   ^~~~~~~~~
./gencode.c:882:3: warning: function with qualified void return type called
   bpf_error("MOPDL host filtering not implemented");
   ^~~~~~~~~
./gencode.c:885:3: warning: function with qualified void return type called
   bpf_error("MOPRC host filtering not implemented");
   ^~~~~~~~~
./gencode.c: In function 'gen_gateway':
./gencode.c:903:3: warning: function with qualified void return type called
   bpf_error("direction applied to 'gateway'");
   ^~~~~~~~~
./gencode.c:915:4: warning: function with qualified void return type called
    bpf_error(
    ^~~~~~~~~
./gencode.c:928:2: warning: function with qualified void return type called
  bpf_error("illegal modifier of 'gateway'");
  ^~~~~~~~~
./gencode.c: In function 'gen_proto_abbrev':
./gencode.c:986:3: warning: function with qualified void return type called
   bpf_error("link layer applied in wrong context");
   ^~~~~~~~~
./gencode.c: In function 'lookup_proto':
./gencode.c:1140:4: warning: function with qualified void return type called
    bpf_error("unknown ip proto '%s'", name);
    ^~~~~~~~~
./gencode.c:1147:4: warning: function with qualified void return type called
    bpf_error("unknown ether proto '%s'", name);
    ^~~~~~~~~
./gencode.c: In function 'gen_proto':
./gencode.c:1166:3: warning: function with qualified void return type called
   bpf_error("direction applied to 'proto'");
   ^~~~~~~~~
./gencode.c:1177:3: warning: function with qualified void return type called
   bpf_error("arp does not encapsulate another protocol");
   ^~~~~~~~~
./gencode.c:1181:3: warning: function with qualified void return type called
   bpf_error("rarp does not encapsulate another protocol");
   ^~~~~~~~~
./gencode.c:1185:3: warning: function with qualified void return type called
   bpf_error("atalk encapsulation is not specifiable");
   ^~~~~~~~~
./gencode.c:1189:3: warning: function with qualified void return type called
   bpf_error("decnet encapsulation is not specifiable");
   ^~~~~~~~~
./gencode.c:1193:3: warning: function with qualified void return type called
   bpf_error("sca does not encapsulate another protocol");
   ^~~~~~~~~
./gencode.c:1197:3: warning: function with qualified void return type called
   bpf_error("lat does not encapsulate another protocol");
   ^~~~~~~~~
./gencode.c:1201:3: warning: function with qualified void return type called
   bpf_error("moprc does not encapsulate another protocol");
   ^~~~~~~~~
./gencode.c:1205:3: warning: function with qualified void return type called
   bpf_error("mopdl does not encapsulate another protocol");
   ^~~~~~~~~
./gencode.c:1212:3: warning: function with qualified void return type called
   bpf_error("'udp proto' is bogus");
   ^~~~~~~~~
./gencode.c:1216:3: warning: function with qualified void return type called
   bpf_error("'tcp proto' is bogus");
   ^~~~~~~~~
./gencode.c:1220:3: warning: function with qualified void return type called
   bpf_error("'icmp proto' is bogus");
   ^~~~~~~~~
./gencode.c:1224:3: warning: function with qualified void return type called
   bpf_error("'igmp proto' is bogus");
   ^~~~~~~~~
./gencode.c:1228:3: warning: function with qualified void return type called
   bpf_error("'igrp proto' is bogus");
   ^~~~~~~~~
./gencode.c: In function 'gen_scode':
./gencode.c:1256:4: warning: function with qualified void return type called
    bpf_error("unknown network '%s'", name);
    ^~~~~~~~~
./gencode.c:1273:6: warning: function with qualified void return type called
      bpf_error(
      ^~~~~~~~~
./gencode.c:1280:6: warning: function with qualified void return type called
      bpf_error(
      ^~~~~~~~~
./gencode.c:1285:5: warning: function with qualified void return type called
     bpf_error(
     ^~~~~~~~~
./gencode.c:1299:5: warning: function with qualified void return type called
     bpf_error("unknown host '%s'", name);
     ^~~~~~~~~
./gencode.c:1315:4: warning: function with qualified void return type called
    bpf_error("illegal qualifier of 'port'");
    ^~~~~~~~~
./gencode.c:1317:4: warning: function with qualified void return type called
    bpf_error("unknown port '%s'", name);
    ^~~~~~~~~
./gencode.c:1320:5: warning: function with qualified void return type called
     bpf_error("port '%s' is tcp", name);
     ^~~~~~~~~
./gencode.c:1327:5: warning: function with qualified void return type called
     bpf_error("port '%s' is udp", name);
     ^~~~~~~~~
./gencode.c:1337:4: warning: function with qualified void return type called
    bpf_error("unknown ether host: %s", name);
    ^~~~~~~~~
./gencode.c:1341:4: warning: function with qualified void return type called
    bpf_error("unknown host '%s'", name);
    ^~~~~~~~~
./gencode.c:1349:4: warning: function with qualified void return type called
    bpf_error("unknown protocol: %s", name);
    ^~~~~~~~~
./gencode.c: In function 'gen_mcode':
./gencode.c:1377:4: warning: function with qualified void return type called
    bpf_error("non-network bits set in \"%s mask %s\"",
    ^~~~~~~~~
./gencode.c:1382:4: warning: function with qualified void return type called
    bpf_error("mask length must be <= 32");
    ^~~~~~~~~
./gencode.c:1385:4: warning: function with qualified void return type called
    bpf_error("non-network bits set in \"%s/%d\"",
    ^~~~~~~~~
./gencode.c:1395:3: warning: function with qualified void return type called
   bpf_error("Mask syntax for networks only");
   ^~~~~~~~~
./gencode.c: In function 'gen_ncode':
./gencode.c:1426:4: warning: function with qualified void return type called
    bpf_error("illegal link layer address");
    ^~~~~~~~~
./gencode.c:1451:4: warning: function with qualified void return type called
    bpf_error("illegal qualifier of 'port'");
    ^~~~~~~~~
./gencode.c:1456:3: warning: function with qualified void return type called
   bpf_error("'gateway' requires a name");
   ^~~~~~~~~
./gencode.c: In function 'gen_ecode':
./gencode.c:1484:2: warning: function with qualified void return type called
  bpf_error("ethernet address used in non-ether expression");
  ^~~~~~~~~
./gencode.c: In function 'gen_load':
./gencode.c:1537:3: warning: function with qualified void return type called
   bpf_error("data size must be 1, 2, or 4");
   ^~~~~~~~~
./gencode.c:1553:3: warning: function with qualified void return type called
   bpf_error("unsupported index operation");
   ^~~~~~~~~
./gencode.c: In function 'alloc_reg':
./gencode.c:1762:2: warning: function with qualified void return type called
  bpf_error("too many registers needed to evaluate expression");
  ^~~~~~~~~
./gencode.c: In function 'gen_broadcast':
./gencode.c:1868:3: warning: function with qualified void return type called
   bpf_error("not a broadcast link");
   ^~~~~~~~~
./gencode.c:1881:2: warning: function with qualified void return type called
  bpf_error("only ether/ip broadcast filters supported");
  ^~~~~~~~~
./gencode.c: In function 'gen_multicast':
./gencode.c:1925:2: warning: function with qualified void return type called
  bpf_error("only IP multicast filters supported on ethernet/FDDI");
  ^~~~~~~~~
At top level:
./gencode.c:22:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] =
                   ^~~~~
gcc -O2 -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -I.  -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./optimize.c
./optimize.c: In function 'fold_op':
./optimize.c:604:4: warning: function with qualified void return type called
    bpf_error("division by zero");
    ^~~~~~~~~
At top level:
./optimize.c:24:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] =
                   ^~~~~
gcc -O2 -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -I.  -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./nametoaddr.c
./nametoaddr.c: In function '__pcap_atodn':
./nametoaddr.c:265:3: warning: function with qualified void return type called
   bpf_error("malformed decnet address '%s'", s);
   ^~~~~~~~~
./nametoaddr.c: In function '__pcap_nametodnaddr':
./nametoaddr.c:369:2: warning: function with qualified void return type called
  bpf_error("decnet name support not included, '%s' cannot be translated\n",
  ^~~~~~~~~
At top level:
./nametoaddr.c:26:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] =
                   ^~~~~
gcc -O2 -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -I.  -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./etherent.c
./etherent.c:23:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] =
                   ^~~~~
gcc -O2 -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -I.  -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./savefile.c
./savefile.c:32:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] =
                   ^~~~~
gcc -O2 -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -I.  -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./bpf_filter.c
./bpf_filter.c:42:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] =
                   ^~~~~
gcc -O2 -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -I.  -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./bpf_image.c
./bpf_image.c:23:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] =
                   ^~~~~
flex -Ppcap_ -t scanner.l > $$.scanner.c; mv $$.scanner.c scanner.c
bison -y -p pcap_ -d grammar.y
mv y.tab.c grammar.c
mv y.tab.h tokdefs.h
gcc -O2 -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -I.  -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./scanner.c
scanner.l: In function 'pcap_lex':
scanner.l:139:3: warning: function with qualified void return type called
 {B}:+({B}:+)+  { bpf_error("bogus ethernet address %s", yytext); }
   ^~~~~~~~~
scanner.l:144:4: warning: function with qualified void return type called
    bpf_error("illegal token: %s\n", yytext); }
    ^~~~~~~~~
scanner.l:145:3: warning: function with qualified void return type called
 .   { bpf_error("illegal char '%c'", *yytext); }
   ^~~~~~~~~
At top level:
<stdout>:1688:16: warning: 'input' defined but not used [-Wunused-function]
gcc -O2 -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -I.  -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -Dyylval=pcap_lval -c grammar.c
grammar.y: In function 'pcap_error':
grammar.y:66:2: warning: function with qualified void return type called
  bpf_error("%s", msg);
  ^~~~~~~~~
sed -e 's/.*/char pcap_version[] = "&";/' ./VERSION > version.c
gcc -O2 -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -I.  -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./version.c
ar rc libpcap.a pcap-linux.o pcap.o inet.o gencode.o optimize.o nametoaddr.o etherent.o savefile.o bpf_filter.o bpf_image.o scanner.o grammar.o version.o
ranlib libpcap.a
make[1]: Leaving directory '/build/irpas/src/libpcap-0.4'
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c cdp.c
In file included from cdp.c:25:0:
protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from cdp.c:13:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from cdp.c:25:0:
protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from cdp.c:13:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from cdp.c:25:0:
protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from cdp.c:13:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from cdp.c:25:0:
protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from cdp.c:26:0:
packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
cdp.c: In function 'main':
cdp.c:158:22: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
  srand((unsigned int)time(NULL));
                      ^~~~
cdp.c:176:6: warning: implicit declaration of function 'nanosleep' [-Wimplicit-function-declaration]
      nanosleep(&sleeper,NULL);
      ^~~~~~~~~
cdp.c: In function 'mk_flood_cdp':
cdp.c:273:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
     cdp_prt->length=htons(strlen(my_portid)+2*sizeof(u_int16_t));
                                  ^~~~~~~~~
In file included from cdp.c:12:0:
/usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}'
 extern size_t strlen (const char *__s)
               ^~~~~~
cdp.c:274:47: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
     memcpy(&(cdp_prt->port),&my_portid,strlen(my_portid));
                                               ^~~~~~~~~
In file included from cdp.c:12:0:
/usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}'
 extern size_t strlen (const char *__s)
               ^~~~~~
cdp.c:279:10: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
   strlen(my_portid))));
          ^~~~~~~~~
In file included from cdp.c:12:0:
/usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'u_char * {aka unsigned char *}'
 extern size_t strlen (const char *__s)
               ^~~~~~
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c packets.c
In file included from packets.c:22:0:
./protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from packets.c:17:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from packets.c:22:0:
./protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from packets.c:17:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from packets.c:22:0:
./protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from packets.c:17:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from packets.c:22:0:
./protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
./protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
./protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
./protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
./protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
./protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
./protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
./protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from packets.c:23:0:
./packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
packets.c: In function 'icmp_ping':
packets.c:95:7: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign]
       &addrsize))>=0) {
       ^
In file included from /usr/include/netinet/in.h:23:0,
                 from packets.c:17:
/usr/include/sys/socket.h:168:16: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *'
 extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
                ^~~~~~~~
packets.c: In function 'sendpack_eth':
packets.c:351:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif __DEBUG__
        ^~~~~~~~~
packets.c: In function 'chksum':
packets.c:391:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif __DEBUG__
        ^~~~~~~~~
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c enum.c
In file included from enum.c:20:0:
./protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from enum.c:10:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from enum.c:20:0:
./protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from enum.c:10:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from enum.c:20:0:
./protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from enum.c:10:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from enum.c:20:0:
./protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
./protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
./protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
./protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
./protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
./protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
./protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
./protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from enum.c:21:0:
./packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
In file included from enum.c:22:0:
./enum.h:22:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _ENUM_H_
        ^~~~~~~~
enum.c: In function 'enumerate':
enum.c:222:4: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign]
    &addrsize))>=0) {
    ^
In file included from /usr/include/netinet/in.h:23:0,
                 from enum.c:10:
/usr/include/sys/socket.h:168:16: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *'
 extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
                ^~~~~~~~
ar rcs libpackets.a packets.o enum.o
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -o cdp cdp.o -lpackets
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c igrp.c
In file included from igrp.c:28:0:
protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from igrp.c:13:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from igrp.c:28:0:
protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from igrp.c:13:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from igrp.c:28:0:
protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from igrp.c:13:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from igrp.c:28:0:
protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from igrp.c:29:0:
packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
igrp.c: In function 'send_table':
igrp.c:188:31: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
  printf("Routing table size (%d octets) is to large for one packet\n"
                               ^
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -o igrp igrp.o -lpackets
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c ass_v1.c
In file included from ass_v1.c:24:0:
protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from ass_v1.c:15:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from ass_v1.c:24:0:
protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from ass_v1.c:15:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from ass_v1.c:24:0:
protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from ass_v1.c:15:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from ass_v1.c:24:0:
protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from ass_v1.c:25:0:
packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
ass_v1.c: In function 'main':
ass_v1.c:384:25: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
      tm1=(unsigned long)time(NULL);
                         ^~~~
ass_v1.c: In function 'print_results':
ass_v1.c:1863:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
      if (c_cdp->portid!=NULL);
      ^~
ass_v1.c:1864:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   printf("\t%13s%17s  %s\n"," ","Port ID",c_cdp->portid);
   ^~~~~~
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -o ass ass_v1.o -lpackets -lpcap 
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c irdp.c
In file included from irdp.c:27:0:
protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from irdp.c:13:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from irdp.c:27:0:
protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from irdp.c:13:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from irdp.c:27:0:
protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from irdp.c:13:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from irdp.c:27:0:
protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from irdp.c:28:0:
packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -o irdp irdp.o -lpackets
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c irdpresponder.c
In file included from irdpresponder.c:29:0:
protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from irdpresponder.c:13:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from irdpresponder.c:29:0:
protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from irdpresponder.c:13:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from irdpresponder.c:29:0:
protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from irdpresponder.c:13:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from irdpresponder.c:29:0:
protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from irdpresponder.c:30:0:
packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
irdpresponder.c: In function 'main':
irdpresponder.c:161:37: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
  if ((t1+ADVERTTIME)<(unsigned long)time(NULL)) {
                                     ^~~~
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -o irdpresponder irdpresponder.o -lpackets -lpcap 
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c itrace.c
In file included from itrace.c:23:0:
protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from itrace.c:13:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from itrace.c:23:0:
protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from itrace.c:13:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from itrace.c:23:0:
protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from itrace.c:13:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from itrace.c:23:0:
protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from itrace.c:24:0:
packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
itrace.c: In function 'main':
itrace.c:213:29: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
      start_t=(unsigned long)time(NULL);
                             ^~~~
itrace.c:220:8: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign]
        &addrsize))>=0) {
        ^
In file included from /usr/include/netinet/in.h:23:0,
                 from itrace.c:13:
/usr/include/sys/socket.h:168:16: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *'
 extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
                ^~~~~~~~
itrace.c:262:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
     printf("Should be %d, is %d\n",
                        ^
itrace.c:327:3: warning: implicit declaration of function 'nanosleep' [-Wimplicit-function-declaration]
   nanosleep(&sleeper,NULL);
   ^~~~~~~~~
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -o itrace itrace.o -lpackets
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c tctrace.c
In file included from tctrace.c:24:0:
protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from tctrace.c:13:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from tctrace.c:24:0:
protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from tctrace.c:13:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from tctrace.c:24:0:
protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from tctrace.c:13:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from tctrace.c:24:0:
protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from tctrace.c:25:0:
packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
tctrace.c: In function 'main':
tctrace.c:256:8: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign]
        &addrsize))>=0) {
        ^
In file included from /usr/include/netinet/in.h:23:0,
                 from tctrace.c:13:
/usr/include/sys/socket.h:168:16: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *'
 extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
                ^~~~~~~~
tctrace.c:302:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
        printf("Should be %d, is %d\n",
                           ^
tctrace.c:354:8: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign]
        &addrsize))>=sizeof(tcphdr_t)+sizeof(iphdr_t)) {
        ^
In file included from /usr/include/netinet/in.h:23:0,
                 from tctrace.c:13:
/usr/include/sys/socket.h:168:16: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *'
 extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
                ^~~~~~~~
tctrace.c:359:22: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
    printf("FUCK: %d %d\n",rc,
                      ^
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -o tctrace tctrace.o -lpackets
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c protos.c
In file included from protos.c:24:0:
protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from protos.c:13:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from protos.c:24:0:
protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from protos.c:13:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from protos.c:24:0:
protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from protos.c:13:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from protos.c:24:0:
protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from protos.c:25:0:
packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
In file included from protos.c:26:0:
protocol-numbers.h:277:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOL_NUMBERS_H_
        ^~~~~~~~~~~~~~~~~~~~
protos.c: In function 'recv_icmp':
protos.c:286:7: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign]
       &addrsize)>0) {
       ^
In file included from /usr/include/netinet/in.h:23:0,
                 from protos.c:13:
/usr/include/sys/socket.h:168:16: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *'
 extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
                ^~~~~~~~
protos.c:436:16: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
   t1=(long int)time(NULL);
                ^~~~
protos.c: In function 'create_target_list':
protos.c:678:7: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign]
       &addrsize))>=0) {
       ^
In file included from /usr/include/netinet/in.h:23:0,
                 from protos.c:13:
/usr/include/sys/socket.h:168:16: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *'
 extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
                ^~~~~~~~
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -o protos protos.o -lpackets
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c netmask.c
In file included from netmask.c:23:0:
protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from netmask.c:13:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from netmask.c:23:0:
protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from netmask.c:13:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from netmask.c:23:0:
protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from netmask.c:13:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from netmask.c:23:0:
protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from netmask.c:24:0:
packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
netmask.c: In function 'main':
netmask.c:137:28: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
     start_t=(unsigned long)time(NULL);
                            ^~~~
netmask.c:146:7: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign]
       &addrsize))>=0) {
       ^
In file included from /usr/include/netinet/in.h:23:0,
                 from netmask.c:13:
/usr/include/sys/socket.h:168:16: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *'
 extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
                ^~~~~~~~
netmask.c:183:2: warning: implicit declaration of function 'nanosleep' [-Wimplicit-function-declaration]
  nanosleep(&sleeper,NULL);
  ^~~~~~~~~
netmask.c:53:23: warning: variable 'respond' set but not used [-Wunused-but-set-variable]
     int   rc,addrsize,respond=0;
                       ^~~~~~~
netmask.c:48:15: warning: variable 'ip' set but not used [-Wunused-but-set-variable]
     iphdr_t  *ip;
               ^~
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -o netmask netmask.o -lpackets
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c file2cable.c
In file included from file2cable.c:26:0:
protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from file2cable.c:13:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from file2cable.c:26:0:
protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from file2cable.c:13:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from file2cable.c:26:0:
protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from file2cable.c:13:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from file2cable.c:26:0:
protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from file2cable.c:27:0:
packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -o file2cable file2cable.o -lpackets
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c dfkaa.c
In file included from dfkaa.c:30:0:
./protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from dfkaa.c:17:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from dfkaa.c:30:0:
./protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from dfkaa.c:17:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from dfkaa.c:30:0:
./protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from dfkaa.c:17:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from dfkaa.c:30:0:
./protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
./protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
./protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
./protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
./protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
./protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
./protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
./protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
./protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from dfkaa.c:31:0:
./packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
In file included from dfkaa.c:33:0:
./enum.h:22:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _ENUM_H_
        ^~~~~~~~
dfkaa.c:36:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[2] {aka unsigned char[2]}' [-Wattributes]
     u_int8_t  protover[2] __attribute__ ((packed));
     ^~~~~~~~
dfkaa.c:38:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t  magic[4] __attribute__ ((packed));
     ^~~~~~~~
dfkaa.c:42:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t  ipaddr[4] __attribute__ ((packed));
     ^~~~~~~~
dfkaa.c:43:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t  netmask[4] __attribute__ ((packed));
     ^~~~~~~~
dfkaa.c:44:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t  serial[4] __attribute__ ((packed));
     ^~~~~~~~
dfkaa.c:45:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t  macaddr[6] __attribute__ ((packed));
     ^~~~~~~~
dfkaa.c:46:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  group  __attribute__ ((packed));
     ^~~~~~~~
dfkaa.c:51:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  devtype  __attribute__ ((packed));
     ^~~~~~~~
dfkaa.c:52:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  flag  __attribute__ ((packed));
     ^~~~~~~~
dfkaa.c:53:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t  name[16] __attribute__ ((packed));
     ^~~~~~~~
dfkaa.c:54:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[1] {aka unsigned char[1]}' [-Wattributes]
     u_int8_t  sep1[1]  __attribute__ ((packed));
     ^~~~~~~~
dfkaa.c:55:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[20] {aka unsigned char[20]}' [-Wattributes]
     u_int8_t  password[20] __attribute__ ((packed));
     ^~~~~~~~
dfkaa.c:56:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[1] {aka unsigned char[1]}' [-Wattributes]
     u_int8_t  sep2[1]  __attribute__ ((packed));
     ^~~~~~~~
dfkaa.c:57:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[1] {aka unsigned char[1]}' [-Wattributes]
     u_int8_t  unknown[1] __attribute__ ((packed));
     ^~~~~~~~
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -o dfkaa dfkaa.o -lpackets
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c netenum.c
In file included from netenum.c:3:0:
enum.h:22:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _ENUM_H_
        ^~~~~~~~
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -o netenum netenum.o -lpackets
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c hsrp.c
In file included from hsrp.c:23:0:
protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from hsrp.c:10:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from hsrp.c:23:0:
protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from hsrp.c:10:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from hsrp.c:23:0:
protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from hsrp.c:10:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from hsrp.c:23:0:
protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from hsrp.c:24:0:
packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -o hsrp hsrp.o -lpackets
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c icmp_redirect.c
In file included from icmp_redirect.c:22:0:
protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from icmp_redirect.c:13:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from icmp_redirect.c:22:0:
protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from icmp_redirect.c:13:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from icmp_redirect.c:22:0:
protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from icmp_redirect.c:13:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from icmp_redirect.c:22:0:
protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from icmp_redirect.c:23:0:
packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
icmp_redirect.c: In function 'free_cons':
icmp_redirect.c:462:13: warning: pointer targets in passing argument 1 of 'ctime' differ in signedness [-Wpointer-sign]
       ctime(&(fanchor->t)));
             ^
In file included from icmp_redirect.c:20:0:
/usr/include/time.h:147:14: note: expected 'const time_t * {aka const long int *}' but argument is of type 'long unsigned int *'
 extern char *ctime (const time_t *__timer) __THROW;
              ^~~~~
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -o icmp_redirect icmp_redirect.o -lpackets -lpcap 
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c timestamp.c
In file included from timestamp.c:23:0:
protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from timestamp.c:13:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from timestamp.c:23:0:
protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from timestamp.c:13:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from timestamp.c:23:0:
protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from timestamp.c:13:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from timestamp.c:23:0:
protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from timestamp.c:24:0:
packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
timestamp.c: In function 'main':
timestamp.c:137:28: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
     start_t=(unsigned long)time(NULL);
                            ^~~~
timestamp.c:146:7: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign]
       &addrsize))>=0) {
       ^
In file included from /usr/include/netinet/in.h:23:0,
                 from timestamp.c:13:
/usr/include/sys/socket.h:168:16: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *'
 extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
                ^~~~~~~~
timestamp.c:187:2: warning: implicit declaration of function 'nanosleep' [-Wimplicit-function-declaration]
  nanosleep(&sleeper,NULL);
  ^~~~~~~~~
timestamp.c:53:23: warning: variable 'respond' set but not used [-Wunused-but-set-variable]
     int   rc,addrsize,respond=0;
                       ^~~~~~~
timestamp.c:48:15: warning: variable 'ip' set but not used [-Wunused-but-set-variable]
     iphdr_t  *ip;
               ^~
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -o timestamp timestamp.o -lpackets
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -c dhcpx.c
In file included from dhcpx.c:23:0:
protocols.h:129:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t  code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:158:0: warning: "IPPROTO_ICMP" redefined
 #define IPPROTO_ICMP 0x01
 
In file included from dhcpx.c:14:0:
/usr/include/netinet/in.h:45:0: note: this is the location of the previous definition
 #define IPPROTO_ICMP  IPPROTO_ICMP
 
In file included from dhcpx.c:23:0:
protocols.h:160:0: warning: "IPPROTO_UDP" redefined
 #define IPPROTO_UDP 0x11
 
In file included from dhcpx.c:14:0:
/usr/include/netinet/in.h:57:0: note: this is the location of the previous definition
 #define IPPROTO_UDP  IPPROTO_UDP
 
In file included from dhcpx.c:23:0:
protocols.h:163:0: warning: "IPPROTO_GRE" redefined
 #define IPPROTO_GRE 0x2f
 
In file included from dhcpx.c:14:0:
/usr/include/netinet/in.h:69:0: note: this is the location of the previous definition
 #define IPPROTO_GRE  IPPROTO_GRE
 
In file included from dhcpx.c:23:0:
protocols.h:236:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            edition   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:251:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            destination[3]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:252:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            delay[3]        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:253:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t            bandwith[3]     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:255:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            reliability     __attribute__ ((packed));
     ^~~~~~~~
protocols.h:256:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            load            __attribute__ ((packed));
     ^~~~~~~~
protocols.h:257:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t            hopcount        __attribute__ ((packed));
     ^~~~~~~~
protocols.h:296:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:297:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:304:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[56] {aka unsigned char[56]}' [-Wattributes]
     u_int8_t data[56]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:308:5: warning: 'packed' attribute ignored for field of type 'icmphdr_t {aka struct <anonymous>}' [-Wattributes]
     icmphdr_t  icmp  __attribute__ ((packed));
     ^~~~~~~~~
protocols.h:309:5: warning: 'packed' attribute ignored for field of type 'icmp_echohdr_t {aka struct <anonymous>}' [-Wattributes]
     icmp_echohdr_t echo  __attribute__ ((packed));
     ^~~~~~~~~~~~~~
protocols.h:315:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t mask[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:327:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t num_addr  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:328:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t addrsize  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:333:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t addr[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:338:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:339:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:345:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:346:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t code   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:348:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t gateway[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:349:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[28] {aka unsigned char[28]}' [-Wattributes]
     u_int8_t headerdata[28]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:366:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:367:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:369:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t source[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:370:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t area[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:373:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[8] {aka unsigned char[8]}' [-Wattributes]
     u_int8_t authdata[8]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:377:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:379:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t options   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:380:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t priority  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:381:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t dead_interval[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:382:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t designated[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:383:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t backup[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:393:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:394:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_type   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:395:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t BPDU_flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:397:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t root_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:398:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t root_path_cost[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:400:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[6] {aka unsigned char[6]}' [-Wattributes]
     u_int8_t bridge_id[6]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:424:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t version   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:425:4: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
    u_int8_t opcode   __attribute__ ((packed));
    ^~~~~~~~
protocols.h:436:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmaj   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:437:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t iosmin   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:438:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmaj  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:439:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t eigrpmin  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:445:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k1   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:446:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k2   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:447:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k3   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:448:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k4   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:449:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t k5   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:450:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reseved   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:457:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:458:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t origrouter[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:463:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t external_link  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:464:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t flags   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:467:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:468:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:469:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:470:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:472:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:479:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:485:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4]  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:488:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[3] {aka unsigned char[3]}' [-Wattributes]
     u_int8_t mtu[3]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:489:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hopcount  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:490:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t reliability  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:491:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t load   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:493:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t prefix_length  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:500:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t dest   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:511:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:512:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:519:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:525:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t command  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:526:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t version  __attribute__ ((packed));
     ^~~~~~~~
protocols.h:533:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t address[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:534:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t netmask[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:535:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t nexthop[4] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:542:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[16] {aka unsigned char[16]}' [-Wattributes]
     u_int8_t auth[16] __attribute__ ((packed));
     ^~~~~~~~
protocols.h:594:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t msgtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:595:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwtype    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:596:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hwalen    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:597:5: warning: 'packed' attribute ignored for field of type 'u_int8_t {aka unsigned char}' [-Wattributes]
     u_int8_t hops    __attribute__ ((packed));
     ^~~~~~~~
protocols.h:605:5: warning: 'packed' attribute ignored for field of type 'u_char[16] {aka unsigned char[16]}' [-Wattributes]
     u_char chaddr[16]   __attribute__ ((packed));
     ^~~~~~
protocols.h:606:5: warning: 'packed' attribute ignored for field of type 'u_char[64] {aka unsigned char[64]}' [-Wattributes]
     u_char sname[64]   __attribute__ ((packed));
     ^~~~~~
protocols.h:607:5: warning: 'packed' attribute ignored for field of type 'u_char[128] {aka unsigned char[128]}' [-Wattributes]
     u_char file[128]   __attribute__ ((packed));
     ^~~~~~
protocols.h:608:5: warning: 'packed' attribute ignored for field of type 'u_int8_t[4] {aka unsigned char[4]}' [-Wattributes]
     u_int8_t cookie[4]   __attribute__ ((packed));
     ^~~~~~~~
protocols.h:620:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PROTOCOLS_H_
        ^~~~~~~~~~~~~
In file included from dhcpx.c:24:0:
packets.h:51:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _PACKET_H_
        ^~~~~~~~~~
dhcpx.c: In function 'main':
dhcpx.c:181:25: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
     srand((unsigned int)time(NULL));
                         ^~~~
dhcpx.c:201:33: warning: pointer targets in passing argument 1 of 'construct_arp_frame' differ in signedness [-Wpointer-sign]
   rawpacket=construct_arp_frame(&flen,&(cfg.dest));
                                 ^
dhcpx.c:106:9: note: expected 'int *' but argument is of type 'unsigned int *'
 u_char *construct_arp_frame(int *fsize, struct in_addr *dest);
         ^~~~~~~~~~~~~~~~~~~
dhcpx.c:223:46: warning: pointer targets in passing argument 1 of 'construct_dhcp_discover_frame' differ in signedness [-Wpointer-sign]
      rawpacket=construct_dhcp_discover_frame(&flen,NULL,NULL);
                                              ^
dhcpx.c:107:9: note: expected 'int *' but argument is of type 'unsigned int *'
 u_char *construct_dhcp_discover_frame(int *fsize,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dhcpx.c: In function 'server_add':
dhcpx.c:819:28: warning: implicit declaration of function 'ctime' [-Wimplicit-function-declaration]
        inet_ntoa(*srvaddr),ctime(&tempt));
                            ^~~~~
dhcpx.c:818:41: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
       printf("Server %s already known\t%s\n",
                                         ^
dhcpx.c: In function 'server_request_lease':
dhcpx.c:894:41: warning: pointer targets in passing argument 1 of 'construct_dhcp_discover_frame' differ in signedness [-Wpointer-sign]
     frame=construct_dhcp_discover_frame(&flen,&(s->addr),l);
                                         ^
dhcpx.c:447:9: note: expected 'int *' but argument is of type 'unsigned int *'
 u_char *construct_dhcp_discover_frame(int *fsize,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dhcpx.c: In function 'server_age_leases':
dhcpx.c:918:7: warning: pointer targets in passing argument 1 of 'construct_dhcp_request_frame' differ in signedness [-Wpointer-sign]
       &flen,(struct in_addr *)&(s->addr.s_addr),l);
       ^
dhcpx.c:571:9: note: expected 'int *' but argument is of type 'unsigned int *'
 u_char *construct_dhcp_request_frame(int *fsize,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
dhcpx.c: In function 'server_bind_leases':
dhcpx.c:993:7: warning: pointer targets in passing argument 1 of 'construct_dhcp_request_frame' differ in signedness [-Wpointer-sign]
       &flen,(struct in_addr *)&(s->addr.s_addr),l);
       ^
dhcpx.c:571:9: note: expected 'int *' but argument is of type 'unsigned int *'
 u_char *construct_dhcp_request_frame(int *fsize,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -Wall -g -Wunused -Wmissing-prototypes -I. -L. -I./libpcap-0.4 -L./libpcap-0.4 -o dhcpx dhcpx.o -lpackets -lpcap
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "irpas"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
error: invalid option '--noprogressbar'
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: irpas 0.10-3 (Sat Mar 25 16:40:14 EDT 2017)
==> Cleaning up...
==> Removing installed dependencies...
checking dependencies...
:: glib2 optionally requires libelf: gresource inspection tool

Packages (13) dbus-1.10.16-1  hwids-20161103-1  iptables-1.6.0-1  kbd-2.0.4-1  kmod-24-1  libelf-0.168-1  libmnl-1.0.4-1  libnftnl-1.0.7-1  libnl-3.2.29-2  libpcap-1.8.1-2  libseccomp-2.3.2-1  libusb-1.0.21-1  systemd-232-8

Total Removed Size:  29.52 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
removing libpcap...
removing libusb...
removing systemd...
removing libseccomp...
removing libnl...
removing libelf...
removing kmod...
removing kbd...
removing iptables...
removing libnftnl...
removing libmnl...
removing hwids...
removing dbus...