summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_var.h
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1999-12-06 00:43:07 +0000
committerarchie <archie@FreeBSD.org>1999-12-06 00:43:07 +0000
commita35284d781617f9cc0ed2732744007cbbd5b3e75 (patch)
treeed4ccc9be688881857acbd7860fc6783bdb2a34b /sys/netinet/ip_var.h
parente4171de86a0a3c0ac24ac0ad201e38461964474b (diff)
downloadFreeBSD-src-a35284d781617f9cc0ed2732744007cbbd5b3e75.zip
FreeBSD-src-a35284d781617f9cc0ed2732744007cbbd5b3e75.tar.gz
Miscellaneous fixes/cleanups relating to ipfw and divert(4):
- Implement 'ipfw tee' (finally) - Divert packets by calling new function divert_packet() directly instead of going through protosw[]. - Replace kludgey global variable 'ip_divert_port' with a function parameter to divert_packet() - Replace kludgey global variable 'frag_divert_port' with a function parameter to ip_reass() - style(9) fixes Reviewed by: julian, green
Diffstat (limited to 'sys/netinet/ip_var.h')
-rw-r--r--sys/netinet/ip_var.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h
index 1b69ec2..c56a340 100644
--- a/sys/netinet/ip_var.h
+++ b/sys/netinet/ip_var.h
@@ -62,8 +62,8 @@ struct ipq {
struct mbuf *ipq_frags; /* to ip headers of fragments */
struct in_addr ipq_src,ipq_dst;
#ifdef IPDIVERT
- u_short ipq_divert; /* divert protocol port */
- u_short ipq_div_cookie; /* divert protocol cookie */
+ u_int32_t ipq_div_info; /* ipfw divert port & flags */
+ u_int16_t ipq_div_cookie; /* ipfw divert cookie */
#endif
};
@@ -179,9 +179,9 @@ void ip_rsvp_force_done __P((struct socket *));
#ifdef IPDIVERT
void div_init __P((void));
void div_input __P((struct mbuf *, int));
+void divert_packet __P((struct mbuf *, int, int));
extern struct pr_usrreqs div_usrreqs;
-extern u_short ip_divert_port;
-extern u_short ip_divert_cookie;
+extern u_int16_t ip_divert_cookie;
#endif
extern struct sockaddr_in *ip_fw_fwd_addr;
OpenPOWER on IntegriCloud