[NET]: Accept wildcard delimiters in in[46]_pton
authorPatrick McHardy <kaber@trash.net>
Sun, 3 Dec 2006 06:04:04 +0000 (22:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Dec 2006 06:04:04 +0000 (22:04 -0800)
commit9a7c9337a09b1ef07e55f95a4309957a2328a01f
tree9d382a443d82ece7246fe83d297865b66ace713f
parenta163148c1bec895c1332ea5be497bcda8ce110df
[NET]: Accept wildcard delimiters in in[46]_pton

Accept -1 as delimiter to abort parsing without an error at the first
unknown character. This is needed by the upcoming nf_conntrack SIP
helper, where addresses are delimited by either '\r' or '\n' characters.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/inet.h
net/core/utils.c