From: bket Date: Fri, 27 Jul 2018 06:23:08 +0000 (+0000) Subject: Have slaacd(8) share information on receiving a MTU advertisement with X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=884d1deebbb557322050fb785a78ace488a12984;p=openbsd Have slaacd(8) share information on receiving a MTU advertisement with slaacctl(8). OK florian@ --- diff --git a/sbin/slaacd/engine.c b/sbin/slaacd/engine.c index 228e0576409..a212ffde8db 100644 --- a/sbin/slaacd/engine.c +++ b/sbin/slaacd/engine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: engine.c,v 1.30 2018/07/27 06:20:01 bket Exp $ */ +/* $OpenBSD: engine.c,v 1.31 2018/07/27 06:23:08 bket Exp $ */ /* * Copyright (c) 2017 Florian Obser @@ -888,6 +888,7 @@ send_interface_info(struct slaacd_iface *iface, pid_t pid) cei_ra.router_lifetime = ra->router_lifetime; cei_ra.reachable_time = ra->reachable_time; cei_ra.retrans_time = ra->retrans_time; + cei_ra.mtu = ra->mtu; engine_imsg_compose_frontend(IMSG_CTL_SHOW_INTERFACE_INFO_RA, pid, &cei_ra, sizeof(cei_ra)); diff --git a/sbin/slaacd/slaacd.h b/sbin/slaacd/slaacd.h index e2306438fda..05dff3b6e1d 100644 --- a/sbin/slaacd/slaacd.h +++ b/sbin/slaacd/slaacd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: slaacd.h,v 1.19 2018/07/23 17:25:52 florian Exp $ */ +/* $OpenBSD: slaacd.h,v 1.20 2018/07/27 06:23:08 bket Exp $ */ /* * Copyright (c) 2017 Florian Obser @@ -111,6 +111,7 @@ struct ctl_engine_info_ra { uint16_t router_lifetime; /* in seconds */ uint32_t reachable_time; /* in milliseconds */ uint32_t retrans_time; /* in milliseconds */ + uint32_t mtu; }; struct ctl_engine_info_ra_prefix {