rtnetlink.c (39fe5434cb9de5da40510028b17b96bc4eb312b3) | rtnetlink.c (8072f085d79a0a73cc5a0333ffa7f0c5d35f76e0) |
---|---|
1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Routing netlink socket interface: protocol independent part. 7 * 8 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> --- 938 unchanged lines hidden (view full) --- 947 struct net_device *dev; 948 struct ifinfomsg *ifm; 949 char kind[MODULE_NAME_LEN]; 950 char ifname[IFNAMSIZ]; 951 struct nlattr *tb[IFLA_MAX+1]; 952 struct nlattr *linkinfo[IFLA_INFO_MAX+1]; 953 int err; 954 | 1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Routing netlink socket interface: protocol independent part. 7 * 8 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> --- 938 unchanged lines hidden (view full) --- 947 struct net_device *dev; 948 struct ifinfomsg *ifm; 949 char kind[MODULE_NAME_LEN]; 950 char ifname[IFNAMSIZ]; 951 struct nlattr *tb[IFLA_MAX+1]; 952 struct nlattr *linkinfo[IFLA_INFO_MAX+1]; 953 int err; 954 |
955#ifdef CONFIG_KMOD |
|
955replay: | 956replay: |
957#endif |
|
956 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFLA_MAX, ifla_policy); 957 if (err < 0) 958 return err; 959 960 if (tb[IFLA_IFNAME]) 961 nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ); 962 else 963 ifname[0] = '\0'; --- 372 unchanged lines hidden --- | 958 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFLA_MAX, ifla_policy); 959 if (err < 0) 960 return err; 961 962 if (tb[IFLA_IFNAME]) 963 nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ); 964 else 965 ifname[0] = '\0'; --- 372 unchanged lines hidden --- |