Merge pull request #3431 from poettering/network-fixes

put limits on addresses and routers per link and per network
This commit is contained in:
Tom Gundersen
2016-06-08 23:10:16 +02:00
10 changed files with 161 additions and 80 deletions
+4 -1
View File
@@ -144,7 +144,10 @@ int sd_netlink_open(sd_netlink **ret) {
return 0;
}
int sd_netlink_inc_rcvbuf(const sd_netlink *const rtnl, const int size) {
int sd_netlink_inc_rcvbuf(sd_netlink *rtnl, size_t size) {
assert_return(rtnl, -EINVAL);
assert_return(!rtnl_pid_changed(rtnl), -ECHILD);
return fd_inc_rcvbuf(rtnl->fd, size);
}