Skip to content

Commit

Permalink
[#3712] Addressed review comments
Browse files Browse the repository at this point in the history
Couple of typos fixed.
  • Loading branch information
tmarkwalder committed Feb 18, 2025
1 parent 0b98eae commit 1630602
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/dhcp/pkt_filter_lpf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ PktFilterLPF::receive(Iface& iface, const SocketInfo& socket_info) {

auto v4_len = buf.getLength() - buf.getPosition();
if (v4_len <= 0) {
isc_throw(SocketReadError, "Pkt4FilterLpf:: packet has no DHCPv4 data");
isc_throw(SocketReadError, "Pkt4FilterLpf packet has no DHCPv4 data");
}

// Read the DHCP data.
Expand Down Expand Up @@ -349,7 +349,8 @@ PktFilterLPF::receive(Iface& iface, const SocketInfo& socket_info) {

struct timeval cmsg_time;
memcpy(&cmsg_time, CMSG_DATA(cmsg), sizeof(cmsg_time));
pkt->addPktEvent(PktEvent::SOCKET_RECEIVED, cmsg_time); break;
pkt->addPktEvent(PktEvent::SOCKET_RECEIVED, cmsg_time);
break;
}

cmsg = CMSG_NXTHDR(&m, cmsg);
Expand Down

0 comments on commit 1630602

Please sign in to comment.