ipcomp6.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) | ipcomp6.c (81aded24675ebda5de8a68843250ad15584ac38a) |
---|---|
1/* 2 * IP Payload Compression Protocol (IPComp) for IPv6 - RFC3173 3 * 4 * Copyright (C)2003 USAGI/WIDE Project 5 * 6 * Author Mitsuru KANDA <mk@linux-ipv6.org> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 32 unchanged lines hidden (view full) --- 41#include <linux/err.h> 42#include <linux/pfkeyv2.h> 43#include <linux/random.h> 44#include <linux/percpu.h> 45#include <linux/smp.h> 46#include <linux/list.h> 47#include <linux/vmalloc.h> 48#include <linux/rtnetlink.h> | 1/* 2 * IP Payload Compression Protocol (IPComp) for IPv6 - RFC3173 3 * 4 * Copyright (C)2003 USAGI/WIDE Project 5 * 6 * Author Mitsuru KANDA <mk@linux-ipv6.org> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 32 unchanged lines hidden (view full) --- 41#include <linux/err.h> 42#include <linux/pfkeyv2.h> 43#include <linux/random.h> 44#include <linux/percpu.h> 45#include <linux/smp.h> 46#include <linux/list.h> 47#include <linux/vmalloc.h> 48#include <linux/rtnetlink.h> |
49#include <net/ip6_route.h> |
|
49#include <net/icmp.h> 50#include <net/ipv6.h> 51#include <net/protocol.h> 52#include <linux/ipv6.h> 53#include <linux/icmpv6.h> 54#include <linux/mutex.h> 55 56static void ipcomp6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, --- 12 unchanged lines hidden (view full) --- 69 spi = htonl(ntohs(ipcomph->cpi)); 70 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, 71 spi, IPPROTO_COMP, AF_INET6); 72 if (!x) 73 return; 74 75 pr_debug("pmtu discovery on SA IPCOMP/%08x/%pI6\n", 76 spi, &iph->daddr); | 50#include <net/icmp.h> 51#include <net/ipv6.h> 52#include <net/protocol.h> 53#include <linux/ipv6.h> 54#include <linux/icmpv6.h> 55#include <linux/mutex.h> 56 57static void ipcomp6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, --- 12 unchanged lines hidden (view full) --- 70 spi = htonl(ntohs(ipcomph->cpi)); 71 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, 72 spi, IPPROTO_COMP, AF_INET6); 73 if (!x) 74 return; 75 76 pr_debug("pmtu discovery on SA IPCOMP/%08x/%pI6\n", 77 spi, &iph->daddr); |
78 ip6_update_pmtu(skb, net, info, 0, 0); |
|
77 xfrm_state_put(x); 78} 79 80static struct xfrm_state *ipcomp6_tunnel_create(struct xfrm_state *x) 81{ 82 struct net *net = xs_net(x); 83 struct xfrm_state *t = NULL; 84 --- 137 unchanged lines hidden --- | 79 xfrm_state_put(x); 80} 81 82static struct xfrm_state *ipcomp6_tunnel_create(struct xfrm_state *x) 83{ 84 struct net *net = xs_net(x); 85 struct xfrm_state *t = NULL; 86 --- 137 unchanged lines hidden --- |