Have slaacd(8) share information on receiving a MTU advertisement with
authorbket <bket@openbsd.org>
Fri, 27 Jul 2018 06:23:08 +0000 (06:23 +0000)
committerbket <bket@openbsd.org>
Fri, 27 Jul 2018 06:23:08 +0000 (06:23 +0000)
slaacctl(8).

OK florian@

sbin/slaacd/engine.c
sbin/slaacd/slaacd.h

index 228e057..a212ffd 100644 (file)
@@ -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 <florian@openbsd.org>
@@ -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));
 
index e230643..05dff3b 100644 (file)
@@ -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 <florian@openbsd.org>
@@ -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 {