137241896SHiroki Sato /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 31de7b4b8SPedro F. Giffuni * 437241896SHiroki Sato * Copyright (C) 2011 Hiroki Sato <hrs@FreeBSD.org> 537241896SHiroki Sato * All rights reserved. 637241896SHiroki Sato * 737241896SHiroki Sato * Redistribution and use in source and binary forms, with or without 837241896SHiroki Sato * modification, are permitted provided that the following conditions 937241896SHiroki Sato * are met: 1037241896SHiroki Sato * 1. Redistributions of source code must retain the above copyright 1137241896SHiroki Sato * notice, this list of conditions and the following disclaimer. 1237241896SHiroki Sato * 2. Redistributions in binary form must reproduce the above copyright 1337241896SHiroki Sato * notice, this list of conditions and the following disclaimer in the 1437241896SHiroki Sato * documentation and/or other materials provided with the distribution. 1537241896SHiroki Sato * 1637241896SHiroki Sato * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 1737241896SHiroki Sato * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1837241896SHiroki Sato * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1937241896SHiroki Sato * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS 2037241896SHiroki Sato * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2137241896SHiroki Sato * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2237241896SHiroki Sato * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 2337241896SHiroki Sato * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 2437241896SHiroki Sato * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 2537241896SHiroki Sato * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 2637241896SHiroki Sato * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2737241896SHiroki Sato * 2837241896SHiroki Sato */ 2937241896SHiroki Sato 30aed37872SHiroki Sato int cm_getprop(struct ctrl_msg_pl *); 31aed37872SHiroki Sato int cm_setprop(struct ctrl_msg_pl *); 3237241896SHiroki Sato 33aed37872SHiroki Sato int cm_handler_server(int); 3437241896SHiroki Sato 3537241896SHiroki Sato void set_do_reload(int); 3637241896SHiroki Sato void set_do_reload_ifname(char *); 3737241896SHiroki Sato void set_do_shutdown(int); 3837241896SHiroki Sato void reset_do_reload(void); 3937241896SHiroki Sato void reset_do_shutdown(void); 4037241896SHiroki Sato int is_do_reload(void); 4137241896SHiroki Sato char *reload_ifname(void); 4237241896SHiroki Sato int is_do_shutdown(void); 43