version 1.1.1.2, 2012/10/09 09:22:28
|
version 1.1.1.3, 2013/07/21 23:54:38
|
Line 129 open_packet_socket (struct isis_circuit *circuit)
|
Line 129 open_packet_socket (struct isis_circuit *circuit)
|
sizeof (struct sockaddr_ll)) < 0) |
sizeof (struct sockaddr_ll)) < 0) |
{ |
{ |
zlog_warn ("open_packet_socket(): bind() failed: %s", safe_strerror (errno)); |
zlog_warn ("open_packet_socket(): bind() failed: %s", safe_strerror (errno)); |
|
close (fd); |
return ISIS_WARNING; |
return ISIS_WARNING; |
} |
} |
|
|
Line 142 open_packet_socket (struct isis_circuit *circuit)
|
Line 143 open_packet_socket (struct isis_circuit *circuit)
|
* 8.4.2 - Broadcast subnetwork IIH PDUs |
* 8.4.2 - Broadcast subnetwork IIH PDUs |
* FIXME: is there a case only one will fail?? |
* FIXME: is there a case only one will fail?? |
*/ |
*/ |
if (circuit->is_type & IS_LEVEL_1) | /* joining ALL_L1_ISS */ |
/* joining ALL_L1_ISS */ | retval |= isis_multicast_join (circuit->fd, 1, |
retval = isis_multicast_join (circuit->fd, 1, | |
circuit->interface->ifindex); |
circuit->interface->ifindex); |
if (circuit->is_type & IS_LEVEL_2) | /* joining ALL_L2_ISS */ |
/* joining ALL_L2_ISS */ | retval |= isis_multicast_join (circuit->fd, 2, |
retval = isis_multicast_join (circuit->fd, 2, | |
circuit->interface->ifindex); |
circuit->interface->ifindex); |
/* joining ALL_ISS (used in RFC 5309 p2p-over-lan as well) */ |
/* joining ALL_ISS (used in RFC 5309 p2p-over-lan as well) */ |
retval = isis_multicast_join (circuit->fd, 3, | retval |= isis_multicast_join (circuit->fd, 3, |
circuit->interface->ifindex); |
circuit->interface->ifindex); |
} |
} |
else |
else |