diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2001-07-03 03:34:43 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2001-07-03 03:34:43 +0000 |
commit | cb0964c5669b8b278225fca7a9e10e6a92e0c68c (patch) | |
tree | fa92eb6f8a4e62d83d3d507a7ea24d04da47febf /sys/net/pfvar.h | |
parent | 7de1a6cacc8f5a738dfb30ded1dfcfca88433690 (diff) |
add DIOCNATLOOK ioctl and pf_natlook structure, this enables a userland
process recieving rdr'ed connections to look up the original destination
of the connection before it was redirected - this enables the writing
of transparent proxies.
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r-- | sys/net/pfvar.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index a60d86fd6ae..f5fb7a1f478 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfvar.h,v 1.28 2001/07/01 23:04:44 dhartmei Exp $ */ +/* $OpenBSD: pfvar.h,v 1.29 2001/07/03 03:34:42 beck Exp $ */ /* * Copyright (c) 2001, Daniel Hartmeier @@ -103,6 +103,20 @@ struct pf_state { u_int8_t log; }; +struct pf_natlook { + u_int32_t saddr; + u_int32_t daddr; + u_int32_t rsaddr; + u_int32_t rdaddr; + u_int16_t sport; + u_int16_t dport; + u_int16_t rsport; + u_int16_t rdport; + u_int8_t proto; + u_int8_t direction; +}; + + struct pf_nat { char ifname[IFNAMSIZ]; struct ifnet *ifp; @@ -231,6 +245,7 @@ struct pfioc_if { #define DIOCSETSTATUSIF _IOWR('D', 20, struct pfioc_if) #define DIOCGETSTATUS _IOWR('D', 21, struct pf_status) #define DIOCCLRSTATUS _IO ('D', 22) +#define DIOCNATLOOK _IOWR('D', 23, struct pf_natlook) #ifdef _KERNEL |