Home
last modified time | relevance | path

Searched refs:IpIf (Results 1 – 19 of 19) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/
DIp4Common.c35 IN IP4_INTERFACE *IpIf in Ip4GetNetCast() argument
38 if (IpAddr == IpIf->Ip) { in Ip4GetNetCast()
41 } else if (IpAddr == IpIf->SubnetBrdcast) { in Ip4GetNetCast()
44 } else if (IpAddr == IpIf->NetBrdcast) { in Ip4GetNetCast()
77 IP4_INTERFACE *IpIf; in Ip4GetHostCast() local
91 IpIf = NET_LIST_USER_STRUCT (Entry, IP4_INTERFACE, Link); in Ip4GetHostCast()
97 if (!IpIf->Configured || IP4_IS_BROADCAST (Ip4GetNetCast (Src, IpIf))) { in Ip4GetHostCast()
101 if ((Class = Ip4GetNetCast (Dst, IpIf)) > Type) { in Ip4GetHostCast()
113 IpIf = Ip4FindNet (IpSb, Src); in Ip4GetHostCast()
115 if (IpIf != NULL && !IP4_IS_BROADCAST (Ip4GetNetCast (Src, IpIf))) { in Ip4GetHostCast()
[all …]
DIp4Output.c111 IP4_INTERFACE *IpIf; in Ip4SelectInterface() local
120 IpIf = Ip4FindNet (IpSb, Dst); in Ip4SelectInterface()
122 if ((IpIf != NULL) && (IpIf->Ip != IP4_ALLZERO_ADDRESS)) { in Ip4SelectInterface()
123 return IpIf; in Ip4SelectInterface()
129 IpIf = Ip4FindInterface (IpSb, Src); in Ip4SelectInterface()
131 if ((IpIf != NULL) && (IpIf->Ip != IP4_ALLZERO_ADDRESS)) { in Ip4SelectInterface()
132 return IpIf; in Ip4SelectInterface()
142 IpIf = NET_LIST_USER_STRUCT (Entry, IP4_INTERFACE, Link); in Ip4SelectInterface()
144 if (IpIf->Configured && ((Selected == NULL) || (Selected->Ip == 0))) { in Ip4SelectInterface()
145 Selected = IpIf; in Ip4SelectInterface()
[all …]
DIp4Impl.c479 IP4_INTERFACE *IpIf; in Ip4ServiceConfigMnp() local
496 IpIf = NET_LIST_USER_STRUCT (Entry, IP4_INTERFACE, Link); in Ip4ServiceConfigMnp()
497 IpIf->PromiscRecv = FALSE; in Ip4ServiceConfigMnp()
499 NET_LIST_FOR_EACH (ProtoEntry, &IpIf->IpInstances) { in Ip4ServiceConfigMnp()
503 IpIf->PromiscRecv = TRUE; in Ip4ServiceConfigMnp()
593 IP4_INTERFACE *IpIf; in Ip4ConfigProtocol() local
646 IpIf = Ip4FindStationAddress (IpSb, Ip, Netmask); in Ip4ConfigProtocol()
648 if (IpIf != NULL) { in Ip4ConfigProtocol()
649 NET_GET_REF (IpIf); in Ip4ConfigProtocol()
652 IpIf = Ip4CreateInterface (IpSb->Mnp, IpSb->Controller, IpSb->Image); in Ip4ConfigProtocol()
[all …]
DIp4Icmp.c106 IP4_INTERFACE *IpIf; in Ip4ProcessIcmpRedirect() local
115 IpIf = Ip4FindInterface (IpSb, NTOHL (Icmp->IpHead.Src)); in Ip4ProcessIcmpRedirect()
123 if ((IpIf == NULL) || !IP4_NET_EQUAL (Gateway, IpIf->Ip, IpIf->SubnetMask)) { in Ip4ProcessIcmpRedirect()
131 NET_LIST_FOR_EACH (Entry, &IpIf->IpInstances) { in Ip4ProcessIcmpRedirect()
DIp4Config2Impl.c103 IP4_INTERFACE *IpIf; in Ip4Config2OnPolicyChanged() local
129 IpIf = Ip4CreateInterface (IpSb->Mnp, IpSb->Controller, IpSb->Image); in Ip4Config2OnPolicyChanged()
130 if (IpIf == NULL) { in Ip4Config2OnPolicyChanged()
136 Ip4FreeInterface (IpIf, NULL); in Ip4Config2OnPolicyChanged()
140 IpSb->DefaultInterface = IpIf; in Ip4Config2OnPolicyChanged()
141 InsertHeadList (&IpSb->Interfaces, &IpIf->Link); in Ip4Config2OnPolicyChanged()
143 Ip4ReceiveFrame (IpIf, NULL, Ip4AccpetFrame, IpSb); in Ip4Config2OnPolicyChanged()
483 IP4_INTERFACE *IpIf; in Ip4Config2SetDefaultAddr() local
490 IpIf = IpSb->DefaultInterface; in Ip4Config2SetDefaultAddr()
491 ASSERT (IpIf != NULL); in Ip4Config2SetDefaultAddr()
[all …]
DIp4Input.c1367 IN IP4_INTERFACE *IpIf in Ip4InterfaceEnquePacket() argument
1401 if (IpIf->Ip == IP4_ALLZERO_ADDRESS) { in Ip4InterfaceEnquePacket()
1405 LocalType = Ip4GetNetCast (Head->Dst, IpIf); in Ip4InterfaceEnquePacket()
1407 if ((LocalType == 0) && IpIf->PromiscRecv) { in Ip4InterfaceEnquePacket()
1428 NET_LIST_FOR_EACH (Entry, &IpIf->IpInstances) { in Ip4InterfaceEnquePacket()
1461 IN IP4_INTERFACE *IpIf in Ip4InterfaceDeliverPacket() argument
1467 NET_LIST_FOR_EACH (Entry, &IpIf->IpInstances) { in Ip4InterfaceDeliverPacket()
1506 IP4_INTERFACE *IpIf; in Ip4Demultiplex() local
1516 IpIf = NET_LIST_USER_STRUCT (Entry, IP4_INTERFACE, Link); in Ip4Demultiplex()
1518 if (IpIf->Configured) { in Ip4Demultiplex()
[all …]
DIp4Driver.c680 IP4_INTERFACE *IpIf; in Ip4DriverBindingStop() local
740 IpIf = Ip4CreateInterface (IpSb->Mnp, IpSb->Controller, IpSb->Image); in Ip4DriverBindingStop()
741 if (IpIf == NULL) { in Ip4DriverBindingStop()
746 Ip4FreeInterface (IpIf, NULL); in Ip4DriverBindingStop()
750 IpSb->DefaultInterface = IpIf; in Ip4DriverBindingStop()
751 InsertHeadList (&IpSb->Interfaces, &IpIf->Link); in Ip4DriverBindingStop()
753 Ip4ReceiveFrame (IpIf, NULL, Ip4AccpetFrame, IpSb); in Ip4DriverBindingStop()
DIp4Output.h93 IN IP4_INTERFACE *IpIf,
DIp4Common.h95 IN IP4_INTERFACE *IpIf
DIp4Input.h185 IN IP4_INTERFACE *IpIf
/device/linaro/bootloader/edk2/NetworkPkg/Ip6Dxe/
DIp6Output.c42 IP6_INTERFACE *IpIf; in Ip6CandidateSource() local
68 IpIf = NET_LIST_USER_STRUCT (Entry, IP6_INTERFACE, Link); in Ip6CandidateSource()
70 NET_LIST_FOR_EACH (Entry2, &IpIf->AddressList) { in Ip6CandidateSource()
300 IP6_INTERFACE *IpIf; in Ip6SelectInterface() local
311 Exist = Ip6IsOneOfSetAddress (IpSb, Source, &IpIf, NULL); in Ip6SelectInterface()
314 return IpIf; in Ip6SelectInterface()
325 Ip6IsOneOfSetAddress (IpSb, &SelectedSource, &IpIf, NULL); in Ip6SelectInterface()
328 return IpIf; in Ip6SelectInterface()
494 IP6_INTERFACE *IpIf; in Ip6Output() local
560 IpIf = Interface; in Ip6Output()
[all …]
DIp6Nd.c284 IP6_INTERFACE *IpIf; in Ip6DestroyPrefixListEntry() local
308 IpIf = NET_LIST_USER_STRUCT_S (Entry, IP6_INTERFACE, Link, IP6_INTERFACE_SIGNATURE); in Ip6DestroyPrefixListEntry()
310 …Ip6RemoveAddr (IpSb, &IpIf->AddressList, &IpIf->AddressCount, &PrefixEntry->Prefix, PrefixEntry->P… in Ip6DestroyPrefixListEntry()
814 IN IP6_INTERFACE *IpIf, in Ip6OnDADFinished() argument
826 IpSb = IpIf->Service; in Ip6OnDADFinished()
838 IpIf->Configured = TRUE; in Ip6OnDADFinished()
894 Ip6AddAddr (IpIf, AddrInfo); in Ip6OnDADFinished()
908 IpIf->Configured = TRUE; in Ip6OnDADFinished()
970 IN IP6_INTERFACE *IpIf, in Ip6InitDADProcess() argument
982 NET_CHECK_SIGNATURE (IpIf, IP6_INTERFACE_SIGNATURE); in Ip6InitDADProcess()
[all …]
DIp6Common.c323 IN OUT IP6_INTERFACE *IpIf, in Ip6AddAddr() argument
327 InsertHeadList (&IpIf->AddressList, &AddrInfo->Link); in Ip6AddAddr()
328 IpIf->AddressCount++; in Ip6AddAddr()
518 IP6_INTERFACE *IpIf; in Ip6IsOneOfSetAddress() local
537 IpIf = NET_LIST_USER_STRUCT_S (Entry, IP6_INTERFACE, Link, IP6_INTERFACE_SIGNATURE); in Ip6IsOneOfSetAddress()
539 NET_LIST_FOR_EACH (Entry2, &IpIf->AddressList) { in Ip6IsOneOfSetAddress()
544 *Interface = IpIf; in Ip6IsOneOfSetAddress()
DIp6Impl.c61 IP6_INTERFACE *IpIf; in EfiIp6GetModeData() local
73 IpIf = IpInstance->Interface; in EfiIp6GetModeData()
135 if (IpIf->Configured || NetIp6IsUnspecifiedAddr (&Config->DestinationAddress)) { in EfiIp6GetModeData()
354 IP6_INTERFACE *IpIf; in Ip6ConfigProtocol() local
414 AddrOk = Ip6IsOneOfSetAddress (IpSb, &Source, &IpIf, &AddressInfo); in Ip6ConfigProtocol()
429 NET_GET_REF (IpIf); in Ip6ConfigProtocol()
430 IpInstance->Interface = IpIf; in Ip6ConfigProtocol()
431 InsertTailList (&IpIf->IpInstances, &IpInstance->AddrLink); in Ip6ConfigProtocol()
516 IP6_INTERFACE *IpIf; in Ip6ServiceConfigMnp() local
533 IpIf = NET_LIST_USER_STRUCT (Entry, IP6_INTERFACE, Link); in Ip6ServiceConfigMnp()
[all …]
DIp6ConfigImpl.c53 IP6_INTERFACE *IpIf; in Ip6ConfigOnPolicyChanged() local
100 IpIf = NET_LIST_USER_STRUCT_S (Entry, IP6_INTERFACE, Link, IP6_INTERFACE_SIGNATURE); in Ip6ConfigOnPolicyChanged()
102 NET_LIST_FOR_EACH_SAFE (Entry2, Next, &IpIf->DelayJoinList) { in Ip6ConfigOnPolicyChanged()
110 NET_LIST_FOR_EACH_SAFE (Entry2, Next, &IpIf->DupAddrDetectList) { in Ip6ConfigOnPolicyChanged()
117 Ip6OnDADFinished (FALSE, IpIf, DadEntry); in Ip6ConfigOnPolicyChanged()
914 IP6_INTERFACE *IpIf; in Ip6ConfigSetMaunualAddress() local
966 IpIf = NET_LIST_USER_STRUCT_S (Entry, IP6_INTERFACE, Link, IP6_INTERFACE_SIGNATURE); in Ip6ConfigSetMaunualAddress()
968 NET_LIST_FOR_EACH (Entry2, &IpIf->AddressList) { in Ip6ConfigSetMaunualAddress()
1108 IpIf = IpSb->DefaultInterface; in Ip6ConfigSetMaunualAddress()
1121 &IpIf->AddressList, in Ip6ConfigSetMaunualAddress()
[all …]
DIp6Input.c1580 IN IP6_INTERFACE *IpIf in Ip6InterfaceEnquePacket() argument
1597 if (IpIf->PromiscRecv) { in Ip6InterfaceEnquePacket()
1614 NET_LIST_FOR_EACH (Entry, &IpIf->IpInstances) { in Ip6InterfaceEnquePacket()
1637 IN IP6_INTERFACE *IpIf in Ip6InterfaceDeliverPacket() argument
1643 NET_LIST_FOR_EACH (Entry, &IpIf->IpInstances) { in Ip6InterfaceDeliverPacket()
1676 IP6_INTERFACE *IpIf; in Ip6Demultiplex() local
1686 IpIf = NET_LIST_USER_STRUCT (Entry, IP6_INTERFACE, Link); in Ip6Demultiplex()
1688 if (IpIf->Configured) { in Ip6Demultiplex()
1689 Enqueued += Ip6InterfaceEnquePacket (IpSb, Head, Packet, IpIf); in Ip6Demultiplex()
1706 IpIf = NET_LIST_USER_STRUCT (Entry, IP6_INTERFACE, Link); in Ip6Demultiplex()
[all …]
DIp6Output.h136 IN IP6_INTERFACE *IpIf,
DIp6Common.h246 IN OUT IP6_INTERFACE *IpIf,
DIp6Nd.h262 IN IP6_INTERFACE *IpIf,
285 IN IP6_INTERFACE *IpIf,