summaryrefslogtreecommitdiff
path: root/server/NetlinkCommands.h
diff options
context:
space:
mode:
authorTyler Wear <twear@quicinc.com>2019-12-05 15:01:48 -0800
committerLorenzo Colitti <lorenzo@google.com>2020-01-23 19:21:41 +0900
commitfa94a2733c0aa535a3ccd779f96c1598552acbc1 (patch)
tree6f5e0a494b43b7bb940b71938faecd68de1cadcf /server/NetlinkCommands.h
parent7e1ee774e981a34832a44d6911b6fb5f61f4c901 (diff)
downloadnetd-fa94a2733c0aa535a3ccd779f96c1598552acbc1.tar.gz
netd: Route MTU
- Route may include optional MTU parameter - Change route is added so routes don't need to be deleted then re-added - Add/Del/Change functions to pass route info as parcel Bug: 142892223 Test: new unit tests Change-Id: Idc32ecb0520b1f4136b3fe0e3f7b6800fb3005a6
Diffstat (limited to 'server/NetlinkCommands.h')
-rw-r--r--server/NetlinkCommands.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/NetlinkCommands.h b/server/NetlinkCommands.h
index c07194dc..11fb8e00 100644
--- a/server/NetlinkCommands.h
+++ b/server/NetlinkCommands.h
@@ -28,6 +28,7 @@ const sockaddr_nl KERNEL_NLADDR = {AF_NETLINK, 0, 0, 0};
const uint16_t NETLINK_REQUEST_FLAGS = NLM_F_REQUEST | NLM_F_ACK;
const uint16_t NETLINK_ROUTE_CREATE_FLAGS = NETLINK_REQUEST_FLAGS | NLM_F_CREATE | NLM_F_EXCL;
+const uint16_t NETLINK_ROUTE_REPLACE_FLAGS = NETLINK_REQUEST_FLAGS | NLM_F_REPLACE;
// Don't create rules with NLM_F_EXCL, because operations such as changing network permissions rely
// on make-before-break. The kernel did not complain about duplicate rules until ~4.9, at which
// point it started returning EEXIST. See for example b/69607866 . We can't just ignore the EEXIST