in_pcb.h (73109) | in_pcb.h (78064) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1990, 1993 3 * The Regents of the University of California. 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)in_pcb.h 8.1 (Berkeley) 6/10/93 | 1/* 2 * Copyright (c) 1982, 1986, 1990, 1993 3 * The Regents of the University of California. 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)in_pcb.h 8.1 (Berkeley) 6/10/93 |
34 * $FreeBSD: head/sys/netinet/in_pcb.h 73109 2001-02-26 21:19:47Z jlemon $ | 34 * $FreeBSD: head/sys/netinet/in_pcb.h 78064 2001-06-11 12:39:29Z ume $ |
35 */ 36 37#ifndef _NETINET_IN_PCB_H_ 38#define _NETINET_IN_PCB_H_ 39 40#include <sys/queue.h> 41 42 --- 178 unchanged lines hidden (view full) --- 221#define INP_RECVDSTADDR 0x04 /* receive IP dst address */ 222#define INP_HDRINCL 0x08 /* user supplies entire IP header */ 223#define INP_HIGHPORT 0x10 /* user wants "high" port binding */ 224#define INP_LOWPORT 0x20 /* user wants "low" port binding */ 225#define INP_ANONPORT 0x40 /* port chosen for user */ 226#define INP_RECVIF 0x80 /* receive incoming interface */ 227#define INP_MTUDISC 0x100 /* user can do MTU discovery */ 228#define INP_FAITH 0x200 /* accept FAITH'ed connections */ | 35 */ 36 37#ifndef _NETINET_IN_PCB_H_ 38#define _NETINET_IN_PCB_H_ 39 40#include <sys/queue.h> 41 42 --- 178 unchanged lines hidden (view full) --- 221#define INP_RECVDSTADDR 0x04 /* receive IP dst address */ 222#define INP_HDRINCL 0x08 /* user supplies entire IP header */ 223#define INP_HIGHPORT 0x10 /* user wants "high" port binding */ 224#define INP_LOWPORT 0x20 /* user wants "low" port binding */ 225#define INP_ANONPORT 0x40 /* port chosen for user */ 226#define INP_RECVIF 0x80 /* receive incoming interface */ 227#define INP_MTUDISC 0x100 /* user can do MTU discovery */ 228#define INP_FAITH 0x200 /* accept FAITH'ed connections */ |
229#define IN6P_PKTINFO 0x010000 230#define IN6P_HOPLIMIT 0x020000 231#define IN6P_NEXTHOP 0x040000 232#define IN6P_HOPOPTS 0x080000 233#define IN6P_DSTOPTS 0x100000 234#define IN6P_RTHDR 0x200000 235#define IN6P_BINDV6ONLY 0x400000 | 229 230#define IN6P_IPV6_V6ONLY 0x008000 /* restrict AF_INET6 socket for v6 */ 231 232#define IN6P_PKTINFO 0x010000 /* receive IP6 dst and I/F */ 233#define IN6P_HOPLIMIT 0x020000 /* receive hoplimit */ 234#define IN6P_HOPOPTS 0x040000 /* receive hop-by-hop options */ 235#define IN6P_DSTOPTS 0x080000 /* receive dst options after rthdr */ 236#define IN6P_RTHDR 0x100000 /* receive routing header */ 237#define IN6P_RTHDRDSTOPTS 0x200000 /* receive dstoptions before rthdr */ 238#define IN6P_AUTOFLOWLABEL 0x800000 /* attach flowlabel automatically */ 239#define IN6P_BINDV6ONLY 0x10000000 /* do not grab IPv4 traffic */ 240 |
236#define INP_CONTROLOPTS (INP_RECVOPTS|INP_RECVRETOPTS|INP_RECVDSTADDR|\ 237 INP_RECVIF|\ | 241#define INP_CONTROLOPTS (INP_RECVOPTS|INP_RECVRETOPTS|INP_RECVDSTADDR|\ 242 INP_RECVIF|\ |
238 IN6P_PKTINFO|IN6P_HOPLIMIT|IN6P_NEXTHOP|\ 239 IN6P_HOPOPTS|IN6P_DSTOPTS|IN6P_RTHDR) | 243 IN6P_PKTINFO|IN6P_HOPLIMIT|IN6P_HOPOPTS|\ 244 IN6P_DSTOPTS|IN6P_RTHDR|IN6P_RTHDRDSTOPTS|\ 245 IN6P_AUTOFLOWLABEL) 246#define INP_UNMAPPABLEOPTS (IN6P_HOPOPTS|IN6P_DSTOPTS|IN6P_RTHDR|\ 247 IN6P_AUTOFLOWLABEL) |
240 | 248 |
241#define INP_UNMAPPABLEOPTS (IN6P_HOPOPTS|IN6P_DSTOPTS|IN6P_RTHDR) 242 | |
243 /* for KAME src sync over BSD*'s */ | 249 /* for KAME src sync over BSD*'s */ |
244#define IN6P_RECVOPTS INP_RECVOPTS 245#define IN6P_RECVRETOPTS INP_RECVRETOPTS 246#define IN6P_RECVDSTADDR INP_RECVDSTADDR 247#define IN6P_HDRINCL INP_HDRINCL | |
248#define IN6P_HIGHPORT INP_HIGHPORT 249#define IN6P_LOWPORT INP_LOWPORT 250#define IN6P_ANONPORT INP_ANONPORT 251#define IN6P_RECVIF INP_RECVIF 252#define IN6P_MTUDISC INP_MTUDISC 253#define IN6P_FAITH INP_FAITH 254#define IN6P_CONTROLOPTS INP_CONTROLOPTS 255 /* --- 47 unchanged lines hidden --- | 250#define IN6P_HIGHPORT INP_HIGHPORT 251#define IN6P_LOWPORT INP_LOWPORT 252#define IN6P_ANONPORT INP_ANONPORT 253#define IN6P_RECVIF INP_RECVIF 254#define IN6P_MTUDISC INP_MTUDISC 255#define IN6P_FAITH INP_FAITH 256#define IN6P_CONTROLOPTS INP_CONTROLOPTS 257 /* --- 47 unchanged lines hidden --- |