Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351515
b: refs/heads/master
c: af9a997
h: refs/heads/master
i:
  351513: f759761
  351511: d0472e3
v: v3
  • Loading branch information
YOSHIFUJI Hideaki / 吉藤英明 authored and David S. Miller committed Jan 21, 2013
1 parent 3c4eba8 commit 5c85edf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f382d03ad003815be6dc268711659d4475fb7d28
refs/heads/master: af9a997629488ba5f92dc3d76e1ec51fcd759c5d
10 changes: 5 additions & 5 deletions trunk/net/ipv6/ndisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,23 +463,23 @@ static struct sk_buff *ndisc_build_skb(struct net_device *dev,
return skb;
}

static void ndisc_send_skb(struct sk_buff *skb, struct net_device *dev,
static void ndisc_send_skb(struct sk_buff *skb,
const struct in6_addr *daddr,
const struct in6_addr *saddr,
struct icmp6hdr *icmp6h)
{
struct flowi6 fl6;
struct dst_entry *dst;
struct net *net = dev_net(dev);
struct net *net = dev_net(skb->dev);
struct sock *sk = net->ipv6.ndisc_sk;
struct inet6_dev *idev;
int err;
u8 type;

type = icmp6h->icmp6_type;

icmpv6_flow_init(sk, &fl6, type, saddr, daddr, dev->ifindex);
dst = icmp6_dst_alloc(dev, &fl6);
icmpv6_flow_init(sk, &fl6, type, saddr, daddr, skb->dev->ifindex);
dst = icmp6_dst_alloc(skb->dev, &fl6);
if (IS_ERR(dst)) {
kfree_skb(skb);
return;
Expand Down Expand Up @@ -516,7 +516,7 @@ static void __ndisc_send(struct net_device *dev,
if (!skb)
return;

ndisc_send_skb(skb, dev, daddr, saddr, icmp6h);
ndisc_send_skb(skb, daddr, saddr, icmp6h);
}

static void ndisc_send_na(struct net_device *dev, struct neighbour *neigh,
Expand Down

0 comments on commit 5c85edf

Please sign in to comment.