mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
Pass ECC
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7460 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
7b2207f058
commit
b2c0a17556
@ -535,19 +535,19 @@ Ip4AccpetFrame (
|
|||||||
// fragment if its head has MF (more fragment) set, or it starts
|
// fragment if its head has MF (more fragment) set, or it starts
|
||||||
// at non-zero byte.
|
// 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
|
// Drop the fragment if DF is set but it is fragmented. Gateway
|
||||||
// need to send a type 4 destination unreache ICMP message here.
|
// 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;
|
goto RESTART;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// The length of all but the last fragments is in the unit of 8 bytes.
|
// 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;
|
goto RESTART;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user