aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debug.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-08-08 23:27:22 +0200
committerHarald Welte <laforge@gnumonks.org>2017-08-11 10:45:56 +0200
commitd46bcd236e93432c894a939f4e5810dc5e9b4974 (patch)
treef25e4606b0e25db3230736984801ed8770c14e58 /lib/debug.c
parentd4d6e09fd29e23e28960959ca488e1481339571e (diff)
IPv6: Implement IPv6 prefix assignment via ICMPv6 router advertisement
The 3GPP specs are quite strange when it comes to how an IPv6 address or rather prefix is assigned to an IPv6 PDP context. The designated method for allocating the IPv6 address via the PDP EUA (End User Address) Information Element in the GTP signalling plane is *not* used to allocate the address/prefix. Instead, the EUA is used to allocate an "interface identifier" to the MS, which it the uses to derive its link-local source address to send a router solicitation. The GGSN subsequently answers witha router advertisement, advertising a single/64 prefix, whihcthe MS then uses to generate it's real IPv6 source address for subsequent communication. Change-Id: Icddf7d30e01d76a4784bcef5787b36f52f703a9f
Diffstat (limited to 'lib/debug.c')
-rw-r--r--lib/debug.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/debug.c b/lib/debug.c
index b3850f9..83423dc 100644
--- a/lib/debug.c
+++ b/lib/debug.c
@@ -26,6 +26,11 @@ static const struct log_info_cat default_categories[] = {
.description = "SGSN Emulator",
.enabled = 1, .loglevel = LOGL_NOTICE,
},
+ [DICMP6] = {
+ .name = "DICMP6",
+ .description = "ICMPv6",
+ .enabled = 1, .loglevel = LOGL_DEBUG,
+ },
};
const struct log_info log_info = {