blob: 84dea12caad5d079c92f7d32fadfb2ae0e68512a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# meta nfproto ipv4 rt nexthop 192.168.0.1
inet test-inet output
[ meta load nfproto => reg 1 ]
[ cmp eq reg 1 0x00000002 ]
[ rt load nexthop4 => reg 1 ]
[ cmp eq reg 1 0x0100a8c0 ]
# rt ip6 nexthop fd00::1
inet test-inet output
[ rt load nexthop6 => reg 1 ]
[ cmp eq reg 1 0x000000fd 0x00000000 0x00000000 0x01000000 ]
# tcp option maxseg size set rt mtu
inet test-inet output
[ rt load tcpmss => reg 1 ]
[ byteorder reg 1 = hton(reg 1, 2, 2) ]
[ exthdr write tcpopt reg 1 => 2b @ 2 + 2 ]
|