1211501Sanchie/*- 2211501Sanchie * Copyright (c) 2009-2010 Ana Kukec <anchie@FreeBSD.org> 3211501Sanchie * All rights reserved. 4211501Sanchie * 5211501Sanchie * Redistribution and use in source and binary forms, with or without 6211501Sanchie * modification, are permitted provided that the following conditions 7211501Sanchie * are met: 8211501Sanchie * 1. Redistributions of source code must retain the above copyright 9211501Sanchie * notice, this list of conditions and the following disclaimer. 10211501Sanchie * 2. Redistributions in binary form must reproduce the above copyright 11211501Sanchie * notice, this list of conditions and the following disclaimer in the 12211501Sanchie * documentation and/or other materials provided with the distribution. 13211501Sanchie * 14211501Sanchie * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15211501Sanchie * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16211501Sanchie * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17211501Sanchie * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18211501Sanchie * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19211501Sanchie * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20211501Sanchie * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21211501Sanchie * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22211501Sanchie * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23211501Sanchie * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24211501Sanchie * SUCH DAMAGE. 25211501Sanchie * 26211501Sanchie * $FreeBSD$ 27211501Sanchie */ 28211501Sanchie 29211501Sanchie#ifndef _NETINET6_SEND_H_ 30211501Sanchie#define _NETINET6_SEND_H_ 31211501Sanchie 32211501Sanchie#define SND_OUT 0 /* Outgoing traffic */ 33211501Sanchie#define SND_IN 1 /* Incoming traffic. */ 34211501Sanchie 35211501Sanchiestruct sockaddr_send { 36222712Shrs uint8_t send_len; /* total length */ 37211501Sanchie sa_family_t send_family; /* address family */ 38211501Sanchie int send_direction; 39211501Sanchie int send_ifidx; 40211501Sanchie char send_zero[8]; 41211501Sanchie}; 42211501Sanchie 43211501Sanchieextern int (*send_sendso_input_hook)(struct mbuf *, struct ifnet *, int, int); 44211501Sanchie 45211501Sanchie#endif /* _NETINET6_SEND_H_ */ 46