Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/netinet Pull up revision 1.153 (requested by itojun...
details: https://anonhg.NetBSD.org/src/rev/786414c39268
branches: netbsd-1-6
changeset: 530666:786414c39268
user: tron <tron%NetBSD.org@localhost>
date: Tue Sep 09 19:23:19 2003 +0000
description:
Pull up revision 1.153 (requested by itojun in ticket #1452):
initialize ip_hl for ipsec policy lookup. PR kern/22715
diffstat:
sys/netinet/tcp_subr.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r c634e6ac74cd -r 786414c39268 sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c Tue Sep 09 19:11:09 2003 +0000
+++ b/sys/netinet/tcp_subr.c Tue Sep 09 19:23:19 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_subr.c,v 1.127.4.2 2003/09/05 13:42:31 tron Exp $ */
+/* $NetBSD: tcp_subr.c,v 1.127.4.3 2003/09/09 19:23:19 tron Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.127.4.2 2003/09/05 13:42:31 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.127.4.3 2003/09/09 19:23:19 tron Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -438,6 +438,7 @@
{
struct ipovly *ipov;
mtod(m, struct ip *)->ip_v = 4;
+ mtod(m, struct ip *)->ip_hl = hlen >> 2;
ipov = mtod(m, struct ipovly *);
ipov->ih_pr = IPPROTO_TCP;
ipov->ih_len = htons(sizeof(struct tcphdr));
Home |
Main Index |
Thread Index |
Old Index