1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Author: Niko Tyni <ntyni@debian.org>
Description: add prototypes for the *_linux and *_bsd functions in arp.h
The arp header must define the global prototypes of the *_linux and *_bsd
functions used in order to let the ARP.xs file know about them.
--- libnet-arp-perl.orig/arp.h
+++ libnet-arp-perl/arp.h
@@ -60,3 +60,9 @@
};
extern struct ether_addr *ether_aton (__const char *__asc) __THROW;
+extern int get_mac_linux(u_char *dev, char *mac);
+extern int get_mac_bsd(u_char *dev, char *mac);
+extern int arp_lookup_linux(char *dev, char *ip, char *mac);
+extern int arp_lookup_bsd(char *dev, char *ip, char *mac);
+extern int send_packet_linux(u_char *dev, u_char *packet, u_int packetsize);
+extern int send_packet_bsd(u_char *dev, u_char *packet, u_int packetsize);
|