summaryrefslogtreecommitdiff
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-04-25 17:55:53 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-04-25 17:55:53 +0000
commit948b72c9a135a04cadb7d569abfe4a17c69116cb (patch)
tree4ddde61c6f85bfa035976cb676fb6832cbb7e452 /sys/netinet/udp_usrreq.c
parent92631af20d38789c1d412f4010fbe288e4abac35 (diff)
csum -> csum_flags
ok krw@ canacar@
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index af11cdd1c51..3c449120b65 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp_usrreq.c,v 1.102 2004/08/10 20:11:04 markus Exp $ */
+/* $OpenBSD: udp_usrreq.c,v 1.103 2005/04/25 17:55:52 brad Exp $ */
/* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */
/*
@@ -289,8 +289,8 @@ udp_input(struct mbuf *m, ...)
} else
#endif /* INET6 */
if (uh->uh_sum) {
- if ((m->m_pkthdr.csum & M_UDP_CSUM_IN_OK) == 0) {
- if (m->m_pkthdr.csum & M_UDP_CSUM_IN_BAD) {
+ if ((m->m_pkthdr.csum_flags & M_UDP_CSUM_IN_OK) == 0) {
+ if (m->m_pkthdr.csum_flags & M_UDP_CSUM_IN_BAD) {
udpstat.udps_badsum++;
udpstat.udps_inhwcsum++;
m_freem(m);
@@ -304,7 +304,7 @@ udp_input(struct mbuf *m, ...)
return;
}
} else {
- m->m_pkthdr.csum &= ~M_UDP_CSUM_IN_OK;
+ m->m_pkthdr.csum_flags &= ~M_UDP_CSUM_IN_OK;
udpstat.udps_inhwcsum++;
}
} else
@@ -990,7 +990,7 @@ udp_output(struct mbuf *m, ...)
* until ip_output() or hardware (if it exists).
*/
if (udpcksum) {
- m->m_pkthdr.csum |= M_UDPV4_CSUM_OUT;
+ m->m_pkthdr.csum_flags |= M_UDPV4_CSUM_OUT;
ui->ui_sum = in_cksum_phdr(ui->ui_src.s_addr,
ui->ui_dst.s_addr, htons((u_int16_t)len +
sizeof (struct udphdr) + IPPROTO_UDP));