diff options
author | Tom Gundersen <teg@jklm.no> | 2016-06-08 23:10:16 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2016-06-08 23:10:16 +0200 |
commit | d9c11f2b01463e33a0b453e013786b5b79182dbe (patch) | |
tree | abb611242bb5a77acefffe053b80840dfd7cd32d /src/network/networkd-route.h | |
parent | e80f080bffeab01390a086c802f7e47bd11fc369 (diff) | |
parent | 889b550f2dc27b7696781d3d9d91e8de28fd8fee (diff) |
Merge pull request #3431 from poettering/network-fixes
put limits on addresses and routers per link and per network
Diffstat (limited to 'src/network/networkd-route.h')
-rw-r--r-- | src/network/networkd-route.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/networkd-route.h b/src/network/networkd-route.h index 39de8363ed..d4e4dbac0b 100644 --- a/src/network/networkd-route.h +++ b/src/network/networkd-route.h @@ -57,10 +57,10 @@ void route_free(Route *route); int route_configure(Route *route, Link *link, sd_netlink_message_handler_t callback); int route_remove(Route *route, Link *link, sd_netlink_message_handler_t callback); -int route_get(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret); -int route_add(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret); -int route_add_foreign(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret); -int route_update(Route *route, union in_addr_union *src, unsigned char src_prefixlen, union in_addr_union *gw, union in_addr_union *prefsrc, unsigned char scope, unsigned char protocol); +int route_get(Link *link, int family, const union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret); +int route_add(Link *link, int family, const union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret); +int route_add_foreign(Link *link, int family, const union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret); +int route_update(Route *route, const union in_addr_union *src, unsigned char src_prefixlen, const union in_addr_union *gw, const union in_addr_union *prefsrc, unsigned char scope, unsigned char protocol); int route_expire_handler(sd_event_source *s, uint64_t usec, void *userdata); |