Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet/udp_usrreq.c,v retrieving revision 1.75.2.7 retrieving revision 1.75.2.8 diff -u -p -r1.75.2.7 -r1.75.2.8 --- src/sys/netinet/udp_usrreq.c 2002/06/20 03:49:01 1.75.2.7 +++ src/sys/netinet/udp_usrreq.c 2002/08/01 02:46:50 1.75.2.8 @@ -1,4 +1,4 @@ -/* $NetBSD: udp_usrreq.c,v 1.75.2.7 2002/06/20 03:49:01 nathanw Exp $ */ +/* $NetBSD: udp_usrreq.c,v 1.75.2.8 2002/08/01 02:46:50 nathanw Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -65,7 +65,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.75.2.7 2002/06/20 03:49:01 nathanw Exp $"); +__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.75.2.8 2002/08/01 02:46:50 nathanw Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -262,6 +262,7 @@ udp_input(m, va_alist) return; } #endif + KASSERT(UDP_HDR_ALIGNED_P(uh)); /* destination port of 0 is illegal, based on RFC768. */ if (uh->uh_dport == 0) @@ -418,6 +419,7 @@ udp6_input(mp, offp, proto) return IPPROTO_DONE; } #endif + KASSERT(UDP_HDR_ALIGNED_P(uh)); ulen = ntohs((u_short)uh->uh_ulen); /* * RFC2675 section 4: jumbograms will have 0 in the UDP header field,