aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge/br_input.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-03-22 23:07:21 -0400
committerJan Engelhardt <jengelh@medozas.de>2010-03-25 11:00:29 -0400
commit713aefa3fb3929ce36305d4d1b7b4059d87ed115 (patch)
treed73b898fa5920b434bffd60dce669c48758a2b5d /net/bridge/br_input.c
parent5dc7a6d5749d3ddbf9fbea9512cb45762428512c (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_input.c')
-rw-r--r--net/bridge/br_input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bridge/br_input.c b/net/bridge/br_input.c
index 333dfb7c5886..c9018fc72d24 100644
--- a/net/bridge/br_input.c
+++ b/net/bridge/br_input.c
@@ -32,7 +32,7 @@ static int br_pass_frame_up(struct sk_buff *skb)
32 indev = skb->dev; 32 indev = skb->dev;
33 skb->dev = brdev; 33 skb->dev = brdev;
34 34
35 return NF_HOOK(PF_BRIDGE, NF_BR_LOCAL_IN, skb, indev, NULL, 35 return NF_HOOK(NFPROTO_BRIDGE, NF_BR_LOCAL_IN, skb, indev, NULL,
36 netif_receive_skb); 36 netif_receive_skb);
37} 37}
38 38
@@ -155,7 +155,7 @@ struct sk_buff *br_handle_frame(struct net_bridge_port *p, struct sk_buff *skb)
155 if (p->br->stp_enabled == BR_NO_STP && dest[5] == 0) 155 if (p->br->stp_enabled == BR_NO_STP && dest[5] == 0)
156 goto forward; 156 goto forward;
157 157
158 if (NF_HOOK(PF_BRIDGE, NF_BR_LOCAL_IN, skb, skb->dev, 158 if (NF_HOOK(NFPROTO_BRIDGE, NF_BR_LOCAL_IN, skb, skb->dev,
159 NULL, br_handle_local_finish)) 159 NULL, br_handle_local_finish))
160 return NULL; /* frame consumed by filter */ 160 return NULL; /* frame consumed by filter */
161 else 161 else
@@ -176,7 +176,7 @@ forward:
176 if (!compare_ether_addr(p->br->dev->dev_addr, dest)) 176 if (!compare_ether_addr(p->br->dev->dev_addr, dest))
177 skb->pkt_type = PACKET_HOST; 177 skb->pkt_type = PACKET_HOST;
178 178
179 NF_HOOK(PF_BRIDGE, NF_BR_PRE_ROUTING, skb, skb->dev, NULL, 179 NF_HOOK(NFPROTO_BRIDGE, NF_BR_PRE_ROUTING, skb, skb->dev, NULL,
180 br_handle_frame_finish); 180 br_handle_frame_finish);
181 break; 181 break;
182 default: 182 default: