Re: [PATCH] parse ip:port strings correctly in in4_pton

2007-04-17 Thread Jerome Borsboom
> Jerome Borsboom wrote: > > in4_pton converts a textual representation of an ip4 address into an > > integer representation. However, when the textual representation is of > > in the form ip:port, c.f. 192.168.1.1:5060, and 'delim' is set to -1, > > the function bails out when parsing the colon. >

Re: [PATCH] parse ip:port strings correctly in in4_pton

2007-04-16 Thread Jerome Borsboom
> Jerome Borsboom wrote: > > in4_pton converts a textual representation of an ip4 address into an > > integer representation. However, when the textual representation is of > > in the form ip:port, c.f. 192.168.1.1:5060, and 'delim' is set to -1, > > the function bails out when parsing the colon. >

Re: [PATCH] parse ip:port strings correctly in in4_pton

2007-04-16 Thread Patrick McHardy
Jerome Borsboom wrote: > in4_pton converts a textual representation of an ip4 address into an > integer representation. However, when the textual representation is of > in the form ip:port, c.f. 192.168.1.1:5060, and 'delim' is set to -1, > the function bails out when parsing the colon. > > It mak

[PATCH] parse ip:port strings correctly in in4_pton

2007-04-16 Thread Jerome Borsboom
in4_pton converts a textual representation of an ip4 address into an integer representation. However, when the textual representation is of in the form ip:port, c.f. 192.168.1.1:5060, and 'delim' is set to -1, the function bails out when parsing the colon. It makes sense to allow the colon as