ip_gre.c (46fa062ad63146dd138ec0f017e71224471e8ea5) ip_gre.c (7f9562a1f405306eacb97f95d78cb996e33f27f5)
1/*
2 * Linux NET3: GRE over IP protocol decoder.
3 *
4 * Authors: Alexey Kuznetsov (kuznet@ms2.inr.ac.ru)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

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

506 struct flowi4 fl;
507 struct rtable *rt;
508 int min_headroom;
509 int tunnel_hlen;
510 __be16 df, flags;
511 int err;
512
513 tun_info = skb_tunnel_info(skb);
1/*
2 * Linux NET3: GRE over IP protocol decoder.
3 *
4 * Authors: Alexey Kuznetsov (kuznet@ms2.inr.ac.ru)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

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

506 struct flowi4 fl;
507 struct rtable *rt;
508 int min_headroom;
509 int tunnel_hlen;
510 __be16 df, flags;
511 int err;
512
513 tun_info = skb_tunnel_info(skb);
514 if (unlikely(!tun_info || !(tun_info->mode & IP_TUNNEL_INFO_TX)))
514 if (unlikely(!tun_info || !(tun_info->mode & IP_TUNNEL_INFO_TX) ||
515 ip_tunnel_info_af(tun_info) != AF_INET))
515 goto err_free_skb;
516
517 key = &tun_info->key;
518 memset(&fl, 0, sizeof(fl));
519 fl.daddr = key->u.ipv4.dst;
520 fl.saddr = key->u.ipv4.src;
521 fl.flowi4_tos = RT_TOS(key->tos);
522 fl.flowi4_mark = skb->mark;

--- 775 unchanged lines hidden ---
516 goto err_free_skb;
517
518 key = &tun_info->key;
519 memset(&fl, 0, sizeof(fl));
520 fl.daddr = key->u.ipv4.dst;
521 fl.saddr = key->u.ipv4.src;
522 fl.flowi4_tos = RT_TOS(key->tos);
523 fl.flowi4_mark = skb->mark;

--- 775 unchanged lines hidden ---