~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to net/ipv4/ah4.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
 * into IP header for icv calculation. Options are already checked
74
74
 * for validity, so paranoia is not required. */
75
75
 
76
 
static int ip_clear_mutable_options(struct iphdr *iph, __be32 *daddr)
 
76
static int ip_clear_mutable_options(const struct iphdr *iph, __be32 *daddr)
77
77
{
78
78
        unsigned char * optptr = (unsigned char*)(iph+1);
79
79
        int  l = iph->ihl*4 - sizeof(struct iphdr);
396
396
static void ah4_err(struct sk_buff *skb, u32 info)
397
397
{
398
398
        struct net *net = dev_net(skb->dev);
399
 
        struct iphdr *iph = (struct iphdr *)skb->data;
 
399
        const struct iphdr *iph = (const struct iphdr *)skb->data;
400
400
        struct ip_auth_hdr *ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2));
401
401
        struct xfrm_state *x;
402
402
 
404
404
            icmp_hdr(skb)->code != ICMP_FRAG_NEEDED)
405
405
                return;
406
406
 
407
 
        x = xfrm_state_lookup(net, skb->mark, (xfrm_address_t *)&iph->daddr, ah->spi, IPPROTO_AH, AF_INET);
 
407
        x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
 
408
                              ah->spi, IPPROTO_AH, AF_INET);
408
409
        if (!x)
409
410
                return;
410
411
        printk(KERN_DEBUG "pmtu discovery on SA AH/%08x/%08x\n",