]> git.proxmox.com Git - mirror_iproute2.git/commit
ip: add RTA_MARK support
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 21 Jul 2010 09:42:50 +0000 (11:42 +0200)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Mon, 23 Aug 2010 15:41:25 +0000 (08:41 -0700)
commitb0373bfbbcc82fa68d3c7f0507cf4b1d8c54268b
tree21f9c2d9e96f6715ec87f36c04b5fd8dac60021a
parent04a9fc0a50f9a7677f22c9746cf2f4aadc2c8257
ip: add RTA_MARK support

Adds support for RTA_MARK rt attribute added in linux-2.6.36

$ ip route get ADDR mark 4
192.168.20.110 dev eth1  src 192.168.20.108  mark 4
    cache  mtu 1500 advmss 1460 hoplimit 64

$ ip route get 192.168.20.108 from ADDR iif STRING mark 256
local 192.168.20.108 from 192.168.20.110 dev lo  src 192.168.20.108  mark 0x100
    cache <local,src-direct>  iif eth1

$ ip route list cache [ADDR] mark NUMBER

Hexadecimal output if mark >= 16
null marks are not displayed.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
ip/iproute.c