Actions
Bug #3214
closedosmo-ggsn fails to set route with kernel gtp-u
Start date:
04/25/2018
Due date:
% Done:
100%
Spec Reference:
Description
When the config file contains statements like these:
ggsn ggsn0 ... apn foobar ... ip ifconfig 10.1.1.254/24 ...
then it fails as follows:
<0002> gtp-kernel.c:75 Initialized GTP kernel mode (genl ID is 25) <0002> gtp-kernel.c:102 Setting route to reach 10.1.1.254/24 via gtp0 <0002> gtp-kernel.c:105 Cannot add route to reach network 10.1.1.254/24
This happens whenever the host-part of the address (i.e. the last 8 bits in the /24 example above) is not zeroed out.
So simply changing the config file to:
ggsn ggsn0 ... apn foobar ... ip ifconfig 10.1.1.0/24 ...
avoids the related error and the log file is
<0002> gtp-kernel.c:75 Initialized GTP kernel mode (genl ID is 25) <0002> gtp-kernel.c:102 Setting route to reach 10.1.1.0/24 via gtp0 <0002> gtp-kernel.c:127 GTP kernel configured
and the related route shows up in "ip route":
root@ggsn:/etc# ip route show ... 10.1.1.0/24 dev gtp0 proto static ...
Actions