From 38df351f7876a9a5b86c0212b3844d2f301d0d41 Mon Sep 17 00:00:00 2001 From: Bart Trojanowski Date: Thu, 6 Jul 2006 16:04:30 -0400 Subject: [PATCH] improved protocol detection in ipsec_print_ip() -- a debug aid. --- net/ipsec/ipsec_xmit.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/net/ipsec/ipsec_xmit.c b/net/ipsec/ipsec_xmit.c index 73bc8ef..c92866a 100644 --- a/net/ipsec/ipsec_xmit.c +++ b/net/ipsec/ipsec_xmit.c @@ -283,6 +283,12 @@ ipsec_print_ip(struct iphdr *ip) printk(" (TCP)"); if(ip->protocol == IPPROTO_ICMP) printk(" (ICMP)"); + if(ip->protocol == IPPROTO_ESP) + printk(" (ESP)"); + if(ip->protocol == IPPROTO_AH) + printk(" (AH)"); + if(ip->protocol == IPPROTO_COMP) + printk(" (COMP)"); printk(" chk:%d", ntohs(ip->check)); addrtoa(*((struct in_addr*)(&ip->saddr)), 0, buf, sizeof(buf)); printk(" saddr:%s", buf); -- 1.4.0