Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Don't rebase the pointers. 'm' is only allowed t...
details: https://anonhg.NetBSD.org/src/rev/d4d93b3f9f6b
branches: trunk
changeset: 359476:d4d93b3f9f6b
user: maxv <maxv%NetBSD.org@localhost>
date: Mon Feb 12 09:31:06 2018 +0000
description:
Don't rebase the pointers. 'm' is only allowed to become NULL (which
means 'processed').
diffstat:
sys/netinet/udp_usrreq.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diffs (33 lines):
diff -r 97229edd0b3d -r d4d93b3f9f6b sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c Mon Feb 12 08:22:26 2018 +0000
+++ b/sys/netinet/udp_usrreq.c Mon Feb 12 09:31:06 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udp_usrreq.c,v 1.240 2018/02/10 08:17:00 maxv Exp $ */
+/* $NetBSD: udp_usrreq.c,v 1.241 2018/02/12 09:31:06 maxv Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.240 2018/02/10 08:17:00 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.241 2018/02/12 09:31:06 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -405,14 +405,6 @@
return;
}
- ip = mtod(m, struct ip *);
- IP6_EXTHDR_GET(uh, struct udphdr *, m, iphlen, sizeof(struct udphdr));
- if (uh == NULL) {
- UDP_STATINC(UDP_STAT_HDROPS);
- return;
- }
- /* XXX Re-enforce alignment? */
-
#ifdef INET6
if (IN_MULTICAST(ip->ip_dst.s_addr) || n == 0) {
struct sockaddr_in6 src6, dst6;
Home |
Main Index |
Thread Index |
Old Index