HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //opt/osquery/share/osquery/lenses/rtadvd.aug
(*
Module: Rtadvd
  Parses rtadvd configuration file

Author: Matt Dainty <matt@bodgit-n-scarper.com>

About: Reference
       - man 5 rtadvd.conf

Each line represents a record consisting of a number of ':'-separated fields
the first of which is the name or identifier for the record. The name can
optionally be split by '|' and each subsequent value is considered an alias
of the first. Records can be split across multiple lines with '\'.

*)

module Rtadvd =
  autoload xfm

  let empty  = Util.empty

  (* field must not contain ':' unless quoted *)
  let cfield = /[a-zA-Z0-9-]+(#?@|#[0-9]+|=("[^"]*"|[^:"]*))?/

  let lns = ( empty | Getcap.comment | Getcap.record cfield )*

  let filter = incl "/etc/rtadvd.conf"
             . Util.stdexcl

  let xfm = transform lns filter

(* Local Variables: *)
(* mode: caml       *)
(* End:             *)