Use a uint16_t type for the vlan tag rather an int.
This commit is contained in:
parent
e86e344222
commit
a0cf818670
@ -386,7 +386,7 @@ extern int ether_output_frame(struct ifnet *, struct mbuf *);
|
||||
extern char *ether_sprintf(const u_int8_t *);
|
||||
void ether_vlan_mtap(struct bpf_if *, struct mbuf *,
|
||||
void *, u_int);
|
||||
struct mbuf *ether_vlanencap(struct mbuf *, int);
|
||||
struct mbuf *ether_vlanencap(struct mbuf *, uint16_t);
|
||||
|
||||
#else /* _KERNEL */
|
||||
|
||||
|
@ -1250,7 +1250,7 @@ ether_vlan_mtap(struct bpf_if *bp, struct mbuf *m, void *data, u_int dlen)
|
||||
}
|
||||
|
||||
struct mbuf *
|
||||
ether_vlanencap(struct mbuf *m, int tag)
|
||||
ether_vlanencap(struct mbuf *m, uint16_t tag)
|
||||
{
|
||||
struct ether_vlan_header *evl;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user