summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2007-10-18 21:52:31 +0000
committerthompsa <thompsa@FreeBSD.org>2007-10-18 21:52:31 +0000
commit1949642b85afd13ac8628d8538dc4a6e0e3eac25 (patch)
treee3141bfabe64561b9e99cb40034bd322a8edcc67
parentfd172ed3272b523c5499832d7098b6766bac7e4f (diff)
downloadFreeBSD-src-1949642b85afd13ac8628d8538dc4a6e0e3eac25.zip
FreeBSD-src-1949642b85afd13ac8628d8538dc4a6e0e3eac25.tar.gz
Use a uint16_t type for the vlan tag rather an int.
-rw-r--r--sys/net/ethernet.h2
-rw-r--r--sys/net/if_ethersubr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/ethernet.h b/sys/net/ethernet.h
index c5b6118..9db90a5 100644
--- a/sys/net/ethernet.h
+++ b/sys/net/ethernet.h
@@ -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 */
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 9509eb5..a06a6cd 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -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;
OpenPOWER on IntegriCloud