ip_gre.c (7a3f4a185169b195c33f1c54f33a44eba2d6aa96) ip_gre.c (ad744b223c521b1e01752a826774545c3e3acd8e)
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

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

975
976 err = ipgre_netlink_parms(dev, data, tb, &p, &fwmark);
977 if (err < 0)
978 return err;
979 return ip_tunnel_newlink(dev, tb, &p, fwmark);
980}
981
982static int ipgre_changelink(struct net_device *dev, struct nlattr *tb[],
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

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

975
976 err = ipgre_netlink_parms(dev, data, tb, &p, &fwmark);
977 if (err < 0)
978 return err;
979 return ip_tunnel_newlink(dev, tb, &p, fwmark);
980}
981
982static int ipgre_changelink(struct net_device *dev, struct nlattr *tb[],
983 struct nlattr *data[])
983 struct nlattr *data[],
984 struct netlink_ext_ack *extack)
984{
985 struct ip_tunnel *t = netdev_priv(dev);
986 struct ip_tunnel_parm p;
987 struct ip_tunnel_encap ipencap;
988 __u32 fwmark = t->fwmark;
989 int err;
990
991 if (ipgre_netlink_encap_parms(data, &ipencap)) {

--- 267 unchanged lines hidden ---
985{
986 struct ip_tunnel *t = netdev_priv(dev);
987 struct ip_tunnel_parm p;
988 struct ip_tunnel_encap ipencap;
989 __u32 fwmark = t->fwmark;
990 int err;
991
992 if (ipgre_netlink_encap_parms(data, &ipencap)) {

--- 267 unchanged lines hidden ---