Skip to content

Commit 1082fcb

Browse files
committed
whitespace
1 parent 91c228f commit 1082fcb

File tree

12 files changed

+343
-343
lines changed

12 files changed

+343
-343
lines changed

README

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
** mask2plen/addrmask2str:
7575
manipulate and print address/mask prefixes (as opposed to
7676
prefix/length prefixes).
77-
78-
** str2id/id2str/pfx2str/str2pfx:
77+
78+
** str2id/id2str/pfx2str/str2pfx:
7979
convert between string and long representations of IP
8080
addresses/prefixes.
8181

@@ -85,15 +85,15 @@
8585
the standard 11.22.33.44.55.66 -> 112.233.445.566
8686
mapping).
8787

88-
** int2xxx:
88+
** int2xxx:
8989
given an integer, return a string representation in base
9090
xxx.
9191

92-
** str2xxx:
92+
** str2xxx:
9393
given a string (ie. packed binary data a la the 'struct'
9494
module), return a string representation in base xxx.
9595

96-
** prtxxx:
96+
** prtxxx:
9797
print the string representation, taking care of wrapping
9898
and prepending a prefix to each line.
9999

@@ -125,17 +125,17 @@
125125
then dump and/or print it accordingly. All listeners support 4
126126
verbosity options:
127127

128-
** quiet (-q):
128+
** quiet (-q):
129129
output nothing.
130130

131-
** default:
131+
** default:
132132
output human readable parsing of protocol messages.
133133

134-
** verbose (-v):
134+
** verbose (-v):
135135
in addition to default, output significant chunks of
136136
messages in binary/hex.
137137

138-
** very verbose (-V):
138+
** very verbose (-V):
139139
in addition to above, output results/parameters of
140140
recvMsg(), parseMsg(), sendMsg() (mostly for debugging
141141
purposes).
@@ -148,16 +148,16 @@
148148
provides support for reading and writing MRTD format log files
149149
in 3 formats:
150150

151-
** PROTOCOL_BGP:
151+
** PROTOCOL_BGP:
152152
default for the BGP module; slightly extended to allow
153153
messages other than UPDATEs to be dumped.
154154

155-
** PROTOCOL_BGP4MP:
155+
** PROTOCOL_BGP4MP:
156156
alternative BGP dump format used by Zebra. Contains
157157
hacks to work around problems in Zebra dumps (v0.89 and
158158
0.91a).
159159

160-
** PROTOCOL_ISIS:
160+
** PROTOCOL_ISIS:
161161
non-standard homegrown format for dumping ISIS messages.
162162

163163
It provides a class to wrap up dealing with reading and writing
@@ -229,7 +229,7 @@
229229
if message-to-read:
230230
Isis.parseMsg()
231231

232-
else: ## we need to transmit one or more packets
232+
else: ## we need to transmit one or more packets
233233
for-each adjacency:
234234
if required:
235235
transmit ISIS HELLO
@@ -253,7 +253,7 @@
253253

254254
This module implements the OSPF listener, blah, as for the ISIS
255255
module :)
256-
256+
257257
-------------------------------------------------------------------
258258

259259
3.2. Utilities
@@ -291,9 +291,9 @@
291291
4. References
292292

293293
BGP: "BGP4: Inter-domain routing in the Internet" John W. Stewart III
294-
295-
RFC 1771 (base)
296-
RFC 1965 (confederations)
294+
295+
RFC 1771 (base)
296+
RFC 1965 (confederations)
297297
RFC 1966 (route reflectors)
298298
RFC 1997 (communities)
299299
RFC 2283, RFC 2858 (multi-protocol extensions)
@@ -309,7 +309,7 @@
309309
ISIS: RFC 1142 (OSI ISO ISIS)
310310
RFC 1195 (IP extensions)
311311
RFC 2763 (Dynamic hostname TLV)
312-
http://www.gated.org/
312+
http://www.gated.org/
313313
GateD public release v3.5.11 (the last to support ISIS,
314314
and then only on NetBSD)
315315
http://www.rware.demon.co.uk/isis.htm
@@ -322,7 +322,7 @@
322322
=====================================================================
323323

324324
5. To do
325-
325+
326326
** need to _completely_ separate the parsing from pretty printing
327327
** ext timestamp support is ugly -- should push into common header
328328
** bgp: support KEEPALIVEs for robustness

README.mrtd

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
PyRT: Python Routeing Toolkit
44

55
Documents the MRTD formats used by PyRT (and other MRT utilities)
6-
6+
77
Copyright (C) 2001 Richard Mortier <mort@sprintlabs.com>, Sprint ATL
88

99
=====================================================================
@@ -48,13 +48,13 @@
4848
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
4949
| TIME (s) |
5050
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
51-
| MRT TYPE | MRT SUBTYPE |
51+
| MRT TYPE | MRT SUBTYPE |
5252
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
5353
| MESSAGE LENGTH (octets) |
5454
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
5555
| < type specific header -- see below >
5656
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ... ... ... ...
57-
57+
5858

5959
=====================================================================
6060

@@ -80,7 +80,7 @@
8080
2: PREF_UPDATE -- (T,L,V) prefs. followed by raw update
8181
3: STATE_CHANGE -- state change
8282
4: SYNC -- ???
83-
83+
8484
129: OPEN -- extension
8585
131: NOTIFICATION -- extension
8686
132: KEEPALIVE -- extension
@@ -109,7 +109,7 @@
109109

110110
0: STATE_CHANGE
111111
1: MESSAGE
112-
2: ENTRY
112+
2: ENTRY
113113
3: SNAPSHOT
114114

115115
Subtype 0 ("STATE_CHANGE") uses the following type-specific
@@ -190,7 +190,7 @@
190190

191191
0: STATE_CHANGE
192192
1: MESSAGE
193-
2: ENTRY
193+
2: ENTRY
194194
3: SNAPSHOT
195195

196196
All subtypes used/parsed by PyRT use the following type-specific
@@ -257,7 +257,7 @@
257257
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
258258
| VIEW NUMBER | SEQUENCE NUMBER |
259259
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
260-
260+
261261
The VIEW NUMBER is the BGP view from the router, and is always 0
262262
in the current Zebra implementation. The SEQUENCE NUMBER starts
263263
from 0 and is the sequence number of this TABLE_DUMP 'packet' in
@@ -296,7 +296,7 @@
296296

297297
MRTd type code 32 ("PROTOCOL_ISIS"). No type specific header;
298298
the ISIS PDU directly follows the MRTD common header.
299-
299+
300300
-------------------------------------------------------------------
301301

302302
4.2. ISIS + extended timestamp

README.rv

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
2.1 BGP
5555

5656
The subtype is the MRTD BGP4/BGP4MP/BGP4PY subtype value.
57-
57+
5858
The header for type:BGP4 is a dictionary formatted as:
5959

6060
'TIME' : time
@@ -130,15 +130,15 @@
130130
5: ROUTE_REFRESH
131131

132132
The length field is the (integer) length of the message in question
133-
in octets.
133+
in octets.
134134

135135
The header field is a dictionary formatted as given in section 2.1.
136136

137137
The value field is formatted as specified below.
138138

139139
--------------------------------------------------------------------
140140

141-
3.1 OPEN
141+
3.1 OPEN
142142

143143
Value field is a dictionary formatted as:
144144

@@ -238,30 +238,30 @@
238238
15: MP_UNREACH_NLRI
239239
{ 'V': None } -- never used
240240
16: EXT_COMMUNITIES
241-
{ 'V': None } -- never used
241+
{ 'V': None } -- never used
242242

243243
--------------------------------------------------------------------
244244

245-
3.3 NOTIFICATION
245+
3.3 NOTIFICATION
246246

247247
Value is always left 'None'.
248248

249249
--------------------------------------------------------------------
250250

251251
3.4 KEEPALIVE
252252

253-
Value is always left 'None'.
253+
Value is always left 'None'.
254254

255255
--------------------------------------------------------------------
256256

257257
3.5 ROUTE_REFRESH
258258

259-
Value is always left 'None'.
259+
Value is always left 'None'.
260260

261261
=====================================================================
262262

263263
4. isis.py
264-
-------
264+
-------
265265

266266
The value field is a dictionary with some common fields and some
267267
PDU dependent fields. The common fields are:
@@ -314,8 +314,8 @@
314314
'SEQ_NO' : sequence number
315315
'CKSM' : checksum
316316
'BITS' : octet encoding the various bit values:
317-
0
318-
0 1 2 3 4 5 6 7
317+
0
318+
0 1 2 3 4 5 6 7
319319
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
320320
|is1|is2|hty|def|del|exp|err| p |
321321
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
@@ -330,7 +330,7 @@
330330
is1,is2: 00: unused
331331
01: level 1 link type
332332
10: unused
333-
11: level 1+2 link type
333+
11: level 1+2 link type
334334

335335
--------------------------------------------------------------------
336336

@@ -359,7 +359,7 @@
359359
'V': value of field
360360

361361
Permitted field types and values are:
362-
362+
363363
4.6.1 [1] AreaAddress
364364

365365
A list of the area addresses in which the speaker exists.
@@ -400,16 +400,16 @@
400400
A list of IS neighbours (6 octet source IDs).
401401

402402
4.6.8 [8] Padding
403-
403+
404404
Always left 'None'.
405405

406406
4.6.9 [9] LSPEntries
407407

408408
A list of LSP entries. Each LSP entry is a dictionary formatted
409409
as follows:
410410

411-
'ID' : source ID of LSP -- concatenate
412-
'PN' : pseudo-node originating LSP -- these to form
411+
'ID' : source ID of LSP -- concatenate
412+
'PN' : pseudo-node originating LSP -- these to form
413413
'NM' : number of LSP -- the LSP ID
414414
'LIFETIME': remaining lifetime of LSP (secs)
415415
'SEQ_NO' : sequence number of LSP
@@ -442,7 +442,7 @@
442442
'ERROR' : error metric
443443
'ADDR' : IP address of interface (long)
444444
'MASK' : mask for IP address (long)
445-
445+
446446
4.6.15 [129] ProtoSupported
447447

448448
A list of strings representing the protocols routeable by the
@@ -476,7 +476,7 @@
476476

477477
A string representing the dynamic hostname of the router
478478
(typically part or all of the FQDN).
479-
479+
480480
4.6.23 [180] LeafNode
481481

482482
Not currently parsed -- left 'None'.
@@ -512,7 +512,7 @@
512512
=====================================================================
513513

514514
5. ospf.py
515-
-------
515+
-------
516516

517517
XXX write me XXX
518518

0 commit comments

Comments
 (0)