1/*- 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 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 --- 45 unchanged lines hidden (view full) --- 54 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 55 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 58 * SUCH DAMAGE. 59 * 60 * @(#)protosw.h 8.1 (Berkeley) 6/2/93 61 * BSDI protosw.h,v 2.3 1996/10/11 16:02:40 pjd Exp |
62 * $FreeBSD: head/sys/netinet6/ip6protosw.h 269699 2014-08-08 01:57:15Z kevlo $ |
63 */ 64 65#ifndef _NETINET6_IP6PROTOSW_H_ 66#define _NETINET6_IP6PROTOSW_H_ 67 68/* 69 * Protocol switch table for IPv6. 70 * All other definitions should refer to sys/protosw.h --- 34 unchanged lines hidden (view full) --- 105 int ip6c_off; /* offset of the target proto header */ 106 struct sockaddr_in6 *ip6c_src; /* srcaddr w/ additional info */ 107 struct sockaddr_in6 *ip6c_dst; /* (final) dstaddr w/ additional info */ 108 struct in6_addr *ip6c_finaldst; /* final destination address */ 109 void *ip6c_cmdarg; /* control command dependent data */ 110 u_int8_t ip6c_nxt; /* final next header field */ 111}; 112 |
113#ifdef _KERNEL |
114extern struct protosw inet6sw[]; |
115#endif 116 117#endif /* !_NETINET6_IP6PROTOSW_H_ */ |