/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/ |
D | IkePacket.c | 30 IKE_PACKET *IkePacket; in IkePacketAlloc() local 32 IkePacket = (IKE_PACKET *) AllocateZeroPool (sizeof (IKE_PACKET)); in IkePacketAlloc() 33 if (IkePacket == NULL) { in IkePacketAlloc() 37 IkePacket->RefCount = 1; in IkePacketAlloc() 38 InitializeListHead (&IkePacket->PayloadList); in IkePacketAlloc() 40 IkePacket->Header = (IKE_HEADER *) AllocateZeroPool (sizeof (IKE_HEADER)); in IkePacketAlloc() 41 if (IkePacket->Header == NULL) { in IkePacketAlloc() 42 FreePool (IkePacket); in IkePacketAlloc() 45 return IkePacket; in IkePacketAlloc() 56 IN IKE_PACKET *IkePacket in IkePacketFree() argument [all …]
|
D | IkeCommon.h | 47 #define IKE_PACKET_APPEND_PAYLOAD(IkePacket,IkePayload) \ argument 49 InsertTailList(&(IkePacket)->PayloadList, &(IkePayload)->ByPacket); \ 52 #define IKE_PACKET_REMOVE_PAYLOAD(IkePacket,IkePayload) \ argument 57 #define IKE_PACKET_END_PAYLOAD(IkePacket, Node) \ argument 58 Node = GetFirstNode (&(IkePacket)->PayloadList); \ 59 while (!IsNodeAtEnd (&(IkePacket)->PayloadList, Node)) { \ 60 Node = GetNextNode (&(IkePacket)->PayloadList, Node); \
|
D | IkeService.c | 607 IKE_PACKET *IkePacket; in IkeDispatch() local 614 IkePacket = NULL; in IkeDispatch() 636 IkePacket = IkePacketFromNetbuf (Packet); in IkeDispatch() 638 if (IkePacket == NULL) { in IkeDispatch() 645 *(UINT32 *) IkePacket->RemotePeerIp.Addr = HTONL ((*(UINT32 *) EndPoint->RemoteAddr.Addr)); in IkeDispatch() 648 &IkePacket->RemotePeerIp, in IkeDispatch() 656 Status = IkeOpenOutputUdp (UdpService, &IkePacket->RemotePeerIp); in IkeDispatch() 662 IkeHdr = IkePacket->Header; in IkeDispatch() 677 Exchange->HandleSa (UdpService, IkePacket); in IkeDispatch() 682 Exchange->HandleChildSa (UdpService, IkePacket); in IkeDispatch() [all …]
|
D | IkePacket.h | 43 IN IKE_PACKET *IkePacket 78 IN IKE_PACKET *IkePacket,
|
D | IkeService.h | 96 IN IKE_PACKET *IkePacket 111 IN IKE_PACKET *IkePacket 126 IN IKE_PACKET *IkePacket
|
D | IpSecDxe.inf | 48 IkePacket.h 49 IkePacket.c
|
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/Ikev2/ |
D | Info.c | 43 IKE_PACKET *IkePacket; in Ikev2InfoGenerator() local 49 IkePacket = IkePacketAlloc (); in Ikev2InfoGenerator() 50 ASSERT (IkePacket != NULL); in Ikev2InfoGenerator() 55 IkePacket->Header->ExchangeType = IKEV2_EXCHANGE_TYPE_INFO; in Ikev2InfoGenerator() 56 IkePacket->Header->Version = (UINT8) (2 << 4); in Ikev2InfoGenerator() 68 IkePacket->Header->MessageId = InfoContext->MessageId; in Ikev2InfoGenerator() 69 IkePacket->Header->InitiatorCookie = IkeSaSession->InitiatorCookie; in Ikev2InfoGenerator() 70 IkePacket->Header->ResponderCookie = IkeSaSession->ResponderCookie; in Ikev2InfoGenerator() 71 IkePacket->Header->NextPayload = IKEV2_PAYLOAD_TYPE_NONE; in Ikev2InfoGenerator() 72 IkePacket->Header->Flags = IKE_HEADER_FLAGS_RESPOND; in Ikev2InfoGenerator() [all …]
|
D | ChildSa.c | 39 IKE_PACKET *IkePacket; in Ikev2CreateChildGenerator() local 44 IkePacket = IkePacketAlloc(); in Ikev2CreateChildGenerator() 47 if (IkePacket == NULL) { in Ikev2CreateChildGenerator() 58 IkePacket->Header->Version = (UINT8) (2 << 4); in Ikev2CreateChildGenerator() 59 IkePacket->Header->NextPayload = IKEV2_PAYLOAD_TYPE_NOTIFY; in Ikev2CreateChildGenerator() 60 IkePacket->Header->ExchangeType = IKE_XCG_TYPE_CREATE_CHILD_SA; in Ikev2CreateChildGenerator() 66 IkePacket->Header->InitiatorCookie = ChildSaSession->IkeSaSession->InitiatorCookie; in Ikev2CreateChildGenerator() 67 IkePacket->Header->ResponderCookie = ChildSaSession->IkeSaSession->ResponderCookie; in Ikev2CreateChildGenerator() 70 IkePacket->Header->MessageId = *MessageId; in Ikev2CreateChildGenerator() 72 IkePacket->Header->MessageId = ChildSaSession->MessageId; in Ikev2CreateChildGenerator() [all …]
|
D | Exchange.c | 47 IKE_PACKET *IkePacket; in Ikev2NegotiateSa() local 54 IkePacket = NULL; in Ikev2NegotiateSa() 119 IkePacket = Handler.Generator ((UINT8 *) IkeSaSession, NULL); in Ikev2NegotiateSa() 120 if (IkePacket == NULL) { in Ikev2NegotiateSa() 125 Status = Ikev2SendIkePacket (UdpService, (UINT8 *) SessionCommon, IkePacket, 0); in Ikev2NegotiateSa() 140 if (IkePacket != NULL) { in Ikev2NegotiateSa() 141 IkePacketFree (IkePacket); in Ikev2NegotiateSa() 176 IKE_PACKET *IkePacket; in Ikev2NegotiateChildSa() local 181 IkePacket = NULL; in Ikev2NegotiateChildSa() 230 IkePacket = mIkev2CreateChild.Generator ((UINT8 *) ChildSaSession, NULL); in Ikev2NegotiateChildSa() [all …]
|
D | Sa.c | 86 IKE_PACKET *IkePacket; in Ikev2InitPskGenerator() local 104 IkePacket = IkePacketAlloc (); in Ikev2InitPskGenerator() 105 ASSERT (IkePacket != NULL); in Ikev2InitPskGenerator() 110 IkePacket->Header->ExchangeType = IKEV2_EXCHANGE_TYPE_INIT; in Ikev2InitPskGenerator() 111 IkePacket->Header->InitiatorCookie = IkeSaSession->InitiatorCookie; in Ikev2InitPskGenerator() 112 IkePacket->Header->ResponderCookie = IkeSaSession->ResponderCookie; in Ikev2InitPskGenerator() 113 IkePacket->Header->Version = (UINT8) (2 << 4); in Ikev2InitPskGenerator() 114 IkePacket->Header->MessageId = 0; in Ikev2InitPskGenerator() 117 IkePacket->Header->Flags = IKE_HEADER_FLAGS_INIT; in Ikev2InitPskGenerator() 119 IkePacket->Header->Flags = IKE_HEADER_FLAGS_RESPOND; in Ikev2InitPskGenerator() [all …]
|
D | Payload.c | 1560 IN IKE_PACKET *IkePacket in ClearAllPayloads() argument 1568 while (!IsListEmpty (&IkePacket->PayloadList)) { in ClearAllPayloads() 1569 PayloadEntry = IkePacket->PayloadList.ForwardLink; in ClearAllPayloads() 1571 IKE_PACKET_REMOVE_PAYLOAD (IkePacket, IkePayload); in ClearAllPayloads() 2228 IN OUT IKE_PACKET *IkePacket, in Ikev2DecodePacket() argument 2247 Status = Ikev2DecryptPacket (SessionCommon, IkePacket, IkeType); in Ikev2DecodePacket() 2258 if (IkePacket->Header->NextPayload == IKEV2_PAYLOAD_TYPE_NONE) { in Ikev2DecodePacket() 2260 (IkePacket->Header->ExchangeType == IKEV2_EXCHANGE_TYPE_INFO) in Ikev2DecodePacket() 2274 RemainBytes = IkePacket->PayloadTotalSize; in Ikev2DecodePacket() 2285 if (IkePacket->Header->ExchangeType == IKEV2_EXCHANGE_TYPE_INIT) { in Ikev2DecodePacket() [all …]
|
D | Utility.h | 328 IN IKE_PACKET *IkePacket 341 IN IKE_PACKET *IkePacket 815 IN OUT IKE_PACKET *IkePacket, 835 IN OUT IKE_PACKET *IkePacket 857 IN OUT IKE_PACKET *IkePacket, 881 IN OUT IKE_PACKET *IkePacket, 897 IN IKE_PACKET *IkePacket, 919 IN IKE_PACKET *IkePacket,
|
D | Ikev2.h | 245 IN IKE_PACKET *IkePacket
|
D | Utility.c | 1050 IN IKE_PACKET *IkePacket in Ikev2ChildExchangeRequestType() argument 1059 NET_LIST_FOR_EACH (Entry, &(IkePacket)->PayloadList) { in Ikev2ChildExchangeRequestType() 1129 IN IKE_PACKET *IkePacket in Ikev2ChildExchangeRekeySpi() argument
|