Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet initialize ip_hl for ipsec policy lookup. PR ke...
details: https://anonhg.NetBSD.org/src/rev/2dc10a6b5870
branches: trunk
changeset: 551545:2dc10a6b5870
user: itojun <itojun%NetBSD.org@localhost>
date: Mon Sep 08 02:06:34 2003 +0000
description:
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 a8157458d4d1 -r 2dc10a6b5870 sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c Mon Sep 08 01:56:33 2003 +0000
+++ b/sys/netinet/tcp_subr.c Mon Sep 08 02:06:34 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_subr.c,v 1.152 2003/09/06 03:36:31 itojun Exp $ */
+/* $NetBSD: tcp_subr.c,v 1.153 2003/09/08 02:06:34 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -98,7 +98,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.152 2003/09/06 03:36:31 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.153 2003/09/08 02:06:34 itojun Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -455,6 +455,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