summaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-07-12 00:39:24 -0700
committerDavid S. Miller <davem@davemloft.net>2012-07-12 00:39:24 -0700
commitb587ee3ba21f58b7770a132e6bca5c6658ac5095 (patch)
treee8d93a75e52e1427667ae708218ac2ebd1007b45 /net/bridge
parentb94f1c0904da9b8bf031667afc48080ba7c3e8c9 (diff)
downloadop-kernel-dev-b587ee3ba21f58b7770a132e6bca5c6658ac5095.zip
op-kernel-dev-b587ee3ba21f58b7770a132e6bca5c6658ac5095.tar.gz
net: Add dummy dst_ops->redirect method where needed.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r--net/bridge/br_netfilter.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c
index b98d3d7..81f76c4 100644
--- a/net/bridge/br_netfilter.c
+++ b/net/bridge/br_netfilter.c
@@ -115,6 +115,10 @@ static void fake_update_pmtu(struct dst_entry *dst, u32 mtu)
{
}
+static void fake_redirect(struct dst_entry *dst, struct sk_buff *skb)
+{
+}
+
static u32 *fake_cow_metrics(struct dst_entry *dst, unsigned long old)
{
return NULL;
@@ -136,6 +140,7 @@ static struct dst_ops fake_dst_ops = {
.family = AF_INET,
.protocol = cpu_to_be16(ETH_P_IP),
.update_pmtu = fake_update_pmtu,
+ .redirect = fake_redirect,
.cow_metrics = fake_cow_metrics,
.neigh_lookup = fake_neigh_lookup,
.mtu = fake_mtu,
OpenPOWER on IntegriCloud