Hans Dedecker
479aaf6375
map: fix psidlen becoming negative (FS#1430)
...
Fix psidlen becomes negative in case embedded address bit lenght is smaller than
IPv4 suffix length.
While at it improve parameter checking making the code more logical and
easier to read.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2018-03-29 22:19:18 +02:00
Hans Dedecker
4b3ffecf2b
map: fix boolean argument passed to blobmsg_check_attr in mapcalc
...
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2017-08-26 23:34:14 +02:00
Florian Fainelli
44ac4adb34
map: Have cmake find libubus.h
...
Update CMakeList.txt to look for libubus.h since we depend on it.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2016-12-16 18:46:27 +01:00
Steven Barth
1b91cd2663
map: be less restrictive when matching lw4over6 prefixes
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46819
2015-09-08 12:13:29 +00:00
Steven Barth
7af30b4cef
map: ignore insignificant PSID bits
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46804
2015-09-07 16:21:15 +00:00
Steven Barth
7e009c1598
map: add debug-code for mapcalc
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46763
2015-09-01 18:48:22 +00:00
Steven Barth
a28470a3cc
map: add support for lw4o6 address matching, minor optimizations
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 45770
2015-05-26 14:36:20 +00:00
Steven Barth
1ffe824e81
map: set ealen to psidlen for lw4over6
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 45689
2015-05-16 10:12:15 +00:00
Steven Barth
d73c382a73
map: ignore psid and psidlen if psidlen is 0
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 43946
2015-01-12 10:56:54 +00:00
Steven Barth
def69a96e9
map: fix portsets starting with 0 and use regular NAT for 1:1 MAP
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 42741
2014-10-02 19:15:38 +00:00
Steven Barth
bb932910dd
Initial support for MAP-E and Lightweight 4over6 protocol
...
SVN-Revision: 40823
2014-05-22 20:04:53 +00:00