diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2017-03-13 13:50:32 +0100 |
---|---|---|
committer | Jan Moskyto Matejka <mq@ucw.cz> | 2017-03-13 13:51:20 +0100 |
commit | 8c9986d310c58b26c000375be00be0deb9c2e360 (patch) | |
tree | 9e3dba54bc82bb2bb9e0b6a25591eb471b107550 /doc | |
parent | 54334b5667158d4b0af55201f327faeb80c05e0e (diff) |
Filters: VPN Route Distinguishers, Prefix Type, Docs Update
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Makefile | 4 | ||||
-rw-r--r-- | doc/bird.sgml | 24 |
2 files changed, 23 insertions, 5 deletions
diff --git a/doc/Makefile b/doc/Makefile index 4e7e91eb..f36642be 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -36,8 +36,8 @@ $(o)%.ps: $(o)%.dvi dvips -D600 -ta4 -o $@ $< $(o)%.pdf: $(o)%.tex - pdflatex -output-directory=$(dir $@) $< - pdflatex -output-directory=$(dir $@) $< + TEXINPUTS=$(TEXINPUTS):$(doc-srcdir)/tex pdflatex -output-directory=$(dir $@) $< + TEXINPUTS=$(TEXINPUTS):$(doc-srcdir)/tex pdflatex -output-directory=$(dir $@) $< $(o)%.txt: $(o)%.sgml cd $(dir $@) && $(sgml2)txt $(notdir $<) diff --git a/doc/bird.sgml b/doc/bird.sgml index 2f8f18f3..e85ebf18 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -1193,13 +1193,31 @@ foot). <cf/1.2.3.4.mask(8) = 1.0.0.0/ is true. <tag><label id="type-prefix">prefix</tag> - This type can hold a network prefix consisting of IP address and prefix - length. Prefix literals are written as <cf><m/ipaddress//<m/pxlen/</cf>, + This type can hold a network prefix consisting of IP address, prefix + length and several other values. This is the key in route tables. + + Prefices may be of several types, which can be determined by the special + operator <cf/.type/ of type <m/enum/. The type may be: + + <cf/NET_IP4/ and <cf/NET_IP6/ prefices hold an IP prefix. The literals are + written as <cf><m/ipaddress//<m/pxlen/</cf>, or <cf><m>ipaddress</m>/<m>netmask</m></cf>. There are two special - operators on prefixes: <cf/.ip/ which extracts the IP address from the + operators on IP prefices: <cf/.ip/ which extracts the IP address from the pair, and <cf/.len/, which separates prefix length from the pair. So <cf>1.2.0.0/16.len = 16</cf> is true. + <cf/NET_VPN4/ and <cf/NET_VPN6/ prefices hold an IP prefix with + VPN Route Distinguisher (<rfc id="4364">). They support the same special + operators as IP prefices, and also <cf/.rd/ which extracts the Route Distinguisher. + Their literals are written as <cf><m/vpnrd/ <m/ipprefix/</cf> + + <cf/NET_ROA4/ and <cf/NET_ROA6/ prefices hold an IP prefix range together + with an ASN. They support the same special operators as IP prefices, and also + <cf/.maxlen/ which extracts maximal prefix length, and <cf/.asn/ which extracts the ASN. + + <cf/NET_FLOW4/ and <cf/NET_FLOW6/ hold an IP prefix together with + a flowspec rule. Filters currently don't support flowspec parsing. + <tag><label id="type-ec">ec</tag> This is a specialized type used to represent BGP extended community values. It is essentially a 64bit value, literals of this type are |