]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/irdp_packet.c
Merge pull request #11877 from sri-mohan1/sri-ldp-dbg1
[mirror_frr.git] / zebra / irdp_packet.c
index 5601b13a92ad6d4991a5897e3d7087378e1e1cb2..c27d97ba71b572e0afdcbc854c00ce04253b81ae 100644 (file)
@@ -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,