[Apparmor-dev] apparmor.vim

Markku Savela msa at moth.iki.fi
Tue Sep 4 02:34:59 MDT 2007


> From: John Johansen <jjohansen at suse.de>
> ipv6_expr   =3D "[" <ipv6_addr> "]" [ ":" <port_expr> ]

...just minor question here... won't the '":" <port_expr>' part be
eaten by "hungry" <hexseq>?

A solution is to use some other delimiter for the port number instead
of ":". I believe, that at least in some places, the proposal was to
use "#"-mark for the port number. Of course, the other option is to go
with the URL solution and require IPv6 addresses to be enclosed in
brackets ("[" <ipv6_part> "]").

> ipv6_addr   =3D <ipv6_part> [ "/" 1*2DIGIT ]
> ipv6_part   =3D <hexseq> / <hexseq> "::" [ <hexseq> ] | "::" [ <hexseq> ]
> hexseq      =3D hex4 ( ":" hex4)*
> hex4        =3D HEXDIG{1,4}
> port_expr   =3D DIGIT{1,5} [ "-" DIGIT{1,5} ]





More information about the Apparmor-dev mailing list