-
Notifications
You must be signed in to change notification settings - Fork 23
Description
make
cc -O2 -fPIC -g -Wall -Wshadow -Wcast-qual -Wwrite-strings -Wredundant-decls -Wnested-externs -Winline -I/usr/local/include -c arp.c
cc -O2 -fPIC -g -Wall -Wshadow -Wcast-qual -Wwrite-strings -Wredundant-decls -Wnested-externs -Winline -I/usr/local/include -c cleanup.c
cc -O2 -fPIC -g -Wall -Wshadow -Wcast-qual -Wwrite-strings -Wredundant-decls -Wnested-externs -Winline -I/usr/local/include -c cli.c
cc -O2 -fPIC -g -Wall -Wshadow -Wcast-qual -Wwrite-strings -Wredundant-decls -Wnested-externs -Winline -I/usr/local/include -c config.c
cc -O2 -fPIC -g -Wall -Wshadow -Wcast-qual -Wwrite-strings -Wredundant-decls -Wnested-externs -Winline -I/usr/local/include -c ether.c
ether.c:122:38: error: incomplete definition of type 'struct ether_vlan_header'
vlan = if_find_vlan(nmif, ntohs(evl->evl_tag));
~~~^
/usr/include/netinet/in.h:120:26: note: expanded from macro 'ntohs'
define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:129:30: note: expanded from macro '__ntohs'
define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:74:37: note: expanded from macro '__bswap16'
((__uint16_t)(__builtin_constant_p(x) ?
^
ether.c:92:9: note: forward declaration of 'struct ether_vlan_header'
struct ether_vlan_header *evl;
^
ether.c:122:38: error: incomplete definition of type 'struct ether_vlan_header'
vlan = if_find_vlan(nmif, ntohs(evl->evl_tag));
~~~^
/usr/include/netinet/in.h:120:26: note: expanded from macro 'ntohs'
define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:129:30: note: expanded from macro '__ntohs'
define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:75:33: note: expanded from macro '__bswap16'
__bswap16_gen((__uint16_t)(x)) : __bswap16_var(x)))
^
/usr/include/x86/endian.h:66:40: note: expanded from macro '__bswap16_gen'
define __bswap16_gen(x) (__uint16_t)((x) << 8 | (x) >> 8)
^
ether.c:92:9: note: forward declaration of 'struct ether_vlan_header'
struct ether_vlan_header *evl;
^
ether.c:122:38: error: incomplete definition of type 'struct ether_vlan_header'
vlan = if_find_vlan(nmif, ntohs(evl->evl_tag));
~~~^
/usr/include/netinet/in.h:120:26: note: expanded from macro 'ntohs'
define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:129:30: note: expanded from macro '__ntohs'
define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:75:33: note: expanded from macro '__bswap16'
__bswap16_gen((__uint16_t)(x)) : __bswap16_var(x)))
^
/usr/include/x86/endian.h:66:51: note: expanded from macro '__bswap16_gen'
define __bswap16_gen(x) (__uint16_t)((x) << 8 | (x) >> 8)
^
ether.c:92:9: note: forward declaration of 'struct ether_vlan_header'
struct ether_vlan_header *evl;
^
ether.c:122:38: error: incomplete definition of type 'struct ether_vlan_header'
vlan = if_find_vlan(nmif, ntohs(evl->evl_tag));
~~~^
/usr/include/netinet/in.h:120:26: note: expanded from macro 'ntohs'
define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:129:30: note: expanded from macro '__ntohs'
define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:75:53: note: expanded from macro '*bswap16'
__bswap16_gen((__uint16_t)(x)) : __bswap16_var(x)))
^
ether.c:92:9: note: forward declaration of 'struct ether_vlan_header'
struct ether_vlan_header evl;
^
ether.c:126:27: error: incomplete definition of type 'struct ether_vlan_header'
__func, ntohs(evl->evl_tag));
~~~^
./util.h:29:62: note: expanded from macro 'DPRINTF'
define DPRINTF(_fmt, args...) if (verbose) printf(_fmt, ## args)
^
/usr/include/netinet/in.h:120:26: note: expanded from macro 'ntohs'
define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:129:30: note: expanded from macro '__ntohs'
define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:74:37: note: expanded from macro '*bswap16'
((__uint16_t)(__builtin_constant_p(x) ?
^
ether.c:92:9: note: forward declaration of 'struct ether_vlan_header'
struct ether_vlan_header evl;
^
ether.c:126:27: error: incomplete definition of type 'struct ether_vlan_header'
__func, ntohs(evl->evl_tag));
~~~^
./util.h:29:62: note: expanded from macro 'DPRINTF'
define DPRINTF(_fmt, args...) if (verbose) printf(_fmt, ## args)
^
/usr/include/netinet/in.h:120:26: note: expanded from macro 'ntohs'
define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:129:30: note: expanded from macro '__ntohs'
define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:75:33: note: expanded from macro '__bswap16'
__bswap16_gen((__uint16_t)(x)) : __bswap16_var(x)))
^
/usr/include/x86/endian.h:66:40: note: expanded from macro '__bswap16_gen'
define __bswap16_gen(x) (__uint16_t)((x) << 8 | (x) >> 8)
^
ether.c:92:9: note: forward declaration of 'struct ether_vlan_header'
struct ether_vlan_header *evl;
^
ether.c:126:27: error: incomplete definition of type 'struct ether_vlan_header'
func, ntohs(evl->evl_tag));
~~~^
./util.h:29:62: note: expanded from macro 'DPRINTF'
define DPRINTF(_fmt, args...) if (verbose) printf(_fmt, ## args)
^
/usr/include/netinet/in.h:120:26: note: expanded from macro 'ntohs'
define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:129:30: note: expanded from macro '__ntohs'
define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:75:33: note: expanded from macro '__bswap16'
__bswap16_gen((__uint16_t)(x)) : __bswap16_var(x)))
^
/usr/include/x86/endian.h:66:51: note: expanded from macro '__bswap16_gen'
define __bswap16_gen(x) (__uint16_t)((x) << 8 | (x) >> 8)
^
ether.c:92:9: note: forward declaration of 'struct ether_vlan_header'
struct ether_vlan_header *evl;
^
ether.c:126:27: error: incomplete definition of type 'struct ether_vlan_header'
func, ntohs(evl->evl_tag));
~~~^
./util.h:29:62: note: expanded from macro 'DPRINTF'
define DPRINTF(_fmt, args...) if (verbose) printf(_fmt, ## args)
^
/usr/include/netinet/in.h:120:26: note: expanded from macro 'ntohs'
define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:129:30: note: expanded from macro '__ntohs'
define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:75:53: note: expanded from macro '__bswap16'
__bswap16_gen((__uint16_t)(x)) : __bswap16_var(x)))
^
ether.c:92:9: note: forward declaration of 'struct ether_vlan_header'
struct ether_vlan_header evl;
^
ether.c:136:7: error: incomplete definition of type 'struct ether_vlan_header'
evl->evl_encap_proto = htons(ETHERTYPE_VLAN);
~~~^
ether.c:92:9: note: forward declaration of 'struct ether_vlan_header'
struct ether_vlan_header *evl;
^
ether.c:137:7: error: incomplete definition of type 'struct ether_vlan_header'
evl->evl_tag = htons(vlan->nmif->nm_if_vtag);
~~~^
ether.c:92:9: note: forward declaration of 'struct ether_vlan_header'
struct ether_vlan_header *evl;
^
ether.c:196:6: error: incomplete definition of type 'struct ether_vlan_header'
evl->evl_encap_proto = htons(ETHERTYPE_VLAN);
~~~^
ether.c:160:9: note: forward declaration of 'struct ether_vlan_header'
struct ether_vlan_header *evl;
^
ether.c:197:6: error: incomplete definition of type 'struct ether_vlan_header'
evl->evl_tag = htons(nmif->nm_if_vtag);
~~~^
ether.c:160:9: note: forward declaration of 'struct ether_vlan_header'
struct ether_vlan_header *evl;
^
ether.c:198:6: error: incomplete definition of type 'struct ether_vlan_header'
evl->evl_proto = htons(ether_type);
~~~^
ether.c:160:9: note: forward declaration of 'struct ether_vlan_header'
struct ether_vlan_header *evl;
^
ether.c:200:14: error: incomplete definition of type 'struct ether_vlan_header'
memcpy(evl->evl_dhost, lladdr, sizeof(evl->evl_dhost));
~~~^
ether.c:160:9: note: forward declaration of 'struct ether_vlan_header'
struct ether_vlan_header *evl;
^
ether.c:202:14: error: incomplete definition of type 'struct ether_vlan_header'
memcpy(evl->evl_dhost, &arp->lladdr,
~~~^
ether.c:160:9: note: forward declaration of 'struct ether_vlan_header'
struct ether_vlan_header *evl;
^
ether.c:204:13: error: incomplete definition of type 'struct ether_vlan_header'
memcpy(evl->evl_shost, LLADDR(&nmif->nm_if_dl),
~~~^
ether.c:160:9: note: forward declaration of 'struct ether_vlan_header'
struct ether_vlan_header *evl;
^
16 errors generated.
** Error code 1
Stop.