11db8d1f8SAna Kukec /*- 21db8d1f8SAna Kukec * Copyright (c) 2009-2010 Ana Kukec <anchie@FreeBSD.org> 31db8d1f8SAna Kukec * All rights reserved. 41db8d1f8SAna Kukec * 51db8d1f8SAna Kukec * Redistribution and use in source and binary forms, with or without 61db8d1f8SAna Kukec * modification, are permitted provided that the following conditions 71db8d1f8SAna Kukec * are met: 81db8d1f8SAna Kukec * 1. Redistributions of source code must retain the above copyright 91db8d1f8SAna Kukec * notice, this list of conditions and the following disclaimer. 101db8d1f8SAna Kukec * 2. Redistributions in binary form must reproduce the above copyright 111db8d1f8SAna Kukec * notice, this list of conditions and the following disclaimer in the 121db8d1f8SAna Kukec * documentation and/or other materials provided with the distribution. 131db8d1f8SAna Kukec * 141db8d1f8SAna Kukec * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 151db8d1f8SAna Kukec * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 161db8d1f8SAna Kukec * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 171db8d1f8SAna Kukec * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 181db8d1f8SAna Kukec * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 191db8d1f8SAna Kukec * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 201db8d1f8SAna Kukec * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 211db8d1f8SAna Kukec * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 221db8d1f8SAna Kukec * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 231db8d1f8SAna Kukec * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 241db8d1f8SAna Kukec * SUCH DAMAGE. 251db8d1f8SAna Kukec * 261db8d1f8SAna Kukec * $FreeBSD$ 271db8d1f8SAna Kukec */ 281db8d1f8SAna Kukec 291db8d1f8SAna Kukec #ifndef _NETINET6_SEND_H_ 301db8d1f8SAna Kukec #define _NETINET6_SEND_H_ 311db8d1f8SAna Kukec 321db8d1f8SAna Kukec #define SND_OUT 0 /* Outgoing traffic */ 331db8d1f8SAna Kukec #define SND_IN 1 /* Incoming traffic. */ 341db8d1f8SAna Kukec 351db8d1f8SAna Kukec struct sockaddr_send { 36*7de7a904SHiroki Sato uint8_t send_len; /* total length */ 371db8d1f8SAna Kukec sa_family_t send_family; /* address family */ 381db8d1f8SAna Kukec int send_direction; 391db8d1f8SAna Kukec int send_ifidx; 401db8d1f8SAna Kukec char send_zero[8]; 411db8d1f8SAna Kukec }; 421db8d1f8SAna Kukec 431db8d1f8SAna Kukec extern int (*send_sendso_input_hook)(struct mbuf *, struct ifnet *, int, int); 441db8d1f8SAna Kukec 451db8d1f8SAna Kukec #endif /* _NETINET6_SEND_H_ */ 46