Page MenuHomeFreeBSD

ddb(4): Add some support for lexing IPv6 addresses
ClosedPublic

Authored by cem on Sep 3 2019, 5:27 PM.
Tags
None
Referenced Files
F103261543: D21509.diff
Fri, Nov 22, 6:47 PM
Unknown Object (File)
Sun, Nov 17, 4:19 AM
Unknown Object (File)
Sun, Nov 10, 11:38 PM
Unknown Object (File)
Oct 20 2024, 11:52 AM
Unknown Object (File)
Oct 6 2024, 10:54 AM
Unknown Object (File)
Oct 5 2024, 4:51 PM
Unknown Object (File)
Oct 2 2024, 9:06 PM
Unknown Object (File)
Oct 2 2024, 8:19 PM
Subscribers

Details

Summary

Allow commands to specify that (hex) numbers may start with A-F, by adding
the command-scoped CS_LEX_HEX flag. As before, numbers containing invalid
digits for the current radix are rejected.

Also, lex ':' and '::' tokens as tCOLON and tCOLONCOLON respectively.

There is a mild conflict here with lexed "identifiers" (tIDENT): ddb
identifiers may contain arbitrary colons, and the ddb lexer is greedy. So
the identifier lex will swallow any colons it finds inside identifiers, and
consumers are still unable to expect the token sequence 'tIDENT tCOLON'.
That limitation does not matter for IPv6 addresses, because the lexer always
attempts to lex numbers before identifiers.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 26267
Build 24755: arc lint + arc unit