summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2001-12-03 17:28:27 +0000
committerBrooks Davis <brooks@FreeBSD.org>2001-12-03 17:28:27 +0000
commit437e48e9310f288d03ec87721977a0467d809f96 (patch)
tree3ec2b2e029e880f02c5d9088938736698a408ac5 /sys/net
parent011376308f954457a26cc632ad96816a76d25b00 (diff)
Notes
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/ethernet.h20
-rw-r--r--sys/net/if_ethersubr.c2
2 files changed, 11 insertions, 11 deletions
diff --git a/sys/net/ethernet.h b/sys/net/ethernet.h
index b5a0fae31778..7380e31e61d4 100644
--- a/sys/net/ethernet.h
+++ b/sys/net/ethernet.h
@@ -102,35 +102,35 @@ extern void (*ng_ether_detach_p)(struct ifnet *ifp);
extern int (*vlan_input_p)(struct ether_header *eh, struct mbuf *m);
extern int (*vlan_input_tag_p)(struct ether_header *eh, struct mbuf *m,
u_int16_t t);
-#define _VLAN_INPUT(ifp, eh, m) do { \
+#define _VLAN_INPUT(eh, m) do { \
if (vlan_input_p != NULL) { \
if ((*vlan_input_p)(eh, m) == -1) \
- (ifp)->if_noproto++; \
+ (m)->m_pkthdr.rcvif->if_noproto++; \
} else { \
m_free(m); \
- (ifp)->if_noproto++; \
+ (m)->m_pkthdr.rcvif->if_noproto++; \
} \
} while (0)
-#define VLAN_INPUT(ifp, eh, m) do { \
+#define VLAN_INPUT(eh, m) do { \
/* XXX: lock */ \
- _VLAN_INPUT(ifp, eh, m); \
+ _VLAN_INPUT(eh, m); \
/* XXX: unlock */ \
} while (0)
-#define _VLAN_INPUT_TAG(ifp, eh, m, t) do { \
+#define _VLAN_INPUT_TAG(eh, m, t) do { \
if (vlan_input_tag_p != NULL) { \
if ((*vlan_input_tag_p)(eh, m, t) == -1) \
- (ifp)->if_noproto++; \
+ (m)->m_pkthdr.rcvif->if_noproto++; \
} else { \
m_free(m); \
- (ifp)->if_noproto++; \
+ (m)->m_pkthdr.rcvif->if_noproto++; \
} \
} while (0)
-#define VLAN_INPUT_TAG(ifp, eh, m, t) do { \
+#define VLAN_INPUT_TAG(eh, m, t) do { \
/* XXX: lock */ \
- _VLAN_INPUT_TAG(ifp, eh, m, t); \
+ _VLAN_INPUT_TAG(eh, m, t); \
/* XXX: unlock */ \
} while (0)
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 4f445d2af26f..3351c22bd770 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -570,7 +570,7 @@ ether_demux(ifp, eh, m)
return;
#endif /* NETATALK */
case ETHERTYPE_VLAN:
- VLAN_INPUT(ifp, eh, m);
+ VLAN_INPUT(eh, m);
return;
default:
#ifdef IPX