diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 1998-04-04 04:58:26 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 1998-04-04 04:58:26 +0000 |
commit | 997f89e8a7698bc7dbdaa0fbe99a3d1903a3f889 (patch) | |
tree | 57041e0aa01c0c90801787ca5b8ef59f4eccc03f /net/sniffit/files | |
parent | 286082af6c589b23cdfe66bc0da912bf03531b1b (diff) | |
download | ports-997f89e8a7698bc7dbdaa0fbe99a3d1903a3f889.tar.gz ports-997f89e8a7698bc7dbdaa0fbe99a3d1903a3f889.zip |
Notes
Diffstat (limited to 'net/sniffit/files')
-rw-r--r-- | net/sniffit/files/patch-01 | 23 | ||||
-rw-r--r-- | net/sniffit/files/patch-02 | 35 | ||||
-rw-r--r-- | net/sniffit/files/patch-03 | 8 |
3 files changed, 66 insertions, 0 deletions
diff --git a/net/sniffit/files/patch-01 b/net/sniffit/files/patch-01 new file mode 100644 index 000000000000..039ccfd9c5ab --- /dev/null +++ b/net/sniffit/files/patch-01 @@ -0,0 +1,23 @@ +--- Makefile.in.orig Fri Apr 18 02:33:57 1997 ++++ Makefile.in Fri Apr 3 20:50:47 1998 +@@ -11,9 +11,9 @@ + DEFS = @DEFS@ + OS_OPT = @OS_OPT@ + OBJ_FLAG = -w -O2 -c +-OBJ_OPT = -I./libpcap-0.3 -L./libpcap-0.3 ++#OBJ_OPT = -I./libpcap-0.3 -L./libpcap-0.3 + EXE_FLAG = -w -O2 -o sniffit +-EXE_OPT = -I./libpcap-0.3 -L./libpcap-0.3 -lpcap ++EXE_OPT = -lpcap + EXE_OBJ = sn_packets.o sn_generation.o sn_interface.o sn_cfgfile.o \ + sn_logfile.o + DEP_FILES = sn_config.h pcap.h sn_data.h sn_defines.h sn_plugins.h \ +@@ -21,7 +21,7 @@ + sn_generation.o sn_interface.o sn_cfgfile.o sn_logfile.o + + sniffit: $(SNIFFIT) $(DEP_FILES) +- cd libpcap-0.3; make; cd .. ++ #cd libpcap-0.3; make; cd .. + $(CC) $(EXE_FLAG) $(SNIFFIT) $(EXE_OBJ) $(EXE_OPT) $(LIBS) $(DEFS) $(OS_OPT) + strip sniffit + diff --git a/net/sniffit/files/patch-02 b/net/sniffit/files/patch-02 new file mode 100644 index 000000000000..868d5b939b26 --- /dev/null +++ b/net/sniffit/files/patch-02 @@ -0,0 +1,35 @@ +--- sniffit.0.3.5.c.orig Fri Apr 18 02:33:58 1997 ++++ sniffit.0.3.5.c Fri Apr 3 20:44:10 1998 +@@ -411,11 +411,22 @@ + proto=unwrap_packet(sp, info); + if(proto == NO_IP) return DONT_EXAMINE; /* no use in trying */ + if(proto == NO_IP_4) return DONT_EXAMINE; /* no use in trying */ ++ if(proto == CORRUPT_IP) ++ { ++ printf("Suspicious Packet detected... (Split header)\n"); ++ return DONT_EXAMINE; ++ } + + memcpy(&iphead,(sp+PROTO_HEAD),sizeof(struct IP_header)); + so=(unsigned char *)&(iphead.source); + dest=(unsigned char *)&(iphead.destination); + ++ if(info->FRAG_nf!=0) ++ { ++ printf("Fragment Skipped...\n"); ++ return DONT_EXAMINE; ++ } ++ + if((proto==TCP)&&(PROTOCOLS&F_TCP)) + { + #ifdef DEBUG_ONSCREEN +@@ -1220,6 +1231,9 @@ + proto=unwrap_packet(sp, info); + if(proto == NO_IP) return DONT_EXAMINE; /* no use in trying */ + if(proto == NO_IP_4) return DONT_EXAMINE; /* no use in trying */ ++ if(proto == CORRUPT_IP) return DONT_EXAMINE; /* no use in trying */ ++ ++ if(info->FRAG_nf!=0) return DONT_EXAMINE; + + (*IP_nr_of_packets)++; + if(proto==ICMP) diff --git a/net/sniffit/files/patch-03 b/net/sniffit/files/patch-03 new file mode 100644 index 000000000000..363a4d6a9a24 --- /dev/null +++ b/net/sniffit/files/patch-03 @@ -0,0 +1,8 @@ +--- sn_packetstructs.h.orig Fri Apr 18 02:33:58 1997 ++++ sn_packetstructs.h Fri Apr 3 20:41:08 1998 +@@ -48,4 +48,5 @@ + { + int IP_len, TCP_len, ICMP_len, UDP_len; /* header lengths */ + int DATA_len; ++ char FRAG_nf; /* not the first fragment */ + }; |