--- linux/net/ipv4/ip_fragment.c Thu Nov 13 14:58:30 1997 +++ linux/net/ipv4/ip_fragment.c.new Sat Nov 29 02:47:44 1997 @@ -12,6 +12,7 @@ * Alan Cox : Split from ip.c , see ip_input.c for history. * Alan Cox : Handling oversized frames * Uriel Maimon : Accounting errors in two fringe cases. + * Caine : Log for teardrop. */ #include @@ -578,11 +579,15 @@ frag_kfree_s(tmp, sizeof(struct ipfrag)); } } + + /* Log function for incoming Teardrop attempt. */ + + if (offset > end) printk(KERN_INFO "Teardrop from %s.\n", in_ntoa(iph->saddr)); /* - * Insert this fragment in the chain of fragments. + * Insert this fragment in the chain of fragments. */ - + tfp = NULL; tfp = ip_frag_create(offset, end, skb, ptr);