pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/p5-Net-RawIP



Module Name:    pkgsrc
Committed By:   he
Date:           Mon Aug 28 09:00:13 UTC 2017

Modified Files:
        pkgsrc/net/p5-Net-RawIP: distinfo
Added Files:
        pkgsrc/net/p5-Net-RawIP/patches: patch-eth.c patch-rdev.c

Log Message:
Add two patches to provide conditional compat define for RTF_LLINFO,
for the benefit of netbsd-8 ++.
No PKGREVISION bump, this is a build fix only.
OK'ed by bouyer@.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/net/p5-Net-RawIP/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/net/p5-Net-RawIP/patches/patch-eth.c \
    pkgsrc/net/p5-Net-RawIP/patches/patch-rdev.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/p5-Net-RawIP/distinfo
diff -u pkgsrc/net/p5-Net-RawIP/distinfo:1.5 pkgsrc/net/p5-Net-RawIP/distinfo:1.6
--- pkgsrc/net/p5-Net-RawIP/distinfo:1.5        Wed Nov  4 00:35:23 2015
+++ pkgsrc/net/p5-Net-RawIP/distinfo    Mon Aug 28 09:00:13 2017
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.5 2015/11/04 00:35:23 agc Exp $
+$NetBSD: distinfo,v 1.6 2017/08/28 09:00:13 he Exp $
 
 SHA1 (Net-RawIP-0.25.tar.gz) = e1e2a85374436e314bce7cfb091415ebf72e6fba
 RMD160 (Net-RawIP-0.25.tar.gz) = 1bae7de1e4df034394e3928701b16e2e04b80894
 SHA512 (Net-RawIP-0.25.tar.gz) = c48c77389db9dc8d5c64d67e5c62bac5e3314dbc36bcfa51aa20d07224492edaa65f5c71d47ca0b804ac62b1b02387e172cd3561eadaa3a1a8040968b182b3ca
 Size (Net-RawIP-0.25.tar.gz) = 43474 bytes
+SHA1 (patch-eth.c) = 406b8347f2f1f1a5f12a9294f0a14756e2a0937e
+SHA1 (patch-rdev.c) = ae6f8686793ed0a06c68fb3bc3ca1daa8a1794b2

Added files:

Index: pkgsrc/net/p5-Net-RawIP/patches/patch-eth.c
diff -u /dev/null pkgsrc/net/p5-Net-RawIP/patches/patch-eth.c:1.1
--- /dev/null   Mon Aug 28 09:00:13 2017
+++ pkgsrc/net/p5-Net-RawIP/patches/patch-eth.c Mon Aug 28 09:00:13 2017
@@ -0,0 +1,16 @@
+$NetBSD: patch-eth.c,v 1.1 2017/08/28 09:00:13 he Exp $
+
+Provide conditional compat define for RTF_LLINFO.
+
+--- eth.c.orig 2007-04-03 10:59:40.000000000 +0000
++++ eth.c
+@@ -203,6 +203,9 @@ int mac_disc(unsigned int addr,unsigned 
+     mib[2] = 0;
+     mib[3] = AF_INET;
+     mib[4] = NET_RT_FLAGS;
++#if !defined(RTF_LLINFO) && defined(RTF_LLDATA) /* For netbsd-8 ++ */
++# define RTF_LLINFO RTF_LLDATA
++#endif
+     mib[5] = RTF_LLINFO;
+     found = 0;
+     if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0)
Index: pkgsrc/net/p5-Net-RawIP/patches/patch-rdev.c
diff -u /dev/null pkgsrc/net/p5-Net-RawIP/patches/patch-rdev.c:1.1
--- /dev/null   Mon Aug 28 09:00:13 2017
+++ pkgsrc/net/p5-Net-RawIP/patches/patch-rdev.c        Mon Aug 28 09:00:13 2017
@@ -0,0 +1,16 @@
+$NetBSD: patch-rdev.c,v 1.1 2017/08/28 09:00:13 he Exp $
+
+Provide conditional compat define for RTF_LLINFO.
+
+--- rdev.c.orig        2007-04-03 10:59:40.000000000 +0000
++++ rdev.c
+@@ -159,6 +159,9 @@ ip_rt_dev(u_int32_t addr,u_char *name)
+                                 }
+                                 ADVANCE(cp, sa);
+                         }
++#if !defined(RTF_LLINFO) && defined(RTF_LLDATA) /* netbsd-8 ++ */
++# define RTF_LLINFO RTF_LLDATA
++#endif
+    if(!(rtm->rtm_flags & RTF_LLINFO) && (rtm->rtm_flags & RTF_HOST)) 
+      mask = 0xffffffff;   
+      if(!mask && dest && (dest != local)) continue;



Home | Main Index | Thread Index | Old Index