From b94505ecc020e63a7e5cab0f1bb5ea898ea05ec5 Mon Sep 17 00:00:00 2001 From: Jianfeng Tan Date: Thu, 18 Apr 2019 11:41:13 +0800 Subject: support /proc/net/route This proc file reports routing information to applications inside the container. Signed-off-by: Jianfeng Tan Change-Id: I498e47f8c4c185419befbb42d849d0b099ec71f3 --- pkg/abi/linux/netlink_route.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkg/abi/linux/netlink_route.go') 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 +) -- cgit v1.2.3