aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/filter-tr
blob: bfc704754e89dfec2e80c1a8b159c100b4ded43d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# filter-tr
#
# Token-Ring Filter
#

protocol tr "Token-Ring";
#length variable;
parents none;

field	sr		"Source-Routed Flag",
				boolean,
				and_mask(127 @ 8);

field	src		"Source Hardware Address",
				ether,
				byte_offset(8);

field	dst		"Destination Hardware Address",
				ether,
				byte_offset(2);

field	srcvendor	"Vendor of Source Hardware Address",
				byte[3],
				byte_offset(8);

field	dstvendor	"Vendor of Destination Hardware Address",
				byte[3],
				byte_offset(2);

field	_next		"Next protocol layer",
				uint8,
				and_mask(192 @ 1);

alias	src		srcaddr;
alias	dst		dest, dstaddr, destaddr;
alias	dstvendor	destvendor;

field	addr		"Hardware Address",
				ether,
				either_of(src, dst);

alias	addr		hwaddr;

field	vendor		"Hardware Vendor",
				byte[3],
				either_of(srcvendor, dstvendor);


#next_protocol {
#	64  : trmac
#	128 : llc
#}

#next_offset {
#	ldx
#	df
#}