2004-05-03 15:50:12 -04:00
|
|
|
$OpenBSD: patch-p0f_c,v 1.7 2004/05/03 19:50:12 naddy Exp $
|
2004-05-03 11:59:36 -04:00
|
|
|
--- p0f.c.orig 2002-05-13 18:59:40.000000000 +0200
|
2004-05-03 15:50:12 -04:00
|
|
|
+++ p0f.c 2004-05-03 21:41:00.000000000 +0200
|
|
|
|
@@ -165,7 +165,7 @@ void set_header_len(int type){
|
|
|
|
break;
|
|
|
|
#ifdef DLT_PFLOG
|
|
|
|
case DLT_PFLOG:
|
|
|
|
- header_len=28;
|
|
|
|
+ header_len=48;
|
|
|
|
break;
|
|
|
|
#endif
|
|
|
|
#ifdef DLT_LINUX_SLL
|
2003-07-19 13:02:06 -04:00
|
|
|
@@ -397,7 +397,7 @@ void load_fprints(char *filename) {
|
2001-12-08 15:13:53 -05:00
|
|
|
char *p;
|
2003-07-19 13:02:06 -04:00
|
|
|
//bzero(fips,120000);
|
2001-12-08 15:13:53 -05:00
|
|
|
x=fopen(filename, "r");
|
|
|
|
- if (!x) x=fopen("p0f.fp", "r");
|
|
|
|
+ if (!x) x=fopen(SYSCONFDIR "p0f.fp", "r");
|
|
|
|
if (!x) {
|
|
|
|
fprintf(stderr, "No OS fingerprint database (%s) found. Dumb mode on.\n",
|
|
|
|
filename);
|