mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
net: Add dummy dst_ops->redirect method where needed.
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
b94f1c0904
commit
b587ee3ba2
4 changed files with 21 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue