diff options
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/br_netfilter.c | 14 | ||||
-rw-r--r-- | net/bridge/br_sysfs_br.c | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c index 1c0efd8ad9f3..0278a069c6f1 100644 --- a/net/bridge/br_netfilter.c +++ b/net/bridge/br_netfilter.c | |||
@@ -223,8 +223,8 @@ static int br_nf_pre_routing_finish_ipv6(struct sk_buff *skb) | |||
223 | } | 223 | } |
224 | nf_bridge->mask ^= BRNF_NF_BRIDGE_PREROUTING; | 224 | nf_bridge->mask ^= BRNF_NF_BRIDGE_PREROUTING; |
225 | 225 | ||
226 | skb->dst = (struct dst_entry *)&__fake_rtable; | 226 | skb->rtable = &__fake_rtable; |
227 | dst_hold(skb->dst); | 227 | dst_hold(&__fake_rtable.u.dst); |
228 | 228 | ||
229 | skb->dev = nf_bridge->physindev; | 229 | skb->dev = nf_bridge->physindev; |
230 | nf_bridge_push_encap_header(skb); | 230 | nf_bridge_push_encap_header(skb); |
@@ -388,8 +388,8 @@ bridged_dnat: | |||
388 | skb->pkt_type = PACKET_HOST; | 388 | skb->pkt_type = PACKET_HOST; |
389 | } | 389 | } |
390 | } else { | 390 | } else { |
391 | skb->dst = (struct dst_entry *)&__fake_rtable; | 391 | skb->rtable = &__fake_rtable; |
392 | dst_hold(skb->dst); | 392 | dst_hold(&__fake_rtable.u.dst); |
393 | } | 393 | } |
394 | 394 | ||
395 | skb->dev = nf_bridge->physindev; | 395 | skb->dev = nf_bridge->physindev; |
@@ -608,9 +608,9 @@ static unsigned int br_nf_local_in(unsigned int hook, struct sk_buff *skb, | |||
608 | const struct net_device *out, | 608 | const struct net_device *out, |
609 | int (*okfn)(struct sk_buff *)) | 609 | int (*okfn)(struct sk_buff *)) |
610 | { | 610 | { |
611 | if (skb->dst == (struct dst_entry *)&__fake_rtable) { | 611 | if (skb->rtable == &__fake_rtable) { |
612 | dst_release(skb->dst); | 612 | dst_release(&__fake_rtable.u.dst); |
613 | skb->dst = NULL; | 613 | skb->rtable = NULL; |
614 | } | 614 | } |
615 | 615 | ||
616 | return NF_ACCEPT; | 616 | return NF_ACCEPT; |
diff --git a/net/bridge/br_sysfs_br.c b/net/bridge/br_sysfs_br.c index 9cf0538d1717..27d6a511c8c1 100644 --- a/net/bridge/br_sysfs_br.c +++ b/net/bridge/br_sysfs_br.c | |||
@@ -415,21 +415,21 @@ int br_sysfs_addbr(struct net_device *dev) | |||
415 | err = sysfs_create_group(brobj, &bridge_group); | 415 | err = sysfs_create_group(brobj, &bridge_group); |
416 | if (err) { | 416 | if (err) { |
417 | pr_info("%s: can't create group %s/%s\n", | 417 | pr_info("%s: can't create group %s/%s\n", |
418 | __FUNCTION__, dev->name, bridge_group.name); | 418 | __func__, dev->name, bridge_group.name); |
419 | goto out1; | 419 | goto out1; |
420 | } | 420 | } |
421 | 421 | ||
422 | err = sysfs_create_bin_file(brobj, &bridge_forward); | 422 | err = sysfs_create_bin_file(brobj, &bridge_forward); |
423 | if (err) { | 423 | if (err) { |
424 | pr_info("%s: can't create attribute file %s/%s\n", | 424 | pr_info("%s: can't create attribute file %s/%s\n", |
425 | __FUNCTION__, dev->name, bridge_forward.attr.name); | 425 | __func__, dev->name, bridge_forward.attr.name); |
426 | goto out2; | 426 | goto out2; |
427 | } | 427 | } |
428 | 428 | ||
429 | br->ifobj = kobject_create_and_add(SYSFS_BRIDGE_PORT_SUBDIR, brobj); | 429 | br->ifobj = kobject_create_and_add(SYSFS_BRIDGE_PORT_SUBDIR, brobj); |
430 | if (!br->ifobj) { | 430 | if (!br->ifobj) { |
431 | pr_info("%s: can't add kobject (directory) %s/%s\n", | 431 | pr_info("%s: can't add kobject (directory) %s/%s\n", |
432 | __FUNCTION__, dev->name, SYSFS_BRIDGE_PORT_SUBDIR); | 432 | __func__, dev->name, SYSFS_BRIDGE_PORT_SUBDIR); |
433 | goto out3; | 433 | goto out3; |
434 | } | 434 | } |
435 | return 0; | 435 | return 0; |