Bug 249327

Summary: fix IP address parsing in netgraph eating too many characters
Product: Base System Reporter: Markus Stoff <markus>
Component: kernAssignee: freebsd-net (Nobody) <net>
Status: Closed FIXED    
Severity: Affects Some People Keywords: needs-qa
Priority: --- Flags: koobs: mfc-stable12?
Version: 12.1-RELEASE   
Hardware: Any   
OS: Any   
URL: https://reviews.freebsd.org/D26489
Attachments:
Description Flags
Suggested fix for ng_parse.c none

Description Markus Stoff 2020-09-15 05:59:08 UTC
Created attachment 217966 [details]
Suggested fix for ng_parse.c

The IP address parse type in ng_parse.c eats one character to much on the input.

Example:

Given '{ inet=10.0.0.1 }', after the IP address has been parsed the next character on the input should be the space (' '), but instead it is the closing curly brace '}'.
Comment 1 Markus Stoff 2020-09-20 19:52:54 UTC
See also review D26489.
Comment 2 Markus Stoff 2020-10-31 19:07:24 UTC
The proposed fix has been approved in review D26489.
Comment 3 Bjoern A. Zeeb freebsd_committer freebsd_triage 2020-10-31 19:26:09 UTC
I added #network to the review so that a committer might also have a look and deal with this.
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2024-10-04 11:04:12 UTC
^Triage: D26489 was committed Sep 20 2020.