summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2014-10-08 20:28:27 +0000
committersthen <sthen@openbsd.org>2014-10-08 20:28:27 +0000
commite8b1bf3590b7ad129b496c9d6be2191f30be9f0b (patch)
tree93354cd9000dc4ab23c84bc80fddade7a5cb07e5
parentRemove #ifdef SO_OOBINLINE, it is always defined. (diff)
downloadwireguard-openbsd-e8b1bf3590b7ad129b496c9d6be2191f30be9f0b.tar.xz
wireguard-openbsd-e8b1bf3590b7ad129b496c9d6be2191f30be9f0b.zip
print ipv6cp by name rather than number in "0x8057 output <...>" debug lines,
as already done for lcp/ipcp/pap/chap
-rw-r--r--sys/net/if_spppsubr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 222475e32f2..ed40ac9fcf2 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_spppsubr.c,v 1.125 2014/07/22 11:06:09 mpi Exp $ */
+/* $OpenBSD: if_spppsubr.c,v 1.126 2014/10/08 20:28:27 sthen Exp $ */
/*
* Synchronous PPP/Cisco link level subroutines.
* Keepalive protocol implemented in both Cisco and PPP modes.
@@ -5187,6 +5187,7 @@ sppp_proto_name(u_short proto)
switch (proto) {
case PPP_LCP: return "lcp";
case PPP_IPCP: return "ipcp";
+ case PPP_IPV6CP: return "ipv6cp";
case PPP_PAP: return "pap";
case PPP_CHAP: return "chap";
}