system-linux: make encaplimit configurable for ip6 tunnels (FS#1501)
authorHans Dedecker <dedeckeh@gmail.com>
Tue, 29 May 2018 20:40:00 +0000 (22:40 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 30 May 2018 20:09:39 +0000 (22:09 +0200)
commita580028dae5b7bebcc14c240fe7dac31cbd89355
tree3b1a6e9f61ced860fe83595cbf54bc552f640c8d
parent56cecedb261808f5ea700b92b97590f7fa16de9c
system-linux: make encaplimit configurable for ip6 tunnels (FS#1501)

Make encapsulation limit of IP6 tunnels configurable for the ds-lite/map
proto shell handlers as not all ISPs support the destination option header
containing the tunnel encapsulation limit value as reported in FS#1501.

The IP6 tunnel specific setting encaplimit is parsed as a nested json
data object; setting it to ignore disables the insertion of the
destination option header while a value from 0 till 255 sets the
tunnel encapsulation limit accordingly in the destination option header.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
system-linux.c
system.c
system.h