]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
DHCP: Rename dhcp_handlepacket to dhcp_handlebpf
authorRoy Marples <roy@marples.name>
Tue, 17 Sep 2019 10:45:45 +0000 (11:45 +0100)
committerRoy Marples <roy@marples.name>
Tue, 17 Sep 2019 10:45:45 +0000 (11:45 +0100)
This makes it a lot more clear as to the intent of the code
and it's not to handle from UDP.

src/dhcp.c

index 5e549171050b168abdd6e70e116c9ab0956c178a..75eb3f56f03a4518b9ca8fada8fe71d2a9c5a645 100644 (file)
@@ -3354,7 +3354,7 @@ dhcp_handlebootp(struct interface *ifp, struct bootp *bootp, size_t len,
 }
 
 static void
-dhcp_handlepacket(struct interface *ifp, uint8_t *data, size_t len)
+dhcp_handlebpf(struct interface *ifp, uint8_t *data, size_t len)
 {
        struct bootp *bootp;
        struct in_addr from;
@@ -3406,7 +3406,7 @@ dhcp_readbpf(void *arg)
                        }
                        break;
                }
-               dhcp_handlepacket(ifp, buf, (size_t)bytes);
+               dhcp_handlebpf(ifp, buf, (size_t)bytes);
                /* Check we still have a state after processing. */
                if ((state = D_STATE(ifp)) == NULL)
                        break;