patch-2.0.31 linux/net/ipv4/ip_sockglue.c
Next file: linux/net/ipv4/ipip.c
Previous file: linux/net/ipv4/ip_output.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Tue Aug 12 11:30:35 1997
- Orig file:
v2.0.30/linux/net/ipv4/ip_sockglue.c
- Orig date:
Tue Apr 8 08:47:47 1997
diff -u --recursive --new-file v2.0.30/linux/net/ipv4/ip_sockglue.c linux/net/ipv4/ip_sockglue.c
@@ -12,6 +12,7 @@
* Martin Mares : TOS setting fixed.
* Alan Cox : Fixed a couple of oopses in Martin's
* TOS tweaks.
+ * Elliot Poger : Added support for SO_BINDTODEVICE.
*/
#include <linux/config.h>
@@ -293,7 +294,7 @@
/*
* Not set so scan.
*/
- if((rt=ip_rt_route(mreq.imr_multiaddr.s_addr,0))!=NULL)
+ if((rt=ip_rt_route(mreq.imr_multiaddr.s_addr,0,sk->bound_device))!=NULL)
{
dev=rt->rt_dev;
atomic_dec(&rt->rt_use);
@@ -345,7 +346,7 @@
if(mreq.imr_interface.s_addr==INADDR_ANY)
{
- if((rt=ip_rt_route(mreq.imr_multiaddr.s_addr,0))!=NULL)
+ if((rt=ip_rt_route(mreq.imr_multiaddr.s_addr,0,sk->bound_device))!=NULL)
{
dev=rt->rt_dev;
atomic_dec(&rt->rt_use);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov