[Xorp-cvs] XORP cvs commit: xorp/fea/data_plane/io
Pavlin Radoslavov
pavlin at icir.org
Fri Sep 7 03:47:46 PDT 2007
CVSROOT: /usr/local/share/doc/apache/cvs
Module name: xorp
Changes by: pavlin at xorpc.icir.org 2007-09-07 10:47:46 UTC
XORP CVS repository
Modified files:
fea/data_plane/io io_ip_socket.cc
Log message:
Explicitly bind the transmission of unicast packets to a network
interface in case we need to do so.
We need to bind to an interface only if we might be running multiple
XORP instances. The heuristic for that is to test whether the
unicast forwarding table ID is configured.
Note that the bind mechanism is setsockopt(SO_BINDTODEVICE) which
currently exists only on Linux.
Also, note that we don't need to use the above mechanism in case of
multicast packets, because we use setsockopt(IP_MULTICAST_IF)
for multicast.
Submitted by: Ben Greear <greearb AT candelatech.com>
Revision Changes Path
1.12 +57 -7; commitid: 16e2f46e12aeb7ea6; xorp/fea/data_plane/io/io_ip_socket.cc
More information about the Xorp-cvs
mailing list