summaryrefslogtreecommitdiff
path: root/isisd
diff options
context:
space:
mode:
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_dlpi.c10
-rw-r--r--isisd/isis_pfpacket.c12
2 files changed, 8 insertions, 14 deletions
diff --git a/isisd/isis_dlpi.c b/isisd/isis_dlpi.c
index 73b6d3e7..0a82718d 100644
--- a/isisd/isis_dlpi.c
+++ b/isisd/isis_dlpi.c
@@ -442,13 +442,9 @@ open_dlpi_dev (struct isis_circuit *circuit)
* 8.4.2 - Broadcast subnetwork IIH PDUs
*/
retval = 0;
- if (circuit->is_type & IS_LEVEL_1)
- {
- retval |= dlpimcast (fd, ALL_L1_ISS);
- retval |= dlpimcast (fd, ALL_ISS);
- }
- if (circuit->is_type & IS_LEVEL_2)
- retval |= dlpimcast (fd, ALL_L2_ISS);
+ retval |= dlpimcast (fd, ALL_L1_ISS);
+ retval |= dlpimcast (fd, ALL_ISS);
+ retval |= dlpimcast (fd, ALL_L2_ISS);
if (retval != 0)
{
diff --git a/isisd/isis_pfpacket.c b/isisd/isis_pfpacket.c
index 42947b22..e5589aea 100644
--- a/isisd/isis_pfpacket.c
+++ b/isisd/isis_pfpacket.c
@@ -142,16 +142,14 @@ open_packet_socket (struct isis_circuit *circuit)
* 8.4.2 - Broadcast subnetwork IIH PDUs
* FIXME: is there a case only one will fail??
*/
- if (circuit->is_type & IS_LEVEL_1)
- /* joining ALL_L1_ISS */
- retval = isis_multicast_join (circuit->fd, 1,
+ /* joining ALL_L1_ISS */
+ retval |= isis_multicast_join (circuit->fd, 1,
circuit->interface->ifindex);
- if (circuit->is_type & IS_LEVEL_2)
- /* joining ALL_L2_ISS */
- retval = isis_multicast_join (circuit->fd, 2,
+ /* joining ALL_L2_ISS */
+ retval |= isis_multicast_join (circuit->fd, 2,
circuit->interface->ifindex);
/* 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);
}
else