nicira-ext: Support matching ARP source and target hardware addresses.
[sliver-openvswitch.git] / tests / ovs-ofctl.at
1 AT_BANNER([ovs-ofctl])
2
3 AT_SETUP([ovs-ofctl parse-flows])
4 AT_DATA([flows.txt], [[
5 # comment
6 tcp,tp_src=123,actions=flood
7 in_port=LOCAL dl_vlan=9 dl_src=00:0A:E4:25:6B:B0 actions=drop
8 arp,nw_src=192.168.0.1 actions=drop_spoofed_arp,NORMAL
9 udp dl_vlan_pcp=7 idle_timeout=5 actions=strip_vlan output:0
10 tcp,nw_src=192.168.0.3,tp_dst=80 actions=set_queue:37,output:1
11 udp,nw_src=192.168.0.3,tp_dst=53 actions=pop_queue,output:1
12 cookie=0x123456789abcdef hard_timeout=10 priority=60000 actions=controller
13 actions=note:41.42.43,note:00.01.02.03.04.05.06.07,note
14 tun_id=0x1234,cookie=0x5678,actions=flood
15 actions=set_tunnel:0x1234,set_tunnel64:0x9876,set_tunnel:0x123456789
16 actions=multipath(eth_src, 50, hrw, 12, 0, NXM_NX_REG0[0..3]),multipath(symmetric_l4, 1024, iter_hash, 5000, 5050, NXM_NX_REG0[0..12])
17 actions=drop
18 tun_id=0x1234000056780000/0xffff0000ffff0000,actions=drop
19 ]])
20 AT_CHECK([ovs-ofctl parse-flows flows.txt
21 ], [0], [stdout], [stderr])
22 AT_CHECK([[sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout]], [0], 
23 [[OFPT_FLOW_MOD: ADD tcp,tp_src=123 actions=FLOOD
24 OFPT_FLOW_MOD: ADD in_port=65534,dl_vlan=9,dl_src=00:0a:e4:25:6b:b0 actions=drop
25 OFPT_FLOW_MOD: ADD arp,nw_src=192.168.0.1 actions=drop_spoofed_arp,NORMAL
26 OFPT_FLOW_MOD: ADD udp,dl_vlan_pcp=7 idle:5 actions=strip_vlan,output:0
27 OFPT_FLOW_MOD: ADD tcp,nw_src=192.168.0.3,tp_dst=80 actions=set_queue:37,output:1
28 OFPT_FLOW_MOD: ADD udp,nw_src=192.168.0.3,tp_dst=53 actions=pop_queue,output:1
29 OFPT_FLOW_MOD: ADD priority=60000 cookie:0x123456789abcdef hard:10 actions=CONTROLLER:65535
30 OFPT_FLOW_MOD: ADD actions=note:41.42.43.00.00.00,note:00.01.02.03.04.05.06.07.00.00.00.00.00.00,note:00.00.00.00.00.00
31 NXT_TUN_ID_FROM_COOKIE: set=1
32 OFPT_FLOW_MOD: ADD cookie:0x123400005678 actions=FLOOD
33 OFPT_FLOW_MOD: ADD actions=set_tunnel:0x1234,set_tunnel64:0x9876,set_tunnel64:0x123456789
34 OFPT_FLOW_MOD: ADD actions=multipath(eth_src,50,hrw,12,0,NXM_NX_REG0[0..3]),multipath(symmetric_l4,1024,iter_hash,5000,5050,NXM_NX_REG0[0..12])
35 OFPT_FLOW_MOD: ADD actions=drop
36 NXT_SET_FLOW_FORMAT: format=nxm
37 NXT_FLOW_MOD: ADD tun_id=0x1234000056780000/0xffff0000ffff0000 actions=drop
38 ]])
39 AT_CHECK([sed 's/.*|//' stderr], [0], [dnl
40 normalization changed ofp_match, details:
41  pre: wildcards=  0x3820f8  in_port=65534  dl_src=00:0a:e4:25:6b:b0  dl_dst=00:00:00:00:00:00  dl_vlan=    9  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0  nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
42 post: wildcards=  0x3ffff8  in_port=65534  dl_src=00:0a:e4:25:6b:b0  dl_dst=00:00:00:00:00:00  dl_vlan=    9  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0  nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
43 normalization changed ofp_match, details:
44  pre: wildcards=  0x3820ff  in_port=65534  dl_src=00:00:00:00:00:00  dl_dst=00:00:00:00:00:00  dl_vlan=    0  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0  nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
45 post: wildcards=  0x3fffff  in_port=65534  dl_src=00:00:00:00:00:00  dl_dst=00:00:00:00:00:00  dl_vlan=    0  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0  nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
46 normalization changed ofp_match, details:
47  pre: wildcards=  0x3820ff  in_port=65534  dl_src=00:00:00:00:00:00  dl_dst=00:00:00:00:00:00  dl_vlan=    0  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0  nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
48 post: wildcards=  0x3fffff  in_port=65534  dl_src=00:00:00:00:00:00  dl_dst=00:00:00:00:00:00  dl_vlan=    0  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0  nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
49 normalization changed ofp_match, details:
50  pre: wildcards=  0x3820ff  in_port=65534  dl_src=00:00:00:00:00:00  dl_dst=00:00:00:00:00:00  dl_vlan=    0  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0  nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
51 post: wildcards=  0x3fffff  in_port=65534  dl_src=00:00:00:00:00:00  dl_dst=00:00:00:00:00:00  dl_vlan=    0  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0  nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
52 normalization changed ofp_match, details:
53  pre: wildcards= 0x23820ff  in_port=65534  dl_src=00:00:00:00:00:00  dl_dst=00:00:00:00:00:00  dl_vlan=    0  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0  nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
54 post: wildcards= 0x23fffff  in_port=65534  dl_src=00:00:00:00:00:00  dl_dst=00:00:00:00:00:00  dl_vlan=    0  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0  nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
55 ])
56 AT_CLEANUP
57
58 AT_SETUP([ovs-ofctl -F nxm parse-flows])
59 AT_DATA([flows.txt], [
60 # comment
61 tcp,tp_src=123,actions=flood
62 in_port=LOCAL dl_vlan=9 dl_src=00:0A:E4:25:6B:B0 actions=drop
63 arp,nw_src=192.168.0.1 actions=drop_spoofed_arp,NORMAL
64 arp,dl_src=00:0A:E4:25:6B:B0,arp_sha=00:0A:E4:25:6B:B0 actions=drop
65 udp dl_vlan_pcp=7 idle_timeout=5 actions=strip_vlan output:0
66 tcp,nw_src=192.168.0.3,tp_dst=80 actions=set_queue:37,output:1
67 udp,nw_src=192.168.0.3,tp_dst=53 actions=pop_queue,output:1
68 cookie=0x123456789abcdef hard_timeout=10 priority=60000 actions=controller
69 actions=note:41.42.43,note:00.01.02.03.04.05.06.07,note
70 tun_id=0x1234,cookie=0x5678,actions=flood
71 actions=drop
72 tun_id=0x1234000056780000/0xffff0000ffff0000,actions=drop
73 ])
74 AT_CHECK([ovs-ofctl -F nxm parse-flows flows.txt], [0], [stdout])
75 AT_CHECK([[sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout]], [0], [dnl
76 NXT_FLOW_MOD: ADD tcp,tp_src=123 actions=FLOOD
77 NXT_FLOW_MOD: ADD in_port=65534,dl_vlan=9,dl_src=00:0a:e4:25:6b:b0 actions=drop
78 NXT_FLOW_MOD: ADD arp,nw_src=192.168.0.1 actions=drop_spoofed_arp,NORMAL
79 NXT_FLOW_MOD: ADD arp,dl_src=00:0a:e4:25:6b:b0,arp_sha=00:0a:e4:25:6b:b0 actions=drop
80 NXT_FLOW_MOD: ADD udp,dl_vlan_pcp=7 idle:5 actions=strip_vlan,output:0
81 NXT_FLOW_MOD: ADD tcp,nw_src=192.168.0.3,tp_dst=80 actions=set_queue:37,output:1
82 NXT_FLOW_MOD: ADD udp,nw_src=192.168.0.3,tp_dst=53 actions=pop_queue,output:1
83 NXT_FLOW_MOD: ADD priority=60000 cookie:0x123456789abcdef hard:10 actions=CONTROLLER:65535
84 NXT_FLOW_MOD: ADD actions=note:41.42.43.00.00.00,note:00.01.02.03.04.05.06.07.00.00.00.00.00.00,note:00.00.00.00.00.00
85 NXT_FLOW_MOD: ADD tun_id=0x1234 cookie:0x5678 actions=FLOOD
86 NXT_FLOW_MOD: ADD actions=drop
87 NXT_FLOW_MOD: ADD tun_id=0x1234000056780000/0xffff0000ffff0000 actions=drop
88 ])
89 AT_CLEANUP
90
91 AT_SETUP([ovs-ofctl -F nxm -mmm parse-flows])
92 AT_DATA([flows.txt], [[
93 # comment
94 tcp,tp_src=123,actions=flood
95 in_port=LOCAL dl_vlan=9 dl_src=00:0A:E4:25:6B:B0 actions=drop
96 arp,nw_src=192.168.0.1 actions=drop_spoofed_arp,NORMAL
97 arp,dl_src=00:0A:E4:25:6B:B0,arp_sha=00:0A:E4:25:6B:B0 actions=drop
98 udp dl_vlan_pcp=7 idle_timeout=5 actions=strip_vlan output:0
99 tcp,nw_src=192.168.0.3,tp_dst=80 actions=set_queue:37,output:1
100 udp,nw_src=192.168.0.3,tp_dst=53 actions=pop_queue,output:1
101 cookie=0x123456789abcdef hard_timeout=10 priority=60000 actions=controller
102 actions=note:41.42.43,note:00.01.02.03.04.05.06.07,note
103 tun_id=0x1234,cookie=0x5678,actions=flood
104 actions=drop
105 reg0=123,actions=move:NXM_NX_REG0[0..5]->NXM_NX_REG1[26..31],load:55->NXM_NX_REG2[0..31],move:NXM_NX_REG0[0..31]->NXM_NX_TUN_ID[0..31],move:NXM_NX_REG0[0..15]->NXM_OF_VLAN_TCI[]
106 ]])
107 AT_CHECK([ovs-ofctl -F nxm -mmm parse-flows flows.txt], [0], [stdout])
108 AT_CHECK([[sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout]], [0],
109 [[NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(06), NXM_OF_TCP_SRC(007b) actions=FLOOD
110 NXT_FLOW_MOD: ADD NXM_OF_IN_PORT(fffe), NXM_OF_ETH_SRC(000ae4256bb0), NXM_OF_VLAN_TCI_W(1009/1fff) actions=drop
111 NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(0806), NXM_OF_ARP_SPA(c0a80001) actions=drop_spoofed_arp,NORMAL
112 NXT_FLOW_MOD: ADD NXM_OF_ETH_SRC(000ae4256bb0), NXM_OF_ETH_TYPE(0806), NXM_NX_ARP_SHA(000ae4256bb0) actions=drop
113 NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(0800), NXM_OF_VLAN_TCI_W(f000/f000), NXM_OF_IP_PROTO(11) idle:5 actions=strip_vlan,output:0
114 NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(0800), NXM_OF_IP_SRC(c0a80003), NXM_OF_IP_PROTO(06), NXM_OF_TCP_DST(0050) actions=set_queue:37,output:1
115 NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(0800), NXM_OF_IP_SRC(c0a80003), NXM_OF_IP_PROTO(11), NXM_OF_UDP_DST(0035) actions=pop_queue,output:1
116 NXT_FLOW_MOD: ADD <any> cookie:0x123456789abcdef hard:10 pri:60000 actions=CONTROLLER:65535
117 NXT_FLOW_MOD: ADD <any> actions=note:41.42.43.00.00.00,note:00.01.02.03.04.05.06.07.00.00.00.00.00.00,note:00.00.00.00.00.00
118 NXT_FLOW_MOD: ADD NXM_NX_TUN_ID(0000000000001234) cookie:0x5678 actions=FLOOD
119 NXT_FLOW_MOD: ADD <any> actions=drop
120 NXT_FLOW_MOD: ADD NXM_NX_REG0(0000007b) actions=move:NXM_NX_REG0[0..5]->NXM_NX_REG1[26..31],load:0x37->NXM_NX_REG2[],move:NXM_NX_REG0[]->NXM_NX_TUN_ID[0..31],move:NXM_NX_REG0[0..15]->NXM_OF_VLAN_TCI[]
121 ]])
122 AT_CLEANUP
123
124 AT_SETUP([ovs-ofctl parse-nx-match])
125 AT_KEYWORDS([nx-match])
126 AT_DATA([nx-match.txt], [dnl
127 <any>
128
129 # in port
130 NXM_OF_IN_PORT(0000)
131 NXM_OF_IN_PORT(fffe)
132
133 # eth dst
134 NXM_OF_ETH_DST(0002e30f80a4)
135 NXM_OF_ETH_DST_W(010000000000/010000000000)
136 NXM_OF_ETH_DST_W(000000000000/010000000000)
137 NXM_OF_ETH_DST_W(ffffffffffff/010000000000)
138 NXM_OF_ETH_DST_W(0002e30f80a4/ffffffffffff)
139 NXM_OF_ETH_DST_W(0002e30f80a4/feffffffffff)
140
141 # eth src
142 NXM_OF_ETH_SRC(020898456ddb)
143
144 # eth type
145 NXM_OF_ETH_TYPE(0800)
146 NXM_OF_ETH_TYPE(0800) NXM_OF_IN_PORT(0012)
147
148 # vlan tci
149 NXM_OF_VLAN_TCI(f009)
150 NXM_OF_VLAN_TCI(f009) NXM_OF_VLAN_TCI(f009)
151 NXM_OF_VLAN_TCI(0000)           # Packets without 802.1Q header.
152 NXM_OF_VLAN_TCI(3123)           # Packets with VID=123, PCP=1.
153 NXM_OF_VLAN_TCI(0123)           # Does not make sense (but supported anyway)
154 NXM_OF_VLAN_TCI_W(1123/1fff)    # Packets with VID=123, any PCP.
155 NXM_OF_VLAN_TCI_W(f000/f000)    # Packets with any VID, PCP=7.
156 NXM_OF_VLAN_TCI_W(0000/e000)    # No 802.1Q or with VID=0
157
158 # IP TOS
159 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_TOS(f0)
160 NXM_OF_IP_TOS(f0)
161
162 # IP protocol
163 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(01)
164 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(05)
165 NXM_OF_IP_PROTO(05)
166
167 # IP source
168 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_SRC(ac100014)
169 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_SRC_W(C0a80000/FFFF0000)
170 NXM_OF_ETH_TYPE(0806) NXM_OF_IP_SRC(ac100014)
171 NXM_OF_IP_SRC_W(C0D80000/FFFF0000)
172
173 # IP destination
174 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_DST(ac100014)
175 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_DST_W(C0a88012/FFFF0000)
176 NXM_OF_IP_DST(ac100014)
177 NXM_OF_ETH_TYPE(0806) NXM_OF_IP_DST_W(C0D80000/FFFF0000)
178
179 # TCP source port
180 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(06) NXM_OF_TCP_SRC(4231)
181 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(07) NXM_OF_TCP_SRC(4231)
182
183 # TCP destination port
184 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(06) NXM_OF_TCP_DST(4231)
185 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(07) NXM_OF_TCP_DST(4231)
186
187 # UDP source port
188 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(11) NXM_OF_UDP_SRC(8732)
189 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(06) NXM_OF_UDP_SRC(7823)
190
191 # UDP destination port
192 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(11) NXM_OF_UDP_DST(1782)
193 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(02) NXM_OF_UDP_DST(1293)
194
195 # ICMP type
196 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(01) NXM_OF_ICMP_TYPE(12)
197 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(00) NXM_OF_ICMP_TYPE(10)
198
199 # ICMP code
200 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(01) NXM_OF_ICMP_CODE(12)
201 NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(00) NXM_OF_ICMP_CODE(10)
202 NXM_OF_ETH_TYPE(0800) NXM_OF_ICMP_CODE(10)
203 NXM_OF_ICMP_CODE(00)
204
205 # ARP opcode
206 NXM_OF_ETH_TYPE(0806) NXM_OF_ARP_OP(0001)
207 NXM_OF_ETH_TYPE(0806) NXM_OF_ARP_OP(1111)
208 NXM_OF_ETH_TYPE(0000) NXM_OF_ARP_OP(0001)
209 NXM_OF_ARP_OP(0001)
210 NXM_OF_ETH_TYPE(0806) NXM_OF_ARP_OP(0001) NXM_OF_ARP_OP(0001)
211
212 # ARP source protocol address
213 NXM_OF_ETH_TYPE(0806) NXM_OF_ARP_SPA(ac100014)
214 NXM_OF_ETH_TYPE(0806) NXM_OF_ARP_SPA_W(C0a81234/FFFFFF00)
215 NXM_OF_ETH_TYPE(0800) NXM_OF_ARP_SPA(ac100014)
216 NXM_OF_ARP_SPA_W(C0D8fedc/FFFF0000)
217
218 # ARP destination protocol address
219 NXM_OF_ETH_TYPE(0806) NXM_OF_ARP_TPA(ac100014)
220 NXM_OF_ETH_TYPE(0806) NXM_OF_ARP_TPA_W(C0a812fe/FFFFFF00)
221 NXM_OF_ETH_TYPE(0800) NXM_OF_ARP_TPA(ac100014)
222 NXM_OF_ARP_TPA_W(C0D80000/FFFF0000)
223
224 # ARP source hardware address
225 NXM_OF_ETH_TYPE(0806) NXM_NX_ARP_SHA(0002e30f80a4)
226 NXM_OF_ETH_TYPE(0800) NXM_NX_ARP_SHA(0002e30f80a4)
227 NXM_NX_ARP_SHA(0002e30f80a4)
228
229 # ARP destination hardware address
230 NXM_OF_ETH_TYPE(0806) NXM_NX_ARP_THA(0002e30f80a4)
231 NXM_OF_ETH_TYPE(0800) NXM_NX_ARP_THA(0002e30f80a4)
232 NXM_NX_ARP_THA(0002e30f80a4)
233
234 # Tunnel ID.
235 NXM_NX_TUN_ID(00000000abcdef01)
236 NXM_NX_TUN_ID_W(84200000abcdef01/84200000FFFFFFFF)
237
238 # Register 0.
239 NXM_NX_REG0(acebdf56)
240 NXM_NX_REG0_W(a0e0d050/f0f0f0f0)
241
242 # Invalid field number.
243 01020304(1111/2222)
244
245 # Unimplemented registers.
246 #
247 # This test assumes that at least two registers, but fewer than 16,
248 # registers are implemented.
249 00010004(12345678)
250 00010108(12345678/12345678)
251 00011e04(12345678)
252 00011f08(12345678/12345678)
253 ])
254 AT_CHECK([ovs-ofctl parse-nx-match < nx-match.txt], [0], [dnl
255 <any>
256
257 # in port
258 NXM_OF_IN_PORT(fffe)
259 NXM_OF_IN_PORT(fffe)
260
261 # eth dst
262 NXM_OF_ETH_DST(0002e30f80a4)
263 NXM_OF_ETH_DST_W(010000000000/010000000000)
264 NXM_OF_ETH_DST_W(000000000000/010000000000)
265 NXM_OF_ETH_DST_W(010000000000/010000000000)
266 NXM_OF_ETH_DST(0002e30f80a4)
267 NXM_OF_ETH_DST_W(0002e30f80a4/feffffffffff)
268
269 # eth src
270 NXM_OF_ETH_SRC(020898456ddb)
271
272 # eth type
273 NXM_OF_ETH_TYPE(0800)
274 NXM_OF_IN_PORT(0012), NXM_OF_ETH_TYPE(0800) 
275
276 # vlan tci
277 NXM_OF_VLAN_TCI(f009)
278 nx_pull_match() returned error 44010105
279 NXM_OF_VLAN_TCI(0000)
280 NXM_OF_VLAN_TCI(3123)
281 NXM_OF_VLAN_TCI(0123)
282 NXM_OF_VLAN_TCI_W(1123/1fff)
283 NXM_OF_VLAN_TCI_W(f000/f000)
284 NXM_OF_VLAN_TCI_W(0000/e000)
285
286 # IP TOS
287 NXM_OF_ETH_TYPE(0800), NXM_OF_IP_TOS(f0)
288 nx_pull_match() returned error 44010104
289
290 # IP protocol
291 NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(01)
292 NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(05)
293 nx_pull_match() returned error 44010104
294
295 # IP source
296 NXM_OF_ETH_TYPE(0800), NXM_OF_IP_SRC(ac100014)
297 NXM_OF_ETH_TYPE(0800), NXM_OF_IP_SRC_W(c0a80000/ffff0000)
298 nx_pull_match() returned error 44010104
299 nx_pull_match() returned error 44010104
300
301 # IP destination
302 NXM_OF_ETH_TYPE(0800), NXM_OF_IP_DST(ac100014)
303 NXM_OF_ETH_TYPE(0800), NXM_OF_IP_DST_W(c0a80000/ffff0000)
304 nx_pull_match() returned error 44010104
305 nx_pull_match() returned error 44010104
306
307 # TCP source port
308 NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(06), NXM_OF_TCP_SRC(4231)
309 nx_pull_match() returned error 44010104
310
311 # TCP destination port
312 NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(06), NXM_OF_TCP_DST(4231)
313 nx_pull_match() returned error 44010104
314
315 # UDP source port
316 NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(11), NXM_OF_UDP_SRC(8732)
317 nx_pull_match() returned error 44010104
318
319 # UDP destination port
320 NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(11), NXM_OF_UDP_DST(1782)
321 nx_pull_match() returned error 44010104
322
323 # ICMP type
324 NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(01), NXM_OF_ICMP_TYPE(12)
325 nx_pull_match() returned error 44010104
326
327 # ICMP code
328 NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(01), NXM_OF_ICMP_CODE(12)
329 nx_pull_match() returned error 44010104
330 nx_pull_match() returned error 44010104
331 nx_pull_match() returned error 44010104
332
333 # ARP opcode
334 NXM_OF_ETH_TYPE(0806), NXM_OF_ARP_OP(0001)
335 nx_pull_match() returned error 44010102
336 nx_pull_match() returned error 44010104
337 nx_pull_match() returned error 44010104
338 nx_pull_match() returned error 44010105
339
340 # ARP source protocol address
341 NXM_OF_ETH_TYPE(0806), NXM_OF_ARP_SPA(ac100014)
342 NXM_OF_ETH_TYPE(0806), NXM_OF_ARP_SPA_W(c0a81200/ffffff00)
343 nx_pull_match() returned error 44010104
344 nx_pull_match() returned error 44010104
345
346 # ARP destination protocol address
347 NXM_OF_ETH_TYPE(0806), NXM_OF_ARP_TPA(ac100014)
348 NXM_OF_ETH_TYPE(0806), NXM_OF_ARP_TPA_W(c0a81200/ffffff00)
349 nx_pull_match() returned error 44010104
350 nx_pull_match() returned error 44010104
351
352 # ARP source hardware address
353 NXM_OF_ETH_TYPE(0806), NXM_NX_ARP_SHA(0002e30f80a4)
354 nx_pull_match() returned error 44010104
355 nx_pull_match() returned error 44010104
356
357 # ARP destination hardware address
358 NXM_OF_ETH_TYPE(0806), NXM_NX_ARP_THA(0002e30f80a4)
359 nx_pull_match() returned error 44010104
360 nx_pull_match() returned error 44010104
361
362 # Tunnel ID.
363 NXM_NX_TUN_ID(00000000abcdef01)
364 NXM_NX_TUN_ID_W(84200000abcdef01/84200000ffffffff)
365
366 # Register 0.
367 NXM_NX_REG0(acebdf56)
368 NXM_NX_REG0_W(a0e0d050/f0f0f0f0)
369
370 # Invalid field number.
371 nx_pull_match() returned error 44010101
372
373 # Unimplemented registers.
374 #
375 # This test assumes that at least two registers, but fewer than 16,
376 # registers are implemented.
377 NXM_NX_REG0(12345678)
378 NXM_NX_REG0_W(12345678/12345678)
379 nx_pull_match() returned error 44010101
380 nx_pull_match() returned error 44010101
381 ])
382 AT_CLEANUP