diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-04-25 17:55:53 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-04-25 17:55:53 +0000 |
commit | 948b72c9a135a04cadb7d569abfe4a17c69116cb (patch) | |
tree | 4ddde61c6f85bfa035976cb676fb6832cbb7e452 /sys/dev/pci/if_vge.c | |
parent | 92631af20d38789c1d412f4010fbe288e4abac35 (diff) |
csum -> csum_flags
ok krw@ canacar@
Diffstat (limited to 'sys/dev/pci/if_vge.c')
-rw-r--r-- | sys/dev/pci/if_vge.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_vge.c b/sys/dev/pci/if_vge.c index debc85bd2bb..92c814f5389 100644 --- a/sys/dev/pci/if_vge.c +++ b/sys/dev/pci/if_vge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vge.c,v 1.10 2005/04/08 15:15:52 brad Exp $ */ +/* $OpenBSD: if_vge.c,v 1.11 2005/04/25 17:55:51 brad Exp $ */ /* $FreeBSD: if_vge.c,v 1.3 2004/09/11 22:13:25 wpaul Exp $ */ /* * Copyright (c) 2004 @@ -1124,12 +1124,12 @@ vge_rxeof(struct vge_softc *sc) /* Check IP header checksum */ if ((rxctl & VGE_RDCTL_IPPKT) && (rxctl & VGE_RDCTL_IPCSUMOK)) - m->m_pkthdr.csum |= M_IPV4_CSUM_IN_OK; + m->m_pkthdr.csum_flags |= M_IPV4_CSUM_IN_OK; /* Check TCP/UDP checksum */ - if (rxctl & (VGE_RDCTL_TCPPKT|VGE_RDCTL_UDPPKT) && + if ((rxctl & (VGE_RDCTL_TCPPKT|VGE_RDCTL_UDPPKT)) && (rxctl & VGE_RDCTL_PROTOCSUMOK)) - m->m_pkthdr.csum |= M_TCP_CSUM_IN_OK | M_UDP_CSUM_IN_OK; + m->m_pkthdr.csum_flags |= M_TCP_CSUM_IN_OK | M_UDP_CSUM_IN_OK; #ifdef VGE_VLAN if (rxstat & VGE_RDSTS_VTAG) |