Skip to content

Commit

Permalink
ndisc: Remove icmp6h argument from ndisc_send_skb().
Browse files Browse the repository at this point in the history
skb_transport_header() (thus icmp6_hdr()) is available here,
use it.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
YOSHIFUJI Hideaki / 吉藤英明 authored and David S. Miller committed Jan 21, 2013
1 parent 5f5a011 commit aa4bdd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/ipv6/ndisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,15 +465,15 @@ static struct sk_buff *ndisc_build_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)
const struct in6_addr *saddr)
{
struct flowi6 fl6;
struct dst_entry *dst;
struct net *net = dev_net(skb->dev);
struct sock *sk = net->ipv6.ndisc_sk;
struct inet6_dev *idev;
int err;
struct icmp6hdr *icmp6h = icmp6_hdr(skb);
u8 type;

type = icmp6h->icmp6_type;
Expand Down Expand Up @@ -516,7 +516,7 @@ static void __ndisc_send(struct net_device *dev,
if (!skb)
return;

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

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

0 comments on commit aa4bdd4

Please sign in to comment.