ip_output.c (32032df6c2f6c9c6b2ada2ce42322231824f70c2) | ip_output.c (7ad6848c7e81a603605fad3f3575841aab004eea) |
---|---|
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 * The Internet Protocol (IP) output module. 7 * 8 * Authors: Ross Biro --- 240 unchanged lines hidden (view full) --- 249 skb->dev = dev; 250 skb->protocol = htons(ETH_P_IP); 251 252 /* 253 * Multicasts are looped back for other local users 254 */ 255 256 if (rt->rt_flags&RTCF_MULTICAST) { | 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 * The Internet Protocol (IP) output module. 7 * 8 * Authors: Ross Biro --- 240 unchanged lines hidden (view full) --- 249 skb->dev = dev; 250 skb->protocol = htons(ETH_P_IP); 251 252 /* 253 * Multicasts are looped back for other local users 254 */ 255 256 if (rt->rt_flags&RTCF_MULTICAST) { |
257 if ((!sk || inet_sk(sk)->mc_loop) | 257 if (sk_mc_loop(sk) |
258#ifdef CONFIG_IP_MROUTE 259 /* Small optimization: do not loopback not local frames, 260 which returned after forwarding; they will be dropped 261 by ip_mr_input in any case. 262 Note, that local frames are looped back to be delivered 263 to local recipients. 264 265 This check is duplicated in ip_mr_input at the moment. --- 1176 unchanged lines hidden --- | 258#ifdef CONFIG_IP_MROUTE 259 /* Small optimization: do not loopback not local frames, 260 which returned after forwarding; they will be dropped 261 by ip_mr_input in any case. 262 Note, that local frames are looped back to be delivered 263 to local recipients. 264 265 This check is duplicated in ip_mr_input at the moment. --- 1176 unchanged lines hidden --- |