summaryrefslogtreecommitdiff
path: root/zebra/irdp_packet.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2022-02-24 01:43:48 -0500
committerGitHub <noreply@github.com>2022-02-24 01:43:48 -0500
commit7bf63db79b7848b73e1cef49f3496038644bea16 (patch)
tree2c95921d910689673348e60f9614de7d9d00c4e7 /zebra/irdp_packet.c
parentca6c97340b013e140c0cb31737858f7c672b7dfb (diff)
parentcc9f21da2218d95567eff1501482ce58e6600f54 (diff)
Merge pull request #10632 from donaldsharp/thread_return_null
*: Change thread->func to return void instead of int
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,