diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2008-05-09 02:56:37 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2008-05-09 02:56:37 +0000 |
commit | 5dc5e5de07068e27353f70fa51fe1fdd4165b68e (patch) | |
tree | 603fb0e086b78e5b92de28bf65f22a35f1471167 /sys/netinet/in_pcb.h | |
parent | 4d2f26f40d056a33f87aed5cd294af089da41a7a (diff) |
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@
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r-- | sys/netinet/in_pcb.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 |