summaryrefslogtreecommitdiff
path: root/zebra/irdp_packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/irdp_packet.c')
-rw-r--r--zebra/irdp_packet.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/zebra/irdp_packet.c b/zebra/irdp_packet.c
index 5601b13a92..c27d97ba71 100644
--- a/zebra/irdp_packet.c
+++ b/zebra/irdp_packet.c
@@ -224,7 +224,7 @@ static int irdp_recvmsg(int sock, uint8_t *buf, int size, int *ifindex)
return ret;
}
-int irdp_read_raw(struct thread *r)
+void irdp_read_raw(struct thread *r)
{
struct interface *ifp;
struct zebra_if *zi;
@@ -243,22 +243,22 @@ int irdp_read_raw(struct thread *r)
ifp = if_lookup_by_index(ifindex, VRF_DEFAULT);
if (!ifp)
- return ret;
+ return;
zi = ifp->info;
if (!zi)
- return ret;
+ return;
irdp = zi->irdp;
if (!irdp)
- return ret;
+ return;
if (!(irdp->flags & IF_ACTIVE)) {
if (irdp->flags & IF_DEBUG_MISC)
zlog_debug("IRDP: RX ICMP for disabled interface %s",
ifp->name);
- return 0;
+ return;
}
if (irdp->flags & IF_DEBUG_PACKET) {
@@ -269,8 +269,6 @@ int irdp_read_raw(struct thread *r)
}
parse_irdp_packet(buf, ret, ifp);
-
- return ret;
}
void send_packet(struct interface *ifp, struct stream *s, uint32_t dst,