Displaying 14 results from an estimated 14 matches for "core_udp_configur".
Did you mean:
core_udp_configure
2017 May 31
0
[PATCH 2/4] efi/udp: Add retry disabling UseDefaultAddress in core_udp_connect and core_udp_sendto
Signed-off-by: Julien Viard de Galbert <jviarddegalbert at online.net>
---
efi/udp.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/efi/udp.c b/efi/udp.c
index b0f13ad..8f4d7dc 100644
--- a/efi/udp.c
+++ b/efi/udp.c
@@ -52,7 +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...
2015 Jun 11
2
[PATCH 0/1] Network UEFI PXE DHCP/proxyDHCP fix
...&ip, sizeof(ip));
udata.RemotePort = port;
udata.AcceptPromiscuous = TRUE;
udata.TimeToLive = 64;
+ ip = IPInfo.myip;
+ memcpy(&udata.StationAddress, &ip, sizeof(ip));
+ ip = IPInfo.netmask;
+ memcpy(&udata.SubnetMask, &ip, sizeof(ip));
status = core_udp_configure(udp, &udata, L"core_udp_connect");
if (status != EFI_SUCCESS) {
@@ -372,11 +376,15 @@ void core_udp_sendto(struct pxe_pvt_inod
/* Re-use the existing local port number */
udata.StationPort = socket->net.efi.localport;
- udata.UseDefaultAddress = TRUE;
+ udat...
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 Jul 14
4
[PATCH] Updated udp.c to use real client ip and subnetmask values if on local subnet
...you get a minute please assemble the rest of info;
so far it's not clear what the symptoms really are.
<<<
The IP4 config data struct contents from core_udp_open is included below.
When UseDefaultAddress is TRUE, it passes 0.0.0.0 for StationAddress and
NetMask. core_udp_open calls core_udp_configure which calls
efiip4configure (BIOS). BIOS validates SA and NM but special-cases both
null to allow for proxy. BIOS tries to find the GUID to configure but
fails and returns EFI_UNSUPPORTED error, EFIERR(3).
Then core_udp_sendto attempts to send the packet even though it was never
configured. I...
2015 Jun 12
0
[PATCH 0/1] Network UEFI PXE DHCP/proxyDHCP fix
...ePort = port;
> udata.AcceptPromiscuous = TRUE;
> udata.TimeToLive = 64;
> + ip = IPInfo.myip;
> + memcpy(&udata.StationAddress, &ip, sizeof(ip));
> + ip = IPInfo.netmask;
> + memcpy(&udata.SubnetMask, &ip, sizeof(ip));
>
> status = core_udp_configure(udp, &udata, L"core_udp_connect");
> if (status != EFI_SUCCESS) {
> @@ -372,11 +376,15 @@ void core_udp_sendto(struct pxe_pvt_inod
> /* Re-use the existing local port number */
> udata.StationPort = socket->net.efi.localport;
>
> - udata.UseDefa...
2016 Feb 28
0
[PATCH 0/1] UEFI UDP/TFTP
...o use
- * @param:f, the name of the function as a wide string.
+ * @param:udp_io, The UDP_IO containing the EFI_UDP4 socket to configure
+ * and the EFI_UDP4_CONFIG_DATA to use.
+ * @param:f, The name of the invoking function as a wide string.
*
* @out: status as EFI_STATUS
*/
-
-EFI_STATUS core_udp_configure(EFI_UDP4 *udp, EFI_UDP4_CONFIG_DATA *udata,
- short unsigned int *f)
+EFI_STATUS efi_udp_configure(UDP_IO *udp_io, short unsigned int *f)
{
- EFI_STATUS status;
- int unmapped = 1;
- jiffies_t start, last, cur;
-
- last = start = jiffies();
- while (unmapped){
- status = uefi_call_w...
2016 Feb 24
6
[PATCH 2/5] ntfs: remove unused variable and have ntfssect use char API calls
The variable 'ok' is never used and generates a warning. Remove it. Also
ntfssect.c is designed to be compiled in non Unicode mode when using
MSVC compilers, so remove all ambiguity about it (LPCTSTR -> LPCSTR, use
of 'A' API calls) so that it doesn't break when compiled in Unicode
mode, which is what Rufus uses with MSVC.
-------------- next part --------------
2018 Mar 27
0
Hyper-V Gen 2 waiting for ldlinux.e64
...UseDefaultAddress UDP option. There is
already a workaround for some such configurations in the GIT master-head
I am using, (2ea44cbedb297bd6b409d5c1e0402d5f89592be4 from 2018-03-26)
however the detection for the need for the workaround is 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 jus...
2015 Aug 31
4
HP EFI binaries
On Mon, Aug 31, 2015 at 06:08:19AM -0400, Gene Cumm via Syslinux wrote:
> On Aug 30, 2015 8:42 PM, "Derrick" <derrick22 at gmail.com> wrote:
> >
> > Gene thanks, here is the output
> >
> > My IP is 10.2.49.10
> > Img @ 71d89718 = 8cdcd40ca5f0
> > Udp @ 71d89718 = 8cdcd40ca5f0
> > Udp @ 71d89718 = 8cdcd40ca5f0
> > Udp @ 71d89718 =
2015 Jul 17
0
[PATCH] Updated udp.c to use real client ip and subnetmask values if on local subnet
...semble the rest of info;
> so far it's not clear what the symptoms really are.
> <<<
>
> The IP4 config data struct contents from core_udp_open is included below.
> When UseDefaultAddress is TRUE, it passes 0.0.0.0 for StationAddress and
> NetMask. core_udp_open calls core_udp_configure which calls efiip4configure
> (BIOS). BIOS validates SA and NM but special-cases both null to allow for
> proxy. BIOS tries to find the GUID to configure but fails and returns
> EFI_UNSUPPORTED error, EFIERR(3).
Ahh! I think I have a better solution then.
A pedantic note: BIOS implies n...
2016 Feb 28
2
[PATCH 0/1] UEFI UDP/TFTP
...tion as a wide string.
> + * @param:udp_io, The UDP_IO containing the EFI_UDP4 socket to configure
> + * and the EFI_UDP4_CONFIG_DATA to use.
> + * @param:f, The name of the invoking function as a wide string.
> *
> * @out: status as EFI_STATUS
> */
> -
> -EFI_STATUS core_udp_configure(EFI_UDP4 *udp, EFI_UDP4_CONFIG_DATA *udata,
> - short unsigned int *f)
> +EFI_STATUS efi_udp_configure(UDP_IO *udp_io, short unsigned int *f)
> {
> }
>
> /**
> * Establish a connection on an open socket
> *
> - * @param:socket, the open socket
> - * @param:ip, the ip...
2015 Jul 18
1
[PATCH] Updated udp.c to use real client ip and subnetmask values if on local subnet
...> so far it's not clear what the symptoms really are.
> > <<<
> >
> > The IP4 config data struct contents from core_udp_open is included below.
> > When UseDefaultAddress is TRUE, it passes 0.0.0.0 for StationAddress and
> > NetMask. core_udp_open calls core_udp_configure which calls
> efiip4configure
> > (BIOS). BIOS validates SA and NM but special-cases both null to allow for
> > proxy. BIOS tries to find the GUID to configure but fails and returns
> > EFI_UNSUPPORTED error, EFIERR(3).
>
> Ahh! I think I have a better solution then.
>...
2015 Jul 09
2
[PATCH] Updated udp.c to use real client ip and subnetmask values if on local subnet
>>>
I'm also interested on this, but I do not quite understand the problem.
Could you please tell us more about this issue (Wireshark)
<<<
Attached is a Wireshark capture using the current commit (43f5efa) from
Patrick's repo, .Syslinux.efi is downloaded, there is an ARP and then
nothing hits the wire from the client. The internal failing scenario is
core_udp_sendto
2015 Jun 03
5
[PATCH 0/1] EFI PXE DHCP/proxyDHCP issues fix
...Address, &ip, sizeof(ip));
udata.RemotePort = port;
udata.AcceptPromiscuous = TRUE;
udata.TimeToLive = 64;
++ ip = IPInfo.myip;
++ memcpy(&udata.StationAddress, &ip, sizeof(ip));
++ ip = IPInfo.netmask;
++ memcpy(&udata.SubnetMask, &ip, sizeof(ip));
status = core_udp_configure(udp, &udata, L"core_udp_connect");
if (status != EFI_SUCCESS) {
Print(L"Failed to configure UDP: %d\n", status);
return;
}
}
?
void core_udp_sendto(struct pxe_pvt_inode *socket, const void *data,
size_t len, uint32_t ip, uint16_t port)
{
E...