Commit 2f532b1b authored by Bart De Schuymer's avatar Bart De Schuymer Committed by David S. Miller

[EBTABLES]: Adjust skb->pkt_type when necessary.

parent 5eb94bbe
...@@ -217,6 +217,7 @@ static int br_nf_pre_routing_finish(struct sk_buff *skb) ...@@ -217,6 +217,7 @@ static int br_nf_pre_routing_finish(struct sk_buff *skb)
} }
memcpy(skb->mac.ethernet->h_dest, dev->dev_addr, memcpy(skb->mac.ethernet->h_dest, dev->dev_addr,
ETH_ALEN); ETH_ALEN);
skb->pkt_type = PACKET_HOST;
} }
} else { } else {
skb->dst = (struct dst_entry *)&__fake_rtable; skb->dst = (struct dst_entry *)&__fake_rtable;
......
...@@ -34,11 +34,10 @@ static int ebt_target_redirect(struct sk_buff **pskb, unsigned int hooknr, ...@@ -34,11 +34,10 @@ static int ebt_target_redirect(struct sk_buff **pskb, unsigned int hooknr,
if (hooknr != NF_BR_BROUTING) if (hooknr != NF_BR_BROUTING)
memcpy((**pskb).mac.ethernet->h_dest, memcpy((**pskb).mac.ethernet->h_dest,
in->br_port->br->dev->dev_addr, ETH_ALEN); in->br_port->br->dev->dev_addr, ETH_ALEN);
else { else
memcpy((**pskb).mac.ethernet->h_dest, memcpy((**pskb).mac.ethernet->h_dest,
in->dev_addr, ETH_ALEN); in->dev_addr, ETH_ALEN);
(*pskb)->pkt_type = PACKET_HOST; (*pskb)->pkt_type = PACKET_HOST;
}
return info->target; return info->target;
} }
......
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