search for: efi_net_def_addr

Displaying 7 results from an estimated 7 matches for "efi_net_def_addr".

2017 May 31
0
[PATCH 2/4] efi/udp: Add retry disabling UseDefaultAddress in core_udp_connect and core_udp_sendto
...52,7 @@ EFI_STATUS core_udp_configure(EFI_UDP4 *udp, EFI_UDP4_CONFIG_DATA *udata, } } else { if (status != EFI_SUCCESS) { - Print(L"%s: udp->Configure() unsuccessful (%d)", f, status); + Print(L"%s: udp->Configure() unsuccessful (%d)\n", f, status); if (!efi_net_def_addr && (status == EFI_INVALID_PARAMETER)) efi_net_def_addr = 2; } @@ -158,6 +158,7 @@ void core_udp_connect(struct pxe_pvt_inode *socket, uint32_t ip, /* Re-use the existing local port number */ udata.StationPort = socket->net.efi.localport; +retry: if (efi_net_...
2017 May 31
6
[PATCH 1/4] efi/udp: core_udp_connect should use SubnetMask not StationAddress for netmask
Signed-off-by: Julien Viard de Galbert <jviarddegalbert at online.net> --- efi/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/efi/udp.c b/efi/udp.c index 1088f47..b0f13ad 100644 --- a/efi/udp.c +++ b/efi/udp.c @@ -163,7 +163,7 @@ void core_udp_connect(struct pxe_pvt_inode *socket, uint32_t ip, } else { udata.UseDefaultAddress = FALSE;
2015 Oct 03
2
UEFI: Failed to load ldlinux.e64/ldlinux.e32
...lear to everyone / anyone how exactly would > that manual configuration would be achieved? Partial diff between the 1efipxe branch and master /* Re-use the existing local port number */ udata.StationPort = socket->net.efi.localport; - udata.UseDefaultAddress = TRUE; + if (efi_net_def_addr) { + udata.UseDefaultAddress = TRUE; + } else { + udata.UseDefaultAddress = FALSE; + memcpy(&udata.StationAddress, &IPInfo.myip, sizeof(IPInfo.myip)); + memcpy(&udata.StationAddress, &IPInfo.netmask, sizeof(IPInfo.netmask)); + } memcpy(&udata.R...
2017 May 31
0
[PATCH 3/4] Removing the udp_reader efi_binding
...gured to operate in promiscuous mode. It is - * only used for reading packets. It has no associated state unlike - * socket->net.efi.binding, which has a remote IP address and port - * number. - */ -static struct efi_binding *udp_reader; - static int volatile efi_udp_has_recv = 0; int volatile efi_net_def_addr = 1; @@ -76,17 +68,11 @@ int core_udp_open(struct pxe_pvt_inode *socket) EFI_STATUS status; EFI_UDP4 *udp; - (void)socket; - - udp_reader = efi_create_binding(&Udp4ServiceBindingProtocol, &Udp4Protocol); - if (!udp_reader) - return -1; - b = efi_create_binding(&a...
2018 Mar 27
0
Hyper-V Gen 2 waiting for ldlinux.e64
...s based on the return value EFI_NO_MAPPING received from core_udp_configure. On Hyper-V though, the aforementioned call returns successfully, but then the udp->Transmit call fails with the EFI_NO_MAPPING. (Which by the way leads to silent socket closure) When I rebuild the syslinux.efi with efi_net_def_addr forced to 0, the boot on Hyper-V Gen 2 machines works just fine. In the case of udp send, as opposed to sendto the configure call is quite removed from transmit, however I can try producing a patch which also checks from EFI_NO_MAPPING on the transmit calls and retries the UseDefaultAddress==f...
2015 Oct 03
0
UEFI: Failed to load ldlinux.e64/ldlinux.e32
...ould >> that manual configuration would be achieved? > > Partial diff between the 1efipxe branch and master > > /* Re-use the existing local port number */ > udata.StationPort = socket->net.efi.localport; > > - udata.UseDefaultAddress = TRUE; > + if (efi_net_def_addr) { > + udata.UseDefaultAddress = TRUE; > + } else { > + udata.UseDefaultAddress = FALSE; > + memcpy(&udata.StationAddress, &IPInfo.myip, sizeof(IPInfo.myip)); > + memcpy(&udata.StationAddress, &IPInfo.netmask, sizeof(IPInfo.netmask)); > +...
2015 Oct 02
6
UEFI: Failed to load ldlinux.e64/ldlinux.e32
I have a patch that I think may help your situation of syslinux.efi being unable to load ldlinux.e64/ldlinux.e32 (though I don't know if any of you are using an EFI ia32 platform). The basics are that we try to enable UseDefaultAddress as it helps certain clients with routing and works on numerous other clients. If we timeout on receiving a packet and have never received any packets, disable