mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
vnic: fix compilation of an IPv6 only kernel
MFC after: 1 week Sponsored by: Netflix, Inc.
This commit is contained in:
parent
e1735b35e3
commit
1d3d30c8d2
|
@ -1749,10 +1749,15 @@ nicvf_sq_add_hdr_subdesc(struct snd_queue *sq, int qentry,
|
||||||
struct ether_vlan_header *eh;
|
struct ether_vlan_header *eh;
|
||||||
#ifdef INET
|
#ifdef INET
|
||||||
struct ip *ip;
|
struct ip *ip;
|
||||||
|
#endif
|
||||||
|
#if defined(INET6) || defined(INET)
|
||||||
struct tcphdr *th;
|
struct tcphdr *th;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef INET
|
||||||
|
int iphlen;
|
||||||
|
#endif
|
||||||
|
int ehdrlen, poff, proto;
|
||||||
uint16_t etype;
|
uint16_t etype;
|
||||||
int ehdrlen, iphlen, poff, proto;
|
|
||||||
|
|
||||||
nic = sq->nic;
|
nic = sq->nic;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue