af_mpls.c (e0d81d92f7601c3dc63e5127bb77b6cd77f14a93) | af_mpls.c (dac9c9790e542777079999900594fd069ba10489) |
---|---|
1#include <linux/types.h> 2#include <linux/skbuff.h> 3#include <linux/socket.h> 4#include <linux/sysctl.h> 5#include <linux/net.h> 6#include <linux/module.h> 7#include <linux/if_arp.h> 8#include <linux/ipv6.h> --- 1209 unchanged lines hidden (view full) --- 1218 struct netconfmsg *ncm; 1219 struct net_device *dev; 1220 struct mpls_dev *mdev; 1221 struct sk_buff *skb; 1222 int ifindex; 1223 int err; 1224 1225 err = nlmsg_parse(nlh, sizeof(*ncm), tb, NETCONFA_MAX, | 1#include <linux/types.h> 2#include <linux/skbuff.h> 3#include <linux/socket.h> 4#include <linux/sysctl.h> 5#include <linux/net.h> 6#include <linux/module.h> 7#include <linux/if_arp.h> 8#include <linux/ipv6.h> --- 1209 unchanged lines hidden (view full) --- 1218 struct netconfmsg *ncm; 1219 struct net_device *dev; 1220 struct mpls_dev *mdev; 1221 struct sk_buff *skb; 1222 int ifindex; 1223 int err; 1224 1225 err = nlmsg_parse(nlh, sizeof(*ncm), tb, NETCONFA_MAX, |
1226 devconf_mpls_policy, NULL); | 1226 devconf_mpls_policy, extack); |
1227 if (err < 0) 1228 goto errout; 1229 1230 err = -EINVAL; 1231 if (!tb[NETCONFA_IFINDEX]) 1232 goto errout; 1233 1234 ifindex = nla_get_s32(tb[NETCONFA_IFINDEX]); --- 1323 unchanged lines hidden --- | 1227 if (err < 0) 1228 goto errout; 1229 1230 err = -EINVAL; 1231 if (!tb[NETCONFA_IFINDEX]) 1232 goto errout; 1233 1234 ifindex = nla_get_s32(tb[NETCONFA_IFINDEX]); --- 1323 unchanged lines hidden --- |