From b5c88cc30493c9a649fa2bf6c581a4df4e41ed64 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Fri, 8 Apr 2005 15:15:53 +0000 Subject: fix parenthesis --- sys/dev/pci/if_vge.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/if_vge.c b/sys/dev/pci/if_vge.c index 3680c564ed2..debc85bd2bb 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.9 2005/04/08 13:36:48 brad Exp $ */ +/* $OpenBSD: if_vge.c,v 1.10 2005/04/08 15:15:52 brad Exp $ */ /* $FreeBSD: if_vge.c,v 1.3 2004/09/11 22:13:25 wpaul Exp $ */ /* * Copyright (c) 2004 @@ -1122,13 +1122,13 @@ vge_rxeof(struct vge_softc *sc) /* Do RX checksumming */ /* Check IP header checksum */ - if (rxctl & VGE_RDCTL_IPPKT) && + if ((rxctl & VGE_RDCTL_IPPKT) && (rxctl & VGE_RDCTL_IPCSUMOK)) m->m_pkthdr.csum |= M_IPV4_CSUM_IN_OK; /* Check TCP/UDP checksum */ if (rxctl & (VGE_RDCTL_TCPPKT|VGE_RDCTL_UDPPKT) && - rxctl & VGE_RDCTL_PROTOCSUMOK) { + (rxctl & VGE_RDCTL_PROTOCSUMOK)) m->m_pkthdr.csum |= M_TCP_CSUM_IN_OK | M_UDP_CSUM_IN_OK; #ifdef VGE_VLAN -- cgit v1.2.3