From 05fd61d8906ef4d0aa7696144112acedfe33c40e Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Mon, 29 May 2006 20:42:28 +0000 Subject: Make savecontrol functions more generic and use them now for raw IP too. Additionally add the IP_RECVIF option which returns the interface a packet was received on. OK markus@ norby@ --- sys/netinet/in_pcb.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sys/netinet/in_pcb.h') diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index e6a12d0c55e..a2f70a5cd4e 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: in_pcb.h,v 1.52 2005/12/10 01:30:14 deraadt Exp $ */ +/* $OpenBSD: in_pcb.h,v 1.53 2006/05/29 20:42:27 claudio Exp $ */ /* $NetBSD: in_pcb.h,v 1.14 1996/02/13 23:42:00 christos Exp $ */ /* @@ -164,12 +164,13 @@ struct inpcbtable { #define INP_RXSRCRT 0x010 #define INP_HOPLIMIT 0x020 -#define INP_CONTROLOPTS (INP_RECVOPTS|INP_RECVRETOPTS|INP_RECVDSTADDR| \ - INP_RXSRCRT|INP_HOPLIMIT) - #define INP_HDRINCL 0x008 /* user supplies entire IP header */ #define INP_HIGHPORT 0x010 /* user wants "high" port binding */ #define INP_LOWPORT 0x020 /* user wants "low" port binding */ +#define INP_RECVIF 0x080 /* receive incoming interface */ + +#define INP_CONTROLOPTS (INP_RECVOPTS|INP_RECVRETOPTS|INP_RECVDSTADDR| \ + INP_RXSRCRT|INP_HOPLIMIT|INP_RECVIF) /* * These flags' values should be determined by either the transport -- cgit v1.2.3