Once the final component of the IP address has been parsed, the offset on the input must not be advanced, as this would remove an unparsed character from the input.
Details
Details
- Reviewers
donner - Group Reviewers
network - Commits
- rG90e161ec6d11: ng_parse: IP address parsing in netgraph eating too many characters
rG39917ef2a85f: ng_parse: IP address parsing in netgraph eating too many characters
rGf18b7f239dcd: ng_parse: IP address parsing in netgraph eating too many characters
rG63b6a08ce246: ng_parse: IP address parsing in netgraph eating too many characters
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
After looking at your abandoned review (D26420) where you add parsing of IPv6 addresses. I wondered if we could use the generic inet_aton(3) functions available from kernel space?
P/S. Please add full context to your patches.
svn diff --diff-cmd = diff -x -U999999> change.diff
https://wiki.freebsd.org/Phabricator
Comment Actions
I agree, this would probably have been the better than rolling the parser by hand. However, I think the man page leaves some room for improvement regarding it's IPv6 support.
Comment Actions
I'm fine with this fix for a special case.
I agree, that a more complete approach would be fine, but this can be done in a later stage.