diff -uNr netfilter-0.1.5.orig/packet-filter/extentions/ipt_LOG.c netfilter-0.1.5/packet-filter/extentions/ipt_LOG.c --- netfilter-0.1.5.orig/packet-filter/extentions/ipt_LOG.c Mon Jul 26 09:20:28 1999 +++ netfilter-0.1.5/packet-filter/extentions/ipt_LOG.c Mon Aug 30 23:32:38 1999 @@ -15,7 +15,7 @@ #include "packet-filter/extentions/ipt_LOG.h" /* One level of recursion won't kill us */ -static void dump_packet(struct iphdr *iph, unsigned int len, int recurse) +static void dump_packet(struct iphdr *iph, unsigned int len, int recurse, const char *indev, const char *outdev) { void *protoh = (u_int32_t *)iph + iph->ihl; unsigned int datalen = len - iph->ihl * 4; @@ -45,6 +45,11 @@ if (ntohs(iph->frag_off) & IP_OFFSET) printk("FRAG:%u ", ntohs(iph->frag_off) & IP_OFFSET); + printk("INDEV=%s ", + indev); + printk("OUTDEV=%s ", + outdev); + if (iph->ihl * 4 != sizeof(struct iphdr)) { unsigned int i; @@ -178,7 +183,7 @@ case ICMP_TIME_EXCEEDED: if (recurse) dump_packet((struct iphdr *)(icmph + 1), - datalen - sizeof(struct iphdr), 0); + datalen - sizeof(struct iphdr), 0, indev, outdev); if (icmph->type == ICMP_DEST_UNREACH && icmph->code == ICMP_FRAG_NEEDED) @@ -209,7 +214,7 @@ prefix[sizeof(prefix)-1] = '\0'; printk(prefix); - dump_packet(iph, skb->len, 1); + dump_packet(iph, skb->len, 1, indev, outdev); printk("\n"); } return pos + 1;