Parses /etc/protocols
Author: Raphael Pinson rap@gmai l.com hink
Protocols | Parses /etc/protocols |
Reference | This lens tries to keep as close as possible to `man 5 protocols` where possible. |
License | This file is licenced under the LGPL v2+, like the rest of Augeas. |
Lens Usage | To be documented |
Configuration files | This lens applies to /etc/protocols. |
Examples | The Test_Protocols file contains various examples and tests. |
Augeas Lenses | |
entry | |
lns | The protocols lens |
Augeas Variables | |
filter |
This lens applies to /etc/protocols. See filter.
The Test_Protocols file contains various examples and tests.
let entry = let protocol = [ label "protocol" . store protoname ] in let number = [ label "number" . store Rx.integer ] in let alias = [ label "alias" . store protoname ] in [ seq "protocol" . protocol . Sep.space . number . (Sep.space . Build.opt_list alias Sep.space)? . Util.comment_or_eol ]
The protocols lens
let lns = (Util.empty | Util.comment | entry)*