diff options
author | Thomas Gschwantner <tharre3@gmail.com> | 2019-09-29 11:58:56 +0200 |
---|---|---|
committer | Thomas Gschwantner <tharre3@gmail.com> | 2019-09-29 11:58:56 +0200 |
commit | 798e822030728c56bbb07f4444bdf74771ebeb5b (patch) | |
tree | c724162f26f6b950c12e150e7f30866a4b151772 /netlink.c | |
parent | Rename struct ip_pool to be more descriptive (diff) | |
download | wg-dynamic-tg/netlink_race.tar.xz wg-dynamic-tg/netlink_race.zip |
Netlink race testtg/netlink_race
Diffstat (limited to 'netlink.c')
-rw-r--r-- | netlink.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -49,7 +49,8 @@ enum wgdevice_attribute { enum wgpeer_flag { WGPEER_F_REMOVE_ME = 1U << 0, - WGPEER_F_REPLACE_ALLOWEDIPS = 1U << 1 + WGPEER_F_REPLACE_ALLOWEDIPS = 1U << 1, + WGPEER_F_NO_CREATE = 1U << 2, }; enum wgpeer_attribute { WGPEER_A_UNSPEC, @@ -531,6 +532,8 @@ again: goto toobig_peers; if (peer->flags & WGPEER_REMOVE_ME) flags |= WGPEER_F_REMOVE_ME; + if (peer->flags & WGPEER_NO_CREATE) + flags |= WGPEER_F_NO_CREATE; if (!allowedip) { if (peer->flags & WGPEER_REPLACE_ALLOWEDIPS) flags |= WGPEER_F_REPLACE_ALLOWEDIPS; |