esp6.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) esp6.c (81aded24675ebda5de8a68843250ad15584ac38a)
1/*
2 * Copyright (C)2002 USAGI/WIDE Project
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *

--- 25 unchanged lines hidden (view full) ---

34#include <net/xfrm.h>
35#include <net/esp.h>
36#include <linux/scatterlist.h>
37#include <linux/kernel.h>
38#include <linux/pfkeyv2.h>
39#include <linux/random.h>
40#include <linux/slab.h>
41#include <linux/spinlock.h>
1/*
2 * Copyright (C)2002 USAGI/WIDE Project
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *

--- 25 unchanged lines hidden (view full) ---

34#include <net/xfrm.h>
35#include <net/esp.h>
36#include <linux/scatterlist.h>
37#include <linux/kernel.h>
38#include <linux/pfkeyv2.h>
39#include <linux/random.h>
40#include <linux/slab.h>
41#include <linux/spinlock.h>
42#include <net/ip6_route.h>
42#include <net/icmp.h>
43#include <net/ipv6.h>
44#include <net/protocol.h>
45#include <linux/icmpv6.h>
46
47struct esp_skb_cb {
48 struct xfrm_skb_cb xfrm;
49 void *tmp;

--- 387 unchanged lines hidden (view full) ---

437 return;
438
439 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
440 esph->spi, IPPROTO_ESP, AF_INET6);
441 if (!x)
442 return;
443 pr_debug("pmtu discovery on SA ESP/%08x/%pI6\n",
444 ntohl(esph->spi), &iph->daddr);
43#include <net/icmp.h>
44#include <net/ipv6.h>
45#include <net/protocol.h>
46#include <linux/icmpv6.h>
47
48struct esp_skb_cb {
49 struct xfrm_skb_cb xfrm;
50 void *tmp;

--- 387 unchanged lines hidden (view full) ---

438 return;
439
440 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
441 esph->spi, IPPROTO_ESP, AF_INET6);
442 if (!x)
443 return;
444 pr_debug("pmtu discovery on SA ESP/%08x/%pI6\n",
445 ntohl(esph->spi), &iph->daddr);
446 ip6_update_pmtu(skb, net, info, 0, 0);
445 xfrm_state_put(x);
446}
447
448static void esp6_destroy(struct xfrm_state *x)
449{
450 struct esp_data *esp = x->data;
451
452 if (!esp)

--- 224 unchanged lines hidden ---
447 xfrm_state_put(x);
448}
449
450static void esp6_destroy(struct xfrm_state *x)
451{
452 struct esp_data *esp = x->data;
453
454 if (!esp)

--- 224 unchanged lines hidden ---