Use a uint16_t type for the vlan tag rather an int.

This commit is contained in:
Andrew Thompson 2007-10-18 21:52:31 +00:00
parent e86e344222
commit a0cf818670
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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;