openbsd-ports/security/antisniff/patches/patch-ip_util_c
jsyn c12e61ab46 - rename patches
- douse with $OpenBSD$
- fix DESCR
- regen PLIST
2002-03-24 08:36:33 +00:00

16 lines
552 B
Plaintext

$OpenBSD: patch-ip_util_c,v 1.1 2002/03/24 08:36:33 jsyn Exp $
--- ip_util.c.orig Thu Oct 28 19:15:38 1999
+++ ip_util.c Thu Oct 28 19:16:21 1999
@@ -35,8 +35,9 @@
devname = getenv(ANTI_INTERFACE);
if (!devname){
- getnetmask(DEVICENAME, (struct in_addr *)&network);
- getipaddr(DEVICENAME, (struct in_addr *)&localIP);
+ devname = strdup(pcap_lookupdev(NULL));
+ getnetmask(devname, (struct in_addr *)&network);
+ getipaddr(devname, (struct in_addr *)&localIP);
} else {
devPtr = strrchr(devname, '/');
if (devPtr)