summaryrefslogtreecommitdiff
path: root/net/sniffit/files/patch-02
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1998-08-17 07:25:18 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1998-08-17 07:25:18 +0000
commit8f6a263ee7893b8982794413bec5a2992e01d4bf (patch)
treeefc4c24dbc0b2eb71d8bd4a163842959204ddfa1 /net/sniffit/files/patch-02
parentIt's not that ports/astro/* had no manpages to remove from their (diff)
upgrade to 0.3.7.beta
Notes
Notes: svn path=/head/; revision=12570
Diffstat (limited to 'net/sniffit/files/patch-02')
-rw-r--r--net/sniffit/files/patch-0242
1 files changed, 9 insertions, 33 deletions
diff --git a/net/sniffit/files/patch-02 b/net/sniffit/files/patch-02
index 868d5b939b26..88c5b1fb01df 100644
--- a/net/sniffit/files/patch-02
+++ b/net/sniffit/files/patch-02
@@ -1,35 +1,11 @@
---- 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;
-+ }
+--- sn_resolv.c.orig Thu Jul 16 09:17:10 1998
++++ sn_resolv.c Sun Aug 16 23:25:58 1998
+@@ -2,6 +2,8 @@
+ /* - getaddrbyname: Godmar Back / Shudoh Kazuyuki */
- memcpy(&iphead,(sp+PROTO_HEAD),sizeof(struct IP_header));
- so=(unsigned char *)&(iphead.source);
- dest=(unsigned char *)&(iphead.destination);
+ #include "sn_defines.h"
++#include <sys/types.h>
++#include <netinet/in.h>
+ #include <netdb.h>
+ #include <arpa/inet.h>
-+ 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)