diff options
author | denis <denis@cvs.openbsd.org> | 2019-03-04 18:41:41 +0000 |
---|---|---|
committer | denis <denis@cvs.openbsd.org> | 2019-03-04 18:41:41 +0000 |
commit | bf24be293d69919901282764516333fba6d510d3 (patch) | |
tree | 57d24783e1caf5911aa25f92df7f70d7a3a61f14 /sys | |
parent | b2ca70405b03bf9f0e86eeb9741babc1b75f7d4e (diff) |
allow IPv6 to flow through pppx(4)
OK phessler@ deraadt@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_pppx.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/net/if_pppx.c b/sys/net/if_pppx.c index b43911eeb76..66ea99d659b 100644 --- a/sys/net/if_pppx.c +++ b/sys/net/if_pppx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pppx.c,v 1.66 2018/07/11 21:18:23 nayden Exp $ */ +/* $OpenBSD: if_pppx.c,v 1.67 2019/03/04 18:41:40 denis Exp $ */ /* * Copyright (c) 2010 Claudio Jeker <claudio@openbsd.org> @@ -1047,6 +1047,11 @@ pppx_if_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, #endif if (pipex_enable) { switch (dst->sa_family) { +#ifdef INET6 + case AF_INET6: + proto = PPP_IPV6; + break; +#endif case AF_INET: proto = PPP_IP; break; |