On FreeBSD, the loopback interface is normally called lo0.

PR:		62358
Submitted by:	Sanatana Dharma
This commit is contained in:
Trevor Johnson 2004-02-17 21:03:11 +00:00
parent 90aa7c5b16
commit 5401d85ac8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=101241

15
net/p0f/files/patch-p0f.c Normal file
View File

@ -0,0 +1,15 @@
$FreeBSD$
On FreeBSD, the loopback interface is normally called lo0.
author: Sanatana Dharma
--- p0f.c.orig Mon Oct 13 18:57:21 2003
+++ p0f.c Tue Feb 17 20:56:15 2004
@@ -1590,7 +1590,7 @@ int main(int argc,char** argv) {
if (!use_iface) use_iface=pcap_lookupdev(errbuf);
#endif /* ^WIN32 */
- if (!use_iface) use_iface = "lo";
+ if (!use_iface) use_iface = "lo0";
/* We do not rely on pcap timeouts - they suck really bad. Of
course, the documentation sucks, and if you use the timeout