summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg>2015-02-19 22:27:59 +0000
committerjoerg <joerg>2015-02-19 22:27:59 +0000
commit6904fa492cfd5432f93717b99605461923c849f1 (patch)
tree72fd1740e4b785f4640f0c0b86bf6f29db8231e6
parentc8ed31036ccd4331416f9d59066b3c30df564512 (diff)
downloadpkgsrc-6904fa492cfd5432f93717b99605461923c849f1.tar.gz
Fix inline use.
-rw-r--r--net/xl2tpd/distinfo4
-rw-r--r--net/xl2tpd/patches/patch-network.c41
2 files changed, 30 insertions, 15 deletions
diff --git a/net/xl2tpd/distinfo b/net/xl2tpd/distinfo
index ce8b2e7d6d5..09dfa59aa84 100644
--- a/net/xl2tpd/distinfo
+++ b/net/xl2tpd/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2014/02/15 15:36:34 christos Exp $
+$NetBSD: distinfo,v 1.7 2015/02/19 22:27:59 joerg Exp $
SHA1 (xl2tpd-20140214.zip) = 6d5d38674b6671ef1cd1880a548645ae08725a9e
RMD160 (xl2tpd-20140214.zip) = 684f3d1d07ce3b0629123f056f8cf3f6d67c41f3
@@ -9,6 +9,6 @@ SHA1 (patch-l2tp.h) = d068d47170da6a1a3d960ef6f7a7027c10c8820f
SHA1 (patch-md5.c) = cc100db8b9314a86a96464cde4df78c387b56e9a
SHA1 (patch-misc.c) = 8c1b0bff81af1f5718cbf1d02e4f47fcad14c9a9
SHA1 (patch-misc.h) = dd7a42bee5a16cc583bfcfc31b1fc589d39515ab
-SHA1 (patch-network.c) = e8b51c3b1e1c2bfb31f7c04517d82c332499bf30
+SHA1 (patch-network.c) = f5aae9874b7024eb339b439b5bd0354dd4f320fc
SHA1 (patch-pty.c) = ade58a4e34f0977ebaba713b0be74ed943047a13
SHA1 (patch-xl2tpd.c) = b5ff4245b380d9aff480f9dbe961c92faf691b3d
diff --git a/net/xl2tpd/patches/patch-network.c b/net/xl2tpd/patches/patch-network.c
index d0193ea989b..3f444570017 100644
--- a/net/xl2tpd/patches/patch-network.c
+++ b/net/xl2tpd/patches/patch-network.c
@@ -1,4 +1,4 @@
-$NetBSD: patch-network.c,v 1.3 2014/02/15 15:36:35 christos Exp $
+$NetBSD: patch-network.c,v 1.4 2015/02/19 22:27:59 joerg Exp $
Handle not having IP_PKTINFO
Handle not having SO_NO_CHECK
@@ -6,9 +6,9 @@ Don't set control buf if controllen == 0
Avoid pointer aliasing issue and fix test that was done in the wrong
byte order
---- network.c.orig 2014-01-16 17:02:04.000000000 -0500
-+++ network.c 2014-02-15 10:33:31.000000000 -0500
-@@ -85,24 +85,26 @@
+--- network.c.orig 2014-01-16 22:02:04.000000000 +0000
++++ network.c
+@@ -85,24 +85,26 @@ int init_network (void)
gconfig.ipsecsaref=0;
}
@@ -41,7 +41,22 @@ byte order
#ifdef USE_KERNEL
if (gconfig.forceuserspace)
-@@ -160,10 +162,8 @@
+@@ -135,7 +137,7 @@ int init_network (void)
+ return 0;
+ }
+
+-inline void extract (void *buf, int *tunnel, int *call)
++static inline void extract (void *buf, int *tunnel, int *call)
+ {
+ /*
+ * Extract the tunnel and call #'s, and fix the order of the
+@@ -155,15 +157,13 @@ inline void extract (void *buf, int *tun
+ }
+ }
+
+-inline void fix_hdr (void *buf)
++static inline void fix_hdr (void *buf)
+ {
/*
* Fix the byte order of the header
*/
@@ -54,7 +69,7 @@ byte order
{
/*
* Control headers are always
-@@ -280,12 +280,18 @@
+@@ -280,12 +280,18 @@ void control_xmit (void *b)
void udp_xmit (struct buffer *buf, struct tunnel *t)
{
struct cmsghdr *cmsg;
@@ -74,7 +89,7 @@ byte order
int finallen;
/*
-@@ -312,7 +318,7 @@
+@@ -312,7 +318,7 @@ void udp_xmit (struct buffer *buf, struc
finallen = cmsg->cmsg_len;
}
@@ -83,7 +98,7 @@ byte order
if (t->my_addr.ipi_addr.s_addr){
if ( ! cmsg) {
-@@ -331,7 +337,9 @@
+@@ -331,7 +337,9 @@ void udp_xmit (struct buffer *buf, struc
finallen += cmsg->cmsg_len;
}
@@ -94,7 +109,7 @@ byte order
msgh.msg_controllen = finallen;
iov.iov_base = buf->start;
-@@ -426,7 +434,9 @@
+@@ -426,7 +434,9 @@ void network_thread ()
* our network socket. Control handling is no longer done here.
*/
struct sockaddr_in from;
@@ -104,7 +119,7 @@ byte order
unsigned int fromlen;
int tunnel, call; /* Tunnel and call */
int recvsize; /* Length of data received */
-@@ -506,7 +516,9 @@
+@@ -506,7 +516,9 @@ void network_thread ()
buf->len -= PAYLOAD_BUF;
memset(&from, 0, sizeof(from));
@@ -114,7 +129,7 @@ byte order
fromlen = sizeof(from);
-@@ -557,13 +569,16 @@
+@@ -557,13 +569,16 @@ void network_thread ()
for (cmsg = CMSG_FIRSTHDR(&msgh);
cmsg != NULL;
cmsg = CMSG_NXTHDR(&msgh,cmsg)) {
@@ -132,7 +147,7 @@ byte order
&& cmsg->cmsg_type == gconfig.sarefnum) {
unsigned int *refp;
-@@ -592,6 +607,8 @@
+@@ -592,6 +607,8 @@ void network_thread ()
if (gconfig.packet_dump)
{
@@ -141,7 +156,7 @@ byte order
do_packet_dump (buf);
}
if (!
-@@ -627,9 +644,11 @@
+@@ -627,9 +644,11 @@ void network_thread ()
}
else
{