summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2012-11-26 20:21:14 +0000
committermarkus <markus@openbsd.org>2012-11-26 20:21:14 +0000
commit046397e899e8e40d483b8b08c19c4297ddc942a1 (patch)
treeee3a7f240132e1ef05e9a0e414a5f4838d2f6b37
parentRegeerate Hypervisor MD from scratch instead of modifying the existing one. (diff)
downloadwireguard-openbsd-046397e899e8e40d483b8b08c19c4297ddc942a1.tar.xz
wireguard-openbsd-046397e899e8e40d483b8b08c19c4297ddc942a1.zip
do not steal mbuf types (leads to a panic if M_ZEROIZE gets set on
readonly mbufs) but use M_PROTO1 and M_LINK0 instead; ok mikeb@
-rw-r--r--sys/net/if_ppp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c
index e835549f2ed..f7cf3d30384 100644
--- a/sys/net/if_ppp.c
+++ b/sys/net/if_ppp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ppp.c,v 1.65 2012/03/28 19:39:33 claudio Exp $ */
+/* $OpenBSD: if_ppp.c,v 1.66 2012/11/26 20:21:14 markus Exp $ */
/* $NetBSD: if_ppp.c,v 1.39 1997/05/17 21:11:59 christos Exp $ */
/*
@@ -184,8 +184,8 @@ int ppp_clone_destroy(struct ifnet *);
* We steal two bits in the mbuf m_flags, to mark high-priority packets
* for output, and received packets following lost/corrupted packets.
*/
-#define M_HIGHPRI 0x2000 /* output packet for sc_fastq */
-#define M_ERRMARK 0x4000 /* steal a bit in mbuf m_flags */
+#define M_HIGHPRI M_PROTO1 /* output packet for sc_fastq */
+#define M_ERRMARK M_LINK0 /* steal a bit in mbuf m_flags */
#ifdef PPP_COMPRESS