summaryrefslogtreecommitdiff
path: root/src/6to4.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-01-05 13:38:06 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-01-05 13:17:26 +0100
commit931367f3c9574b7fc473fdce23627f4108cfb90d (patch)
tree90c62e5e7f979206d0501d44cbf865816d4a3e37 /src/6to4.c
parent19e8effd134678d9467e328090717b10cef0c208 (diff)
downloadconnman-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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/6to4.c b/src/6to4.c
index 0dfcbf76..7712ea3a 100644
--- a/src/6to4.c
+++ b/src/6to4.c
@@ -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.