diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-03-22 23:07:21 -0400 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-03-25 11:00:29 -0400 |
commit | 713aefa3fb3929ce36305d4d1b7b4059d87ed115 (patch) | |
tree | d73b898fa5920b434bffd60dce669c48758a2b5d /net/bridge/br_stp_bpdu.c | |
parent | 5dc7a6d5749d3ddbf9fbea9512cb45762428512c (diff) |
netfilter: bridge: use NFPROTO values for NF_HOOK invocation
The first argument to NF_HOOK* is an nfproto since quite some time.
Commit v2.6.27-2457-gfdc9314 was the first to practically start using
the new names. Do that now for the remaining NF_HOOK calls.
The semantic patch used was:
// <smpl>
@@
@@
(NF_HOOK
|NF_HOOK_THRESH
)(
-PF_BRIDGE,
+NFPROTO_BRIDGE,
...)
@@
@@
NF_HOOK(
-PF_INET6,
+NFPROTO_IPV6,
...)
@@
@@
NF_HOOK(
-PF_INET,
+NFPROTO_IPV4,
...)
// </smpl>
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'net/bridge/br_stp_bpdu.c')
-rw-r--r-- | net/bridge/br_stp_bpdu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_stp_bpdu.c b/net/bridge/br_stp_bpdu.c index 81ae40b3f655..11b0157f69c3 100644 --- a/net/bridge/br_stp_bpdu.c +++ b/net/bridge/br_stp_bpdu.c | |||
@@ -49,7 +49,7 @@ static void br_send_bpdu(struct net_bridge_port *p, | |||
49 | 49 | ||
50 | llc_mac_hdr_init(skb, p->dev->dev_addr, p->br->group_addr); | 50 | llc_mac_hdr_init(skb, p->dev->dev_addr, p->br->group_addr); |
51 | 51 | ||
52 | NF_HOOK(PF_BRIDGE, NF_BR_LOCAL_OUT, skb, NULL, skb->dev, | 52 | NF_HOOK(NFPROTO_BRIDGE, NF_BR_LOCAL_OUT, skb, NULL, skb->dev, |
53 | dev_queue_xmit); | 53 | dev_queue_xmit); |
54 | } | 54 | } |
55 | 55 | ||