Eric Leblond wrote:
This patch adds some fields to NFLOG to be able to send the complete hardware header with all necessary informations. It sends to userspace: * the type of hardware link * the lenght of hardware header * the hardware header
Looks good. I've applied it with a minor change to use the endian aware netlink macros. I need a Signed-off-by: line from you though.
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index 204dcae..9a35b57 100644 --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c @@ -454,9 +454,9 @@ __build_packet_message(struct nfulnl_instance *inst, } if (indev && skb_mac_header_was_set(skb)) { - NLA_PUT_U16(inst->skb, NFULA_HWTYPE, htons(skb->dev->type)); - NLA_PUT_U16(inst->skb, NFULA_HWLEN, - htons(skb->dev->hard_header_len)); + NLA_PUT_BE16(inst->skb, NFULA_HWTYPE, htons(skb->dev->type)); + NLA_PUT_BE16(inst->skb, NFULA_HWLEN, + htons(skb->dev->hard_header_len)); NLA_PUT(inst->skb, NFULA_HWHEADER, skb->dev->hard_header_len, skb_mac_header(skb)); }