summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2019-04-27 05:31:43 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2019-04-27 05:31:43 +0000
commit8c6e802aadc04e420648e0e13b360c7283982815 (patch)
tree6291d3ca52d72bb6873f713f9becb4f5515fb662
parent59bf5f3c0b5d592365a5e4b383dfc22aab5fdf55 (diff)
rename sc_prio to sc_txprio
-rw-r--r--sys/net/if_vlan.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index f6e3d991f74..142e5a67903 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vlan.c,v 1.194 2019/04/27 05:30:13 dlg Exp $ */
+/* $OpenBSD: if_vlan.c,v 1.195 2019/04/27 05:31:42 dlg Exp $ */
/*
* Copyright 1998 Massachusetts Institute of Technology
@@ -86,8 +86,8 @@ struct vlan_softc {
struct arpcom sc_ac;
#define sc_if sc_ac.ac_if
unsigned int sc_ifidx0; /* parent interface */
+ int sc_txprio;
int sc_rxprio;
- int sc_prio;
u_int16_t sc_tag;
u_int16_t sc_type; /* non-standard ethertype or 0x8100 */
LIST_HEAD(__vlan_mchead, vlan_mc_entry)
@@ -204,7 +204,7 @@ vlan_clone_create(struct if_clone *ifc, int unit)
sc->sc_type = ETHERTYPE_VLAN;
refcnt_init(&sc->sc_refcnt);
- sc->sc_prio = IF_HDRPRIO_PACKET;
+ sc->sc_txprio = IF_HDRPRIO_PACKET;
sc->sc_rxprio = IF_HDRPRIO_OUTER;
ifp->if_flags = IFF_BROADCAST | IFF_MULTICAST;
@@ -260,7 +260,7 @@ void
vlan_transmit(struct vlan_softc *sc, struct ifnet *ifp0, struct mbuf *m)
{
struct ifnet *ifp = &sc->sc_if;
- int txprio = sc->sc_prio;
+ int txprio = sc->sc_txprio;
uint8_t prio;
#if NBPFILTER > 0
@@ -767,10 +767,10 @@ vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
if (error != 0)
break;
- sc->sc_prio = ifr->ifr_hdrprio;
+ sc->sc_txprio = ifr->ifr_hdrprio;
break;
case SIOCGTXHPRIO:
- ifr->ifr_hdrprio = sc->sc_prio;
+ ifr->ifr_hdrprio = sc->sc_txprio;
break;
case SIOCSRXHPRIO: