control.h (224144) | control.h (225519) |
---|---|
1/*- 2 * Copyright (C) 2011 Hiroki Sato <hrs@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (C) 2011 Hiroki Sato <hrs@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/usr.sbin/rtadvd/control.h 224144 2011-07-17 19:24:54Z hrs $ | 26 * $FreeBSD: head/usr.sbin/rtadvd/control.h 225519 2011-09-12 23:52:55Z hrs $ |
27 * 28 */ 29 30#define SOCK_BACKLOG 5 31 32#define CM_MSG_MAXLEN 8192 33#define CM_VERSION 1 34#define CM_VERSION_STR "1.0" --- 25 unchanged lines hidden (view full) --- 60 size_t cp_val_len; 61 char *cp_val; 62}; 63 64int csock_open(struct sockinfo *, mode_t); 65int csock_close(struct sockinfo *); 66int csock_listen(struct sockinfo *); 67int csock_accept(struct sockinfo *); | 27 * 28 */ 29 30#define SOCK_BACKLOG 5 31 32#define CM_MSG_MAXLEN 8192 33#define CM_VERSION 1 34#define CM_VERSION_STR "1.0" --- 25 unchanged lines hidden (view full) --- 60 size_t cp_val_len; 61 char *cp_val; 62}; 63 64int csock_open(struct sockinfo *, mode_t); 65int csock_close(struct sockinfo *); 66int csock_listen(struct sockinfo *); 67int csock_accept(struct sockinfo *); |
68int cmsg_send(int, char *); 69int cmsg_recv(int, char *); | 68int cm_send(int, char *); 69int cm_recv(int, char *); |
70 | 70 |
71size_t cmsg_pl2bin(char *, struct ctrl_msg_pl *); 72struct ctrl_msg_pl *cmsg_bin2pl(char *, struct ctrl_msg_pl *); 73size_t cmsg_str2bin(char *, void *, size_t); 74void *cmsg_bin2str(char *, void *, size_t); | 71size_t cm_pl2bin(char *, struct ctrl_msg_pl *); 72struct ctrl_msg_pl *cm_bin2pl(char *, struct ctrl_msg_pl *); 73size_t cm_str2bin(char *, void *, size_t); 74void *cm_bin2str(char *, void *, size_t); |