diff options
author | jgong5 <jgong5@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-06 06:08:46 +0000 |
---|---|---|
committer | jgong5 <jgong5@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-06 06:08:46 +0000 |
commit | b2c0a17556ce881deb595e1765c106bd6b0f9761 (patch) | |
tree | 73a0737415ba0553e573d63e30f426e2d3fcc37f /MdeModulePkg/Universal/Network | |
parent | 7b2207f058ea04261a33bd73e54c8b3e6f4715b6 (diff) | |
download | edk2-b2c0a17556ce881deb595e1765c106bd6b0f9761.zip edk2-b2c0a17556ce881deb595e1765c106bd6b0f9761.tar.gz edk2-b2c0a17556ce881deb595e1765c106bd6b0f9761.tar.bz2 |
Pass ECC
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7460 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network')
-rw-r--r-- | MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c index 9aa426f..0f4948d 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c @@ -535,19 +535,19 @@ Ip4AccpetFrame ( // fragment if its head has MF (more fragment) set, or it starts
// at non-zero byte.
//
- if ((Head->Fragment & IP4_HEAD_MF_MASK) || (Info->Start != 0)) {
+ if (((Head->Fragment & IP4_HEAD_MF_MASK) != 0) || (Info->Start != 0)) {
//
// Drop the fragment if DF is set but it is fragmented. Gateway
// need to send a type 4 destination unreache ICMP message here.
//
- if (Head->Fragment & IP4_HEAD_DF_MASK) {
+ if ((Head->Fragment & IP4_HEAD_DF_MASK) != 0) {
goto RESTART;
}
//
// The length of all but the last fragments is in the unit of 8 bytes.
//
- if ((Head->Fragment & IP4_HEAD_MF_MASK) && (Info->Length % 8 != 0)) {
+ if (((Head->Fragment & IP4_HEAD_MF_MASK) != 0) && (Info->Length % 8 != 0)) {
goto RESTART;
}
|