diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-11-06 03:38:54 +0900 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-11-06 03:38:54 +0900 |
commit | fc6676c4a0711248388a0df0f3e9e38492894a2c (patch) | |
tree | 2ec0b0902850ea0c5cf4ca400a92e0fcd856e1b6 /ggsn/gtp-kernel.h | |
parent | 1af543f44c79696abdd422a3e28458f8deb11375 (diff) |
ippool: Correctly compute size of static pool
* we have to use stataddr, not addr (dynamic)
* we have to multiply the length of the address by 8 to get its bit length
* we can simplify the -1 +1 logic (like dynamic)
Change-Id: I174102051bef95f7df34b7d7c480a00ae408be7d
Fixes: Coverity CID#174189
Diffstat (limited to 'ggsn/gtp-kernel.h')
0 files changed, 0 insertions, 0 deletions