r33541 - in /trunk/libnet-arp-perl/debian: changelog patches/get_mac.diff patches/series

thialme-guest at users.alioth.debian.org thialme-guest at users.alioth.debian.org
Sun Apr 19 10:15:38 UTC 2009


Author: thialme-guest
Date: Sun Apr 19 10:15:29 2009
New Revision: 33541

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=33541
Log:
Added patch to fix the get_mac function.(Closes: #524559).

Added:
    trunk/libnet-arp-perl/debian/patches/get_mac.diff
Modified:
    trunk/libnet-arp-perl/debian/changelog
    trunk/libnet-arp-perl/debian/patches/series

Modified: trunk/libnet-arp-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-arp-perl/debian/changelog?rev=33541&op=diff
==============================================================================
--- trunk/libnet-arp-perl/debian/changelog (original)
+++ trunk/libnet-arp-perl/debian/changelog Sun Apr 19 10:15:29 2009
@@ -1,7 +1,11 @@
 libnet-arp-perl (1.0.3-2) UNRELEASED; urgency=low
 
+  [Gregor Hermann]
   * debian/control: Changed: Switched Vcs-Browser field to ViewSVN
     (source stanza).
+
+  [ Franck Joncourt ]
+  * Added patch to fix the get_mac function (Closes: #524559).
 
  -- gregor herrmann <gregoa at debian.org>  Sun, 16 Nov 2008 20:45:15 +0100
 

Added: trunk/libnet-arp-perl/debian/patches/get_mac.diff
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-arp-perl/debian/patches/get_mac.diff?rev=33541&op=file
==============================================================================
--- trunk/libnet-arp-perl/debian/patches/get_mac.diff (added)
+++ trunk/libnet-arp-perl/debian/patches/get_mac.diff Sun Apr 19 10:15:29 2009
@@ -1,0 +1,32 @@
+From: Franck Joncourt <franck.mail at dthconnex.com>
+Subject: [PATCH] fixes/get_mac
+
+The get_mac function always returns "unknown" whatever interface is looked
+for.
+
+The device argument of the get_mac function must be defined out of the
+CODE scope in ARP.xs. The current behavior creates an undefined string which
+is passed to the get_mac_linux function.
+
+Signed-off-by: Franck Joncourt <franck.mail at dthconnex.com>
+
+---
+ ARP.xs |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/ARP.xs b/ARP.xs
+index ae925b3..6ee1aff 100644
+--- a/ARP.xs
++++ b/ARP.xs
+@@ -185,8 +185,8 @@ send_packet(dev, sip, dip, smac, dmac, type)
+ 
+ char *
+ get_mac(dev)
++	unsigned char *dev;
+ 	CODE:
+-	  char dev[16];
+           char tmp[20] = "unknown";
+ 
+ 	  if(SOCK_TYPE == SOCK_RAW)
+-- 
+tg: (7ee8ac6..) fixes/get_mac (depends on: upstream)

Modified: trunk/libnet-arp-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-arp-perl/debian/patches/series?rev=33541&op=diff
==============================================================================
--- trunk/libnet-arp-perl/debian/patches/series (original)
+++ trunk/libnet-arp-perl/debian/patches/series Sun Apr 19 10:15:29 2009
@@ -1,3 +1,4 @@
+get_mac.diff
 return-value.patch
 10alignment-and-headers.patch
 prototypes.patch




More information about the Pkg-perl-cvs-commits mailing list