Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b468645d authored by Jan Engelhardt's avatar Jan Engelhardt Committed by Patrick McHardy
Browse files

netfilter: xt_LOG: do print MAC header on FORWARD

I am observing consistent behavior even with bridges, so let's unlock
this. xt_mac is already usable in FORWARD, too. Section 9 of
http://ebtables.sourceforge.net/br_fw_ia/br_fw_ia.html#section9

 says
the MAC source address is changed, but my observation does not match
that claim -- the MAC header is retained.

Signed-off-by: default avatarJan Engelhardt <jengelh@medozas.de>
[Patrick; code inspection seems to confirm this]
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent ca361810
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -442,8 +442,7 @@ ipt_log_packet(u_int8_t pf,
	}
#endif

	/* MAC logging for input path only. */
	if (in && !out)
	if (in != NULL)
		dump_mac_header(m, loginfo, skb);

	dump_packet(m, loginfo, skb, 0);
+1 −2
Original line number Diff line number Diff line
@@ -452,8 +452,7 @@ ip6t_log_packet(u_int8_t pf,
	       in ? in->name : "",
	       out ? out->name : "");

	/* MAC logging for input path only. */
	if (in && !out)
	if (in != NULL)
		dump_mac_header(m, loginfo, skb);

	dump_packet(m, loginfo, skb, skb_network_offset(skb), 1);