openbsd-ports/net/xl2tpd/patches/patch-network_c
sthen 48c88527b2 import ports/net/xl2tpd, ok pirofti@
xl2tpd is an implementation of the Layer 2 Tunnelling Protocol (RFC 2661),
which works by opening a pseudo-tty for communicating with pppd.

L2TP allows you to tunnel PPP over UDP. Some ISPs use L2TP to tunnel user
sessions from dial-in servers (modem banks, ADSL DSLAMs) to back-end PPP
servers. Another important application is Virtual Private Networks where
the IPsec protocol is used to secure the L2TP connection (L2TP/IPsec,
RFC 3193).
2013-01-15 23:02:19 +00:00

17 lines
582 B
Plaintext

$OpenBSD: patch-network_c,v 1.1.1.1 2013/01/15 23:02:19 sthen Exp $
--- network.c.orig Tue Oct 4 21:28:29 2011
+++ network.c Tue Jan 15 21:45:35 2013
@@ -271,11 +271,9 @@ void udp_xmit (struct buffer *buf, struct tunnel *t)
memset(&msgh, 0, sizeof(struct msghdr));
msgh.msg_control = cbuf;
- msgh.msg_controllen = 0;
+ msgh.msg_controllen = sizeof(cbuf);
if(gconfig.ipsecsaref && t->refhim != IPSEC_SAREF_NULL) {
- msgh.msg_controllen = sizeof(cbuf);
-
cmsg = CMSG_FIRSTHDR(&msgh);
cmsg->cmsg_level = IPPROTO_IP;
cmsg->cmsg_type = gconfig.sarefnum;