]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Correctly handle IPv4 route specified as either 10.1.2.0/255.255.255.0 or 10.1.2...
authorDan Lenski <dlenski@gmail.com>
Sun, 16 Oct 2016 01:56:30 +0000 (18:56 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 13 Dec 2016 11:46:53 +0000 (11:46 +0000)
commit881eb286499baf78afbaeff4dbc5f055d23f1e4f
tree4ba657fbbb2bb88cd7d189f51d4e3e21cd084eee
parent75d3bd936b2cd95d6337c6a043507d3900436f35
Correctly handle IPv4 route specified as either 10.1.2.0/255.255.255.0 or 10.1.2.0/24

The existing process_split_xxclude() only handles IPv4 routes
formatted as "10.1.2.0/255.255.255.0", not those formatted as
"10.1.2.0/24".

It's possible to unambiguously distinguish the two and handle the
latter case correctly, because no IPv4 netmask address can possibly
have a decimal integer value <= 32.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
script.c