mirror of
https://github.com/dreamlayers/netbsd-mopd.git
synced 2026-02-27 00:49:48 +00:00
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:
committed by
Boris Gjenero
parent
599eecbad4
commit
dd4ca7502f
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user