diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1998-12-26 12:35:13 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1998-12-26 12:35:13 +0000 |
commit | ac04a74e55b78112d96b5d55c5443258b4090f67 (patch) | |
tree | 055cb5c519dedf49b396a67b9557098b5fc94ff5 /sys/netinet/ip_var.h | |
parent | ab21f45ce2c1facc9666e9ea8eb0772c0e60272c (diff) |
make ip_id random but ensure that ids dont repeat for some period.
Diffstat (limited to 'sys/netinet/ip_var.h')
-rw-r--r-- | sys/netinet/ip_var.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h index 77afb80f922..d249293406a 100644 --- a/sys/netinet/ip_var.h +++ b/sys/netinet/ip_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_var.h,v 1.8 1998/02/14 18:50:36 mickey Exp $ */ +/* $OpenBSD: ip_var.h,v 1.9 1998/12/26 12:35:12 provos Exp $ */ /* $NetBSD: ip_var.h,v 1.16 1996/02/13 23:43:20 christos Exp $ */ /* @@ -160,7 +160,6 @@ struct ipstat { struct ipstat ipstat; LIST_HEAD(ipqhead, ipq) ipq; /* ip reass. queue */ -u_int16_t ip_id; /* ip packet ctr, for ids */ int ip_defttl; /* default IP ttl */ int ip_ctloutput __P((int, struct socket *, int, int, struct mbuf **)); @@ -181,6 +180,8 @@ struct in_ifaddr * in_iawithaddr __P((struct in_addr, struct mbuf *)); struct in_ifaddr * ip_rtaddr __P((struct in_addr)); +u_int16_t + ip_randomid __P((void)); int ip_setmoptions __P((int, struct ip_moptions **, struct mbuf *)); void ip_slowtimo __P((void)); struct mbuf * |