diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2012-01-05 13:38:06 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-01-05 13:17:26 +0100 |
commit | 931367f3c9574b7fc473fdce23627f4108cfb90d (patch) | |
tree | 90c62e5e7f979206d0501d44cbf865816d4a3e37 /src/6to4.c | |
parent | 19e8effd134678d9467e328090717b10cef0c208 (diff) | |
download | connman-931367f3c9574b7fc473fdce23627f4108cfb90d.tar.gz connman-931367f3c9574b7fc473fdce23627f4108cfb90d.tar.bz2 connman-931367f3c9574b7fc473fdce23627f4108cfb90d.zip |
inet: Return router advertisement packet length in callback.
The length of the RA packet must be returned in callback,
otherwise callback cannot check RA options. The prefix length
RA option is needed in stateful DHCPv6 implementation.
Diffstat (limited to 'src/6to4.c')
-rw-r--r-- | src/6to4.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -449,12 +449,13 @@ error: return -1; } -static void receive_rs_reply(struct nd_router_advert *reply, void *user_data) +static void receive_rs_reply(struct nd_router_advert *reply, + unsigned int length, void *user_data) { char *address = user_data; struct in_addr ip4addr; - DBG("reply %p address %s", reply, address); + DBG("reply %p len %d address %s", reply, length, address); /* We try to create tunnel if autoconfiguration did not work i.e., * we did not receive any reply to router solicitation message. |