mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
- Make sure NBAddNeighbor completed successfully
- Return the actual status instead of STATUS_SUCCESS always svn path=/branches/aicom-network-fixes/; revision=36739
This commit is contained in:
parent
23d01c2592
commit
b01ceaabdc
2 changed files with 3 additions and 3 deletions
|
@ -412,11 +412,13 @@ PNEIGHBOR_CACHE_ENTRY NBFindOrCreateNeighbor(
|
|||
TI_DbgPrint(MID_TRACE,("Packet targeted at broadcast addr\n"));
|
||||
NCE = NBAddNeighbor(Interface, Address, NULL,
|
||||
Interface->AddressLength, NUD_CONNECTED);
|
||||
if (!NCE) return NULL;
|
||||
NCE->EventTimer = 0;
|
||||
NCE->EventCount = 0;
|
||||
} else {
|
||||
NCE = NBAddNeighbor(Interface, Address, NULL,
|
||||
Interface->AddressLength, NUD_INCOMPLETE);
|
||||
if (!NCE) return NULL;
|
||||
NCE->EventTimer = 1;
|
||||
NCE->EventCount = 0;
|
||||
}
|
||||
|
|
|
@ -204,9 +204,7 @@ NTSTATUS SendFragments(
|
|||
/* Prepare next fragment for transmission and send it */
|
||||
|
||||
PrepareNextFragment(IFC);
|
||||
IPSendFragment(IFC->NdisPacket, NCE, IFC);
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
return IPSendFragment(IFC->NdisPacket, NCE, IFC);
|
||||
}
|
||||
|
||||
NTSTATUS IPSendDatagram(PIP_PACKET IPPacket, PNEIGHBOR_CACHE_ENTRY NCE,
|
||||
|
|
Loading…
Reference in a new issue