提交 93e55097 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Allow link-local IPv6 with scope id (% after the IPv6)

上级 c347ba41
差异被折叠。
...@@ -24,15 +24,16 @@ ...@@ -24,15 +24,16 @@
IPv4address = decimal_uchar "." decimal_uchar "." decimal_uchar "." decimal_uchar; IPv4address = decimal_uchar "." decimal_uchar "." decimal_uchar "." decimal_uchar;
h16 = HEXDIG{1,4}; h16 = HEXDIG{1,4};
ls32 = ( h16 ":" h16 ) | IPv4address; ls32 = ( h16 ":" h16 ) | IPv4address;
IPv6address = ( ( h16 ":" ){6} ls32 ) | scopeId = "%" alphanum{1,20};
( "::" ( h16 ":" ){5} ls32 ) | IPv6address = ( ( h16 ":" ){6} ls32 scopeId? ) |
( h16? "::" ( h16 ":" ){4} ls32 ) | ( "::" ( h16 ":" ){5} ls32 scopeId? ) |
( ( ( h16 ":" )? h16 )? "::" ( h16 ":" ){3} ls32 ) | ( h16? "::" ( h16 ":" ){4} ls32 scopeId? ) |
( ( ( h16 ":" ){,2} h16 )? "::" ( h16 ":" ){2} ls32 ) | ( ( ( h16 ":" )? h16 )? "::" ( h16 ":" ){3} ls32 scopeId? ) |
( ( ( h16 ":" ){,3} h16 )? "::" h16 ":" ls32 ) | ( ( ( h16 ":" ){,2} h16 )? "::" ( h16 ":" ){2} ls32 scopeId? ) |
( ( ( h16 ":" ){,4} h16 )? "::" ls32 ) | ( ( ( h16 ":" ){,3} h16 )? "::" h16 ":" ls32 scopeId? ) |
( ( ( h16 ":" ){,5} h16 )? "::" h16 ) | ( ( ( h16 ":" ){,4} h16 )? "::" ls32 scopeId? ) |
( ( ( h16 ":" ){,6} h16 )? "::" ); ( ( ( h16 ":" ){,5} h16 )? "::" h16 scopeId? ) |
( ( ( h16 ":" ){,6} h16 )? "::" scopeId? );
port = DIGIT{1,4} | port = DIGIT{1,4} |
"1".."5" DIGIT{4} | "1".."5" DIGIT{4} |
"6" "0".."4" DIGIT{3} | "6" "0".."4" DIGIT{3} |
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论