Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet udp6_input: correct loopback test.
details: https://anonhg.NetBSD.org/src/rev/21e4e8e8db32
branches: trunk
changeset: 572103:21e4e8e8db32
user: yamt <yamt%NetBSD.org@localhost>
date: Sat Dec 18 15:31:26 2004 +0000
description:
udp6_input: correct loopback test.
diffstat:
sys/netinet/udp_usrreq.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 1c3efbd65e89 -r 21e4e8e8db32 sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c Sat Dec 18 11:55:02 2004 +0000
+++ b/sys/netinet/udp_usrreq.c Sat Dec 18 15:31:26 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udp_usrreq.c,v 1.126 2004/12/17 22:54:52 christos Exp $ */
+/* $NetBSD: udp_usrreq.c,v 1.127 2004/12/18 15:31:26 yamt Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.126 2004/12/17 22:54:52 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.127 2004/12/18 15:31:26 yamt Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -430,9 +430,8 @@
* Checksum extended UDP header and data. Maybe skip checksum
* on loopback interfaces.
*/
- if (__predict_true(!(m->m_pkthdr.rcvif->if_flags &
- IFF_LOOPBACK) ||
- udp_do_loopback_cksum)) {
+ if (__predict_true((m->m_flags & M_LOOP) == 0 ||
+ udp_do_loopback_cksum)) {
if (uh->uh_sum == 0) {
udp6stat.udp6s_nosum++;
goto bad;
Home |
Main Index |
Thread Index |
Old Index