rtnetlink.c (3d277b177918cd26215732fc23af0783ab4b37dd) | rtnetlink.c (5f8e44741f9f216e33736ea4ec65ca9ac03036e6) |
---|---|
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> --- 1166 unchanged lines hidden (view full) --- 1175 return -EMSGSIZE; 1176 nla_nest_end(skb, vfstats); 1177 nla_nest_end(skb, vf); 1178 return 0; 1179} 1180 1181static int rtnl_fill_link_ifmap(struct sk_buff *skb, struct net_device *dev) 1182{ | 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> --- 1166 unchanged lines hidden (view full) --- 1175 return -EMSGSIZE; 1176 nla_nest_end(skb, vfstats); 1177 nla_nest_end(skb, vf); 1178 return 0; 1179} 1180 1181static int rtnl_fill_link_ifmap(struct sk_buff *skb, struct net_device *dev) 1182{ |
1183 struct rtnl_link_ifmap map = { 1184 .mem_start = dev->mem_start, 1185 .mem_end = dev->mem_end, 1186 .base_addr = dev->base_addr, 1187 .irq = dev->irq, 1188 .dma = dev->dma, 1189 .port = dev->if_port, 1190 }; | 1183 struct rtnl_link_ifmap map; 1184 1185 memset(&map, 0, sizeof(map)); 1186 map.mem_start = dev->mem_start; 1187 map.mem_end = dev->mem_end; 1188 map.base_addr = dev->base_addr; 1189 map.irq = dev->irq; 1190 map.dma = dev->dma; 1191 map.port = dev->if_port; 1192 |
1191 if (nla_put(skb, IFLA_MAP, sizeof(map), &map)) 1192 return -EMSGSIZE; 1193 1194 return 0; 1195} 1196 1197static int rtnl_fill_ifinfo(struct sk_buff *skb, struct net_device *dev, 1198 int type, u32 pid, u32 seq, u32 change, --- 2405 unchanged lines hidden --- | 1193 if (nla_put(skb, IFLA_MAP, sizeof(map), &map)) 1194 return -EMSGSIZE; 1195 1196 return 0; 1197} 1198 1199static int rtnl_fill_ifinfo(struct sk_buff *skb, struct net_device *dev, 1200 int type, u32 pid, u32 seq, u32 change, --- 2405 unchanged lines hidden --- |