From 5dc5e5de07068e27353f70fa51fe1fdd4165b68e Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Fri, 9 May 2008 02:56:37 +0000 Subject: IP_RECVDSTPORT, allows you to get the destination port of UDP datagrams for pf(4) diverted packets; based on patch by Scot Loach; ok beck@ --- sys/netinet/in_pcb.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/netinet/in_pcb.h') diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index 14ccabc67f2..df3e7d46476 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: in_pcb.h,v 1.60 2008/05/09 02:44:54 markus Exp $ */ +/* $OpenBSD: in_pcb.h,v 1.61 2008/05/09 02:56:36 markus Exp $ */ /* $NetBSD: in_pcb.h,v 1.14 1996/02/13 23:42:00 christos Exp $ */ /* @@ -170,9 +170,10 @@ struct inpcbtable { #define INP_LOWPORT 0x020 /* user wants "low" port binding */ #define INP_RECVIF 0x080 /* receive incoming interface */ #define INP_RECVTTL 0x040 /* receive incoming IP TTL */ +#define INP_RECVDSTPORT 0x200 /* receive IP dst addr before rdr */ #define INP_CONTROLOPTS (INP_RECVOPTS|INP_RECVRETOPTS|INP_RECVDSTADDR| \ - INP_RXSRCRT|INP_HOPLIMIT|INP_RECVIF|INP_RECVTTL) + INP_RXSRCRT|INP_HOPLIMIT|INP_RECVIF|INP_RECVTTL|INP_RECVDSTPORT) /* * These flags' values should be determined by either the transport -- cgit v1.2.3