Eric Leblond wrote:
This patch synchronises behaviour of ULOG and NFLOG relatively to the hardware header: * NFLOG sends MAC address to userspace (dev_parse_header content) * ULOG sends complete link header (skb_mac_header content) This patch double the size of hardware header for NFLOG and fill it with the complete hardware header.
This looks like an API breaking patch. It would be better to use a new attribute for this. Also this structure encapsulation is a bad idea IMO, it should just use a NLA_BINARY attribute.
+ if (indev && indev->hard_header_len > 0 + && skb->mac_header != skb->network_header + && indev->hard_header_len <= MAX_HWHEADER_LEN * sizeof(char)) {
skb_mac_header_was_set()? -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html