diff options
author | Pierre Ynard <linkfanel@yahoo.fr> | 2007-11-13 04:58:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-11-13 04:58:35 +0300 |
commit | dbb2ed24851a290616d66212dc75373fd863d636 (patch) | |
tree | 6e4d001604fb47980c32d665039442aeddbc844f /net/ipv6 | |
parent | 325d22df7b19e0116aff3391d3a03f73d0634ded (diff) | |
download | linux-dbb2ed24851a290616d66212dc75373fd863d636.tar.xz |
[IPV6]: Add ifindex field to ND user option messages.
Userland neighbor discovery options are typically heavily involved with
the interface on which thay are received: add a missing ifindex field to
the original struct. Thanks to Rémi Denis-Courmont.
Signed-off-by: Pierre Ynard <linkfanel@yahoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/ndisc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 36f7dbfb6dbb..67997a74ddce 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -1037,6 +1037,7 @@ static void ndisc_ra_useropt(struct sk_buff *ra, struct nd_opt_hdr *opt) ndmsg = nlmsg_data(nlh); ndmsg->nduseropt_family = AF_INET6; + ndmsg->nduseropt_ifindex = ra->dev->ifindex; ndmsg->nduseropt_icmp_type = icmp6h->icmp6_type; ndmsg->nduseropt_icmp_code = icmp6h->icmp6_code; ndmsg->nduseropt_opts_len = opt->nd_opt_len << 3; |