Application of mopd-2.5.3-bind.patch:

* Sun Nov 17 2002 Maciej W. Rozycki <macro@ds2.pg.gda.pl> 2.5.3-14
- bind a packet socket to a specific interface for outgoing
  packets (bind)

Downloaded from:
ftp://ftp.linux-mips.org/pub/linux/mips/people/macro/mopd/mopd-2.5.3-bind.patch.gz
.patch SHA256 = 9dab2b8e9805bf01dc3a1e36f7dfa543ddf20237de6fdeb08e88c297b4e88ade
Patch history copied from:
ftp://ftp.linux-mips.org/pub/linux/mips/people/macro/mopd/mopd-2.5.3-15.spec
This commit is contained in:
Maciej W. Rozycki
2002-11-17 12:00:00 -05:00
committed by Boris Gjenero
parent 599eecbad4
commit dd4ca7502f

View File

@@ -185,6 +185,11 @@ int typ, mode;
strncpy(socklist[s].sa.sa_data, interface, sizeof(socklist[s].sa.sa_data));
socklist[s].iflen = strlen(interface);
if (bind(s, &socklist[s].sa, sizeof(socklist[s].sa)) < 0) {
syslog(LOG_ERR, "pfInit: %s: bind: %m", interface);
exit(1);
}
return(s);
}