diff options
author | darrenr <darrenr@FreeBSD.org> | 2005-04-27 03:48:10 +0000 |
---|---|---|
committer | darrenr <darrenr@FreeBSD.org> | 2005-04-27 03:48:10 +0000 |
commit | ff47a7263bc3a202f86630386d14e68b6908f01b (patch) | |
tree | 19d1e5e6e7086b05df082f9ee6f5a8d1a8cf2085 /sys/contrib/ipfilter/netinet/ip_proxy.h | |
parent | 094168eea88feb1b86ba40b08a1abd0120502a38 (diff) | |
download | FreeBSD-src-ff47a7263bc3a202f86630386d14e68b6908f01b.zip FreeBSD-src-ff47a7263bc3a202f86630386d14e68b6908f01b.tar.gz |
- Comment out duplicate rcsid strings in *.c files
- Move SIOCPROXY from ip_nat.h to ip_proxy.h and fix ip_proxy.h so that it
can be easily compiled into kdump, et al.
Diffstat (limited to 'sys/contrib/ipfilter/netinet/ip_proxy.h')
-rw-r--r-- | sys/contrib/ipfilter/netinet/ip_proxy.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/sys/contrib/ipfilter/netinet/ip_proxy.h b/sys/contrib/ipfilter/netinet/ip_proxy.h index ac5cb83..ae4826d 100644 --- a/sys/contrib/ipfilter/netinet/ip_proxy.h +++ b/sys/contrib/ipfilter/netinet/ip_proxy.h @@ -16,6 +16,12 @@ #define SOLARIS (defined(sun) && (defined(__svr4__) || defined(__SVR4))) #endif +#if defined(__STDC__) || defined(__GNUC__) +#define SIOCPROXY _IOWR('r', 64, struct ap_control) +#else +#define SIOCPROXY _IOWR(r, 64, struct ap_control) +#endif + #ifndef APR_LABELLEN #define APR_LABELLEN 16 #endif @@ -23,15 +29,16 @@ struct nat; struct ipnat; +struct ipstate; typedef struct ap_tcp { u_short apt_sport; /* source port */ u_short apt_dport; /* destination port */ short apt_sel[2]; /* {seq,ack}{off,min} set selector */ short apt_seqoff[2]; /* sequence # difference */ - tcp_seq apt_seqmin[2]; /* don't change seq-off until after this */ + u_32_t apt_seqmin[2]; /* don't change seq-off until after this */ short apt_ackoff[2]; /* sequence # difference */ - tcp_seq apt_ackmin[2]; /* don't change seq-off until after this */ + u_32_t apt_ackmin[2]; /* don't change seq-off until after this */ u_char apt_state[2]; /* connection state */ } ap_tcp_t; @@ -198,7 +205,7 @@ typedef struct raudio_s { u_32_t rap_sbf; /* flag to indicate which of the 19 bytes have * been filled */ - tcp_seq rap_sseq; + u_32_t rap_sseq; } raudio_t; #define RA_ID_END 0 @@ -234,7 +241,7 @@ typedef struct ipsec_pxy { int ipsc_rckset; ipnat_t ipsc_rule; nat_t *ipsc_nat; - ipstate_t *ipsc_state; + struct ipstate *ipsc_state; } ipsec_pxy_t; /* @@ -254,7 +261,7 @@ typedef struct pptp_side { typedef struct pptp_pxy { ipnat_t pptp_rule; nat_t *pptp_nat; - ipstate_t *pptp_state; + struct ipstate *pptp_state; u_short pptp_call[2]; pptp_side_t pptp_side[2]; } pptp_pxy_t; |