openbsd-ports/security/antisniff/patches/patch-af
1999-10-29 00:13:18 +00:00

15 lines
489 B
Plaintext

--- 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)