Commit b812ebfd authored by Thomas Markwalder's avatar Thomas Markwalder

[master] Fixed minor valgrind complaint in Linux packet filter

src/lib/dhcp/pkt_filter_lpf.cc
    PktFilterLPF::send() - added memest of sockaddr_ll struct
parent 48f18fed
......@@ -305,6 +305,7 @@ PktFilterLPF::send(const Iface& iface, uint16_t sockfd, const Pkt4Ptr& pkt) {
buf.writeData(pkt->getBuffer().getData(), pkt->getBuffer().getLength());
sockaddr_ll sa;
memset(&sa, 0x0, sizeof(sa));
sa.sll_family = AF_PACKET;
sa.sll_ifindex = iface.getIndex();
sa.sll_protocol = htons(ETH_P_IP);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment