route.c (e269f90f3d3f7c70cf661c660bf445597261f54a) | route.c (c8a627ed06d6d49bf65015a2185c519335c4c83f) |
---|---|
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 * ROUTE - implementation of the IP router. 7 * 8 * Authors: Ross Biro --- 924 unchanged lines hidden (view full) --- 933 * Jenkins hash is strong enough that litle changes of rt_genid are OK. 934 */ 935static void rt_cache_invalidate(struct net *net) 936{ 937 unsigned char shuffle; 938 939 get_random_bytes(&shuffle, sizeof(shuffle)); 940 atomic_add(shuffle + 1U, &net->ipv4.rt_genid); | 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 * ROUTE - implementation of the IP router. 7 * 8 * Authors: Ross Biro --- 924 unchanged lines hidden (view full) --- 933 * Jenkins hash is strong enough that litle changes of rt_genid are OK. 934 */ 935static void rt_cache_invalidate(struct net *net) 936{ 937 unsigned char shuffle; 938 939 get_random_bytes(&shuffle, sizeof(shuffle)); 940 atomic_add(shuffle + 1U, &net->ipv4.rt_genid); |
941 inetpeer_invalidate_tree(AF_INET); | 941 inetpeer_invalidate_tree(net, AF_INET); |
942} 943 944/* 945 * delay < 0 : invalidate cache (fast : entries will be deleted later) 946 * delay >= 0 : invalidate & flush cache (can be long) 947 */ 948void rt_cache_flush(struct net *net, int delay) 949{ --- 2546 unchanged lines hidden --- | 942} 943 944/* 945 * delay < 0 : invalidate cache (fast : entries will be deleted later) 946 * delay >= 0 : invalidate & flush cache (can be long) 947 */ 948void rt_cache_flush(struct net *net, int delay) 949{ --- 2546 unchanged lines hidden --- |