Use ip_randomid(), dependent on either __NetBSD__ preprocessor

token or FreeBSD RANDOM_IP_ID config option.
This commit is contained in:
jonathan 2003-11-14 07:15:28 +00:00
parent a03a5696d5
commit ae4accd0de
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: xform_ipip.c,v 1.5 2003/10/06 22:05:15 tls Exp $ */
/* $NetBSD: xform_ipip.c,v 1.6 2003/11/14 07:15:28 jonathan Exp $ */
/* $FreeBSD: src/sys/netipsec/xform_ipip.c,v 1.3.2.1 2003/01/24 05:11:36 sam Exp $ */
/* $OpenBSD: ip_ipip.c,v 1.25 2002/06/10 18:04:55 itojun Exp $ */
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: xform_ipip.c,v 1.5 2003/10/06 22:05:15 tls Exp $");
__KERNEL_RCSID(0, "$NetBSD: xform_ipip.c,v 1.6 2003/11/14 07:15:28 jonathan Exp $");
/*
* IP-inside-IP processing
@ -484,7 +484,7 @@ ipip_output(
ipo->ip_src = saidx->src.sin.sin_addr;
ipo->ip_dst = saidx->dst.sin.sin_addr;
#ifdef RANDOM_IP_ID
#if defined(__NetBSD__) || defined(RANDOM_IP_ID)
ipo->ip_id = ip_randomid();
#else
ipo->ip_id = htons(ip_id++);