2013-03-18 22:17:42 +00:00
|
|
|
# AsciiDoc configuration for Wireshark
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
[replacements]
|
|
|
|
|
|
|
|
# Yes, this is a fake macro.
|
2013-11-18 17:41:00 +00:00
|
|
|
wireshark-version:\[\]=1.11.3
|
2013-03-15 15:05:51 +00:00
|
|
|
|
|
|
|
[macros]
|
|
|
|
|
2013-03-15 18:25:07 +00:00
|
|
|
# bugs.wireshark.org link
|
|
|
|
# ws-buglink:<dddd>[<bug text>]
|
|
|
|
# Default bug text is "Bug".
|
2013-06-05 23:43:56 +00:00
|
|
|
# Examples: ws-buglink:5000[] ws-buglink:4000[Wireshark bug number]
|
2013-03-15 18:25:07 +00:00
|
|
|
(?su)(?<!\w)[\\]?(?P<name>ws-buglink):(?P<target>\d+)\[(?P<attrlist>.*?)(?<!\\)\]=
|
2013-03-15 15:05:51 +00:00
|
|
|
|
2013-06-05 23:43:56 +00:00
|
|
|
# www.wireshark.org/security link
|
|
|
|
# ws-salink:<dddd-dd>[<advisory text>]
|
|
|
|
# Default advisory text is "".
|
|
|
|
# Examples: ws-salink:2013-32[] ws-salink:2013-12[Security advisory]
|
|
|
|
(?su)(?<!\w)[\\]?(?P<name>ws-salink):(?P<target>\d{4}-\d{2,3})\[(?P<attrlist>.*?)(?<!\\)\]=
|
|
|
|
|
2013-03-15 18:25:07 +00:00
|
|
|
# CVE ID link
|
|
|
|
# cve-idlink:<dddd-dddd>[]
|
|
|
|
# Example: cve-idlink:2013:0001
|
|
|
|
(?su)(?<!\w)[\\]?(?P<name>cve-idlink):(?P<target>\d{4}-\d+)\[\]=
|
2013-03-15 15:05:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
ifdef::backend-docbook45[]
|
|
|
|
|
|
|
|
[ws-buglink-inlinemacro]
|
2013-03-15 18:25:07 +00:00
|
|
|
<ulink url="https://bugs.wireshark.org/bugzilla/show_bug.cgi?id={target}">{0=Bug} {target}</ulink>
|
2013-03-15 15:05:51 +00:00
|
|
|
|
2013-06-05 23:43:56 +00:00
|
|
|
[ws-salink-inlinemacro]
|
2013-10-31 01:08:36 +00:00
|
|
|
<ulink url="https://www.wireshark.org/security/wnpa-sec-{target}.html">{0=}wnpa-sec-{target}</ulink>
|
2013-06-05 23:43:56 +00:00
|
|
|
|
2013-03-15 15:05:51 +00:00
|
|
|
[cve-idlink-inlinemacro]
|
|
|
|
<ulink url="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-{target}">CVE-{target}</ulink>
|
|
|
|
|
|
|
|
endif::backend-docbook45[]
|
|
|
|
|
|
|
|
|
|
|
|
ifdef::backend-html4,backend-html5,backend-xhtml11[]
|
|
|
|
|
|
|
|
[ws-buglink-inlinemacro]
|
2013-03-15 18:25:07 +00:00
|
|
|
<a href="https://bugs.wireshark.org/bugzilla/show_bug.cgi?id={target}">{0=Bug} {target}</a>
|
2013-03-15 15:05:51 +00:00
|
|
|
|
2013-06-05 23:43:56 +00:00
|
|
|
[ws-salink-inlinemacro]
|
2013-10-31 01:08:36 +00:00
|
|
|
<a href="https://www.wireshark.org/security/wnpa-sec-{target}.html">{0=}wnpa-sec-{target}</a>
|
2013-06-05 23:43:56 +00:00
|
|
|
|
2013-03-15 15:05:51 +00:00
|
|
|
[cve-idlink-inlinemacro]
|
|
|
|
<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-{target}">CVE-{target}</a>
|
|
|
|
|
|
|
|
endif::backend-html4,backend-html5,backend-xhtml11[]
|
2013-03-18 22:17:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Given a list of items, sort and comma-separate them. Blank lines are stripped.
|
|
|
|
# Case is ignored. For example,
|
|
|
|
#
|
|
|
|
# --sort-and-group--
|
|
|
|
# One
|
|
|
|
# two
|
|
|
|
# red
|
|
|
|
#
|
|
|
|
# blue
|
|
|
|
# Fish
|
|
|
|
#
|
|
|
|
# --sort-and-group--
|
|
|
|
#
|
|
|
|
# produces
|
|
|
|
#
|
|
|
|
# blue, Fish, One, red, two
|
|
|
|
[blockdef-sort-and-group]
|
|
|
|
delimiter=^--sort-and-group--$
|
|
|
|
style=default
|
|
|
|
filter=sort --ignore-case
|
2013-07-29 21:14:13 +00:00
|
|
|
default-style=template="paragraph",filter='sort --ignore-case | sed -e "s/,//g" | sed -e "/^$/d" -e "$ s/^/and /" -e "$ ! s/$/,/"'
|