rtnetlink.c (661d2967b3f1b34eeaa7e212e7b9bbe8ee072b59) | rtnetlink.c (0465277f6b3fd0535428ae935644ac30ce903de0) |
---|---|
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> --- 1915 unchanged lines hidden (view full) --- 1924 s_idx = 1; 1925 for (idx = 1; idx <= RTNL_FAMILY_MAX; idx++) { 1926 int type = cb->nlh->nlmsg_type-RTM_BASE; 1927 if (idx < s_idx || idx == PF_PACKET) 1928 continue; 1929 if (rtnl_msg_handlers[idx] == NULL || 1930 rtnl_msg_handlers[idx][type].dumpit == NULL) 1931 continue; | 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> --- 1915 unchanged lines hidden (view full) --- 1924 s_idx = 1; 1925 for (idx = 1; idx <= RTNL_FAMILY_MAX; idx++) { 1926 int type = cb->nlh->nlmsg_type-RTM_BASE; 1927 if (idx < s_idx || idx == PF_PACKET) 1928 continue; 1929 if (rtnl_msg_handlers[idx] == NULL || 1930 rtnl_msg_handlers[idx][type].dumpit == NULL) 1931 continue; |
1932 if (idx > s_idx) | 1932 if (idx > s_idx) { |
1933 memset(&cb->args[0], 0, sizeof(cb->args)); | 1933 memset(&cb->args[0], 0, sizeof(cb->args)); |
1934 cb->prev_seq = 0; 1935 cb->seq = 0; 1936 } |
|
1934 if (rtnl_msg_handlers[idx][type].dumpit(skb, cb)) 1935 break; 1936 } 1937 cb->family = idx; 1938 1939 return skb->len; 1940} 1941 --- 804 unchanged lines hidden --- | 1937 if (rtnl_msg_handlers[idx][type].dumpit(skb, cb)) 1938 break; 1939 } 1940 cb->family = idx; 1941 1942 return skb->len; 1943} 1944 --- 804 unchanged lines hidden --- |