From: Roy Marples Date: Tue, 17 Sep 2019 10:45:45 +0000 (+0100) Subject: DHCP: Rename dhcp_handlepacket to dhcp_handlebpf X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03dfa6214401c5fd02f1746d9275a3067513125b;p=thirdparty%2Fdhcpcd.git DHCP: Rename dhcp_handlepacket to dhcp_handlebpf This makes it a lot more clear as to the intent of the code and it's not to handle from UDP. --- diff --git a/src/dhcp.c b/src/dhcp.c index 5e549171..75eb3f56 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -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;