diff options
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/interface.c b/interface.c index f150f7d..593b049 100644 --- a/interface.c +++ b/interface.c @@ -1076,6 +1076,15 @@ interface_set_down(struct interface *iface) return 0; } +int +interface_renew(struct interface *iface) +{ + if (iface->state == IFS_TEARDOWN || iface->state == IFS_DOWN) + return -1; + + return interface_proto_event(iface->proto, PROTO_CMD_RENEW, false); +} + void interface_start_pending(void) { |