diff options
author | Jianfeng Tan <henry.tjf@antfin.com> | 2019-04-18 11:41:13 +0800 |
---|---|---|
committer | Jianfeng Tan <henry.tjf@antfin.com> | 2019-10-15 16:38:40 +0000 |
commit | b94505ecc020e63a7e5cab0f1bb5ea898ea05ec5 (patch) | |
tree | 37fac549887a8c92278fbea943c2c86292f6ff01 /pkg/abi/linux | |
parent | e3d4a6773923a884986aaa4bb272431ce27764e2 (diff) |
support /proc/net/route
This proc file reports routing information to applications inside the
container.
Signed-off-by: Jianfeng Tan <henry.tjf@antfin.com>
Change-Id: I498e47f8c4c185419befbb42d849d0b099ec71f3
Diffstat (limited to 'pkg/abi/linux')
-rw-r--r-- | pkg/abi/linux/netlink_route.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/abi/linux/netlink_route.go b/pkg/abi/linux/netlink_route.go index 152f6b144..3898d2314 100644 --- a/pkg/abi/linux/netlink_route.go +++ b/pkg/abi/linux/netlink_route.go @@ -325,3 +325,9 @@ const ( RTA_SPORT = 28 RTA_DPORT = 29 ) + +// Route flags, from include/uapi/linux/route.h. +const ( + RTF_GATEWAY = 0x2 + RTF_UP = 0x1 +) |