1*1db8d1f8SAna Kukec /*- 2*1db8d1f8SAna Kukec * Copyright (c) 2009-2010 Ana Kukec <anchie@FreeBSD.org> 3*1db8d1f8SAna Kukec * All rights reserved. 4*1db8d1f8SAna Kukec * 5*1db8d1f8SAna Kukec * Redistribution and use in source and binary forms, with or without 6*1db8d1f8SAna Kukec * modification, are permitted provided that the following conditions 7*1db8d1f8SAna Kukec * are met: 8*1db8d1f8SAna Kukec * 1. Redistributions of source code must retain the above copyright 9*1db8d1f8SAna Kukec * notice, this list of conditions and the following disclaimer. 10*1db8d1f8SAna Kukec * 2. Redistributions in binary form must reproduce the above copyright 11*1db8d1f8SAna Kukec * notice, this list of conditions and the following disclaimer in the 12*1db8d1f8SAna Kukec * documentation and/or other materials provided with the distribution. 13*1db8d1f8SAna Kukec * 14*1db8d1f8SAna Kukec * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15*1db8d1f8SAna Kukec * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*1db8d1f8SAna Kukec * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*1db8d1f8SAna Kukec * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*1db8d1f8SAna Kukec * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*1db8d1f8SAna Kukec * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*1db8d1f8SAna Kukec * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*1db8d1f8SAna Kukec * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*1db8d1f8SAna Kukec * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*1db8d1f8SAna Kukec * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*1db8d1f8SAna Kukec * SUCH DAMAGE. 25*1db8d1f8SAna Kukec * 26*1db8d1f8SAna Kukec * $FreeBSD$ 27*1db8d1f8SAna Kukec */ 28*1db8d1f8SAna Kukec 29*1db8d1f8SAna Kukec #ifndef _NETINET6_SEND_H_ 30*1db8d1f8SAna Kukec #define _NETINET6_SEND_H_ 31*1db8d1f8SAna Kukec 32*1db8d1f8SAna Kukec #define SND_OUT 0 /* Outgoing traffic */ 33*1db8d1f8SAna Kukec #define SND_IN 1 /* Incoming traffic. */ 34*1db8d1f8SAna Kukec 35*1db8d1f8SAna Kukec struct sockaddr_send { 36*1db8d1f8SAna Kukec unsigned char send_len; /* total length */ 37*1db8d1f8SAna Kukec sa_family_t send_family; /* address family */ 38*1db8d1f8SAna Kukec int send_direction; 39*1db8d1f8SAna Kukec int send_ifidx; 40*1db8d1f8SAna Kukec char send_zero[8]; 41*1db8d1f8SAna Kukec }; 42*1db8d1f8SAna Kukec 43*1db8d1f8SAna Kukec extern int (*send_sendso_input_hook)(struct mbuf *, struct ifnet *, int, int); 44*1db8d1f8SAna Kukec 45*1db8d1f8SAna Kukec #endif /* _NETINET6_SEND_H_ */ 46