Hello!
I'm try to study netfilter queue API, I'm need retrive a MAC of a has
been received IP pakeck.
I use:
nft add rule ip filter OUTPUT ip protocol icmp counter queue num 1
...
if (l_nlattr[NFQA_HWADDR])
{
struct nfqnl_msg_packet_hw *hw =
mnl_attr_get_payload(l_nlattr[NFQA_HWADDR]);
unsigned int hwlen = ntohs(hw->hw_addrlen);
const unsigned char *addr = hw->hw_addr;
unsigned int i;
$DUMPHEX(addr, hwlen);
}
...
The pierce of code abohe is not executed.
So, is there what I'm need to check additionaly ?
---
С уважением,
Ruslan R. Laishev
OpenVMS bigot, natural born system/network progger, C contractor.
+79013163222
+79910009922