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