diff options
author | 2008-09-28 14:08:51 +0000 | |
---|---|---|
committer | 2008-09-28 14:08:51 +0000 | |
commit | 6563d35d7e9d41162099876ac7cba568ddd33e51 (patch) | |
tree | 01ed57f10b11510e1ee724fd43f712024e4dcd58 | |
parent | unbreak the tree. (diff) | |
download | wireguard-openbsd-6563d35d7e9d41162099876ac7cba568ddd33e51.tar.xz wireguard-openbsd-6563d35d7e9d41162099876ac7cba568ddd33e51.zip |
initialize the ether_vtag field like the rest of the packet header
-rw-r--r-- | sys/kern/uipc_mbuf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index c832de261bb..7c46413419f 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf.c,v 1.92 2008/08/14 19:39:40 claudio Exp $ */ +/* $OpenBSD: uipc_mbuf.c,v 1.93 2008/09/28 14:08:51 naddy Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */ /* @@ -195,6 +195,7 @@ m_gethdr(int nowait, int type) m->m_pkthdr.rcvif = NULL; SLIST_INIT(&m->m_pkthdr.tags); m->m_pkthdr.csum_flags = 0; + m->m_pkthdr.ether_vtag = 0; m->m_pkthdr.pf.hdr = NULL; m->m_pkthdr.pf.statekey = NULL; m->m_pkthdr.pf.rtableid = 0; @@ -218,6 +219,7 @@ m_inithdr(struct mbuf *m) m->m_pkthdr.rcvif = NULL; SLIST_INIT(&m->m_pkthdr.tags); m->m_pkthdr.csum_flags = 0; + m->m_pkthdr.ether_vtag = 0; m->m_pkthdr.pf.hdr = NULL; m->m_pkthdr.pf.statekey = NULL; m->m_pkthdr.pf.rtableid = 0; |