Displaying 14 results from an estimated 14 matches for "core_udp_close".
2013 Nov 09
2
syslinux.efi pxeboot across multiple subnets
...>> On Fri, Nov 8, 2013 at 2:57 PM, H. Peter Anvin <hpa at zytor.com> wrote:
>>>> Here is a completely untested patch if someone wants to try and take it
>>>> for a spin?
core_udp_open() should bind to the local IP address and obtain a local
UDP port allocation. core_udp_close() should release the UDP port
allocation.
core_udp_sendto() knows the remote IP address and remote UDP port and
must calculate the GatewayAddress. core_udp_connect() is passed the
remote IP address and UDP port, calculates the GatewayAddress and
stores all three for core_udp_send(). core_udp_sen...
2013 Nov 10
2
syslinux.efi pxeboot across multiple subnets
On Sat, Nov 9, 2013 at 9:22 AM, Jason Matthews
<jason.david.matthews at gmail.com> wrote:
> The setup I was using was in a chassis. Slot 8 of the chassis is the client
> machine. It goes through Switch 1 (a Brocade switch) to the top of rack
> (BNT). The mirror is in the chassis switch. Slot 3 of the same chassis is
> connected to the mirror port in Switch 1.
>
> client =
2013 Nov 11
2
syslinux.efi pxeboot across multiple subnets
...h
git checkout -b genec-efi-fixes-2-for-mfleming genec-gh/efi-fixes-2-for-mfleming
On a newly cloned repo:
git checkout -b genec-efi-fixes-2-for-mfleming origin/efi-fixes-2-for-mfleming
>> core_udp_open() should bind to the local IP address and obtain a local
>> UDP port allocation. core_udp_close() should release the UDP port
>> allocation.
>>
>> core_udp_sendto() knows the remote IP address and remote UDP port and
>> must calculate the GatewayAddress. core_udp_connect() is passed the
>> remote IP address and UDP port, calculates the GatewayAddress and
>>...
2017 May 31
0
[PATCH 3/4] Removing the udp_reader efi_binding
...memset(&udata, 0, sizeof(udata));
@@ -114,9 +100,6 @@ bail:
if (b)
efi_destroy_binding(b, &Udp4ServiceBindingProtocol);
- efi_destroy_binding(udp_reader, &Udp4ServiceBindingProtocol);
- udp_reader = NULL;
-
return -1;
}
@@ -127,9 +110,6 @@ bail:
*/
void core_udp_close(struct pxe_pvt_inode *socket)
{
- efi_destroy_binding(udp_reader, &Udp4ServiceBindingProtocol);
- udp_reader = NULL;
-
if (!socket->net.efi.binding)
return;
@@ -239,7 +219,7 @@ int core_udp_recv(struct pxe_pvt_inode *socket, void *buf, uint16_t *buf_len,
(void)socket;...
2013 Nov 09
0
syslinux.efi pxeboot across multiple subnets
..., 2013 at 2:57 PM, H. Peter Anvin <hpa at zytor.com> wrote:
>>>>> Here is a completely untested patch if someone wants to try and take it
>>>>> for a spin?
>
> core_udp_open() should bind to the local IP address and obtain a local
> UDP port allocation. core_udp_close() should release the UDP port
> allocation.
>
> core_udp_sendto() knows the remote IP address and remote UDP port and
> must calculate the GatewayAddress. core_udp_connect() is passed the
> remote IP address and UDP port, calculates the GatewayAddress and
> stores all three for c...
2013 Nov 11
0
syslinux.efi pxeboot across multiple subnets
...find
to efi are in gpxe and I can't get that to build (syntax errors in
util/geniso). The version is listed as 4.07. I was under the impression
6.00 was the first version that supported efi.
> core_udp_open() should bind to the local IP address and obtain a local
> UDP port allocation. core_udp_close() should release the UDP port
> allocation.
>
> core_udp_sendto() knows the remote IP address and remote UDP port and
> must calculate the GatewayAddress. core_udp_connect() is passed the
> remote IP address and UDP port, calculates the GatewayAddress and
> stores all three for c...
2013 Nov 13
0
syslinux.efi pxeboot across multiple subnets
...leming
> genec-gh/efi-fixes-2-for-mfleming
>
> On a newly cloned repo:
>
> git checkout -b genec-efi-fixes-2-for-mfleming
> origin/efi-fixes-2-for-mfleming
>
> >> core_udp_open() should bind to the local IP address and obtain a local
> >> UDP port allocation. core_udp_close() should release the UDP port
> >> allocation.
> >>
> >> core_udp_sendto() knows the remote IP address and remote UDP port and
> >> must calculate the GatewayAddress. core_udp_connect() is passed the
> >> remote IP address and UDP port, calculates the G...
2013 Nov 09
2
syslinux.efi pxeboot across multiple subnets
On Fri, Nov 8, 2013 at 5:08 PM, Jason Matthews
<jason.david.matthews at gmail.com> wrote:
> I attempted the patch, but had to add a declaration to get it to compile. I
> also added the gateway like before. Here's a link to the modified diff I
> used and the pcaps from tftpserver and mirrored port from boot to reset.
>
> http://ge.tt/136167y/v/0
>
> I'm also not
2013 Nov 08
4
syslinux.efi pxeboot across multiple subnets
...= uefi_call_wrapper(udp->GetModeData, 5, udp,
+ &udata, NULL, NULL, NULL);
+ if (status != EFI_SUCCESS)
+ Print(L"Failed to get UDP mode data: %d\n", status);
+ else
+ socket->net.efi.localport = udata.StationPort;
+
return 0;
bail:
@@ -89,7 +100,6 @@ void core_udp_close(struct pxe_pvt_inode *socket)
void core_udp_connect(struct pxe_pvt_inode *socket, uint32_t ip,
uint16_t port)
{
- EFI_UDP4_CONFIG_DATA udata;
EFI_STATUS status;
EFI_UDP4 *udp;
@@ -113,20 +123,6 @@ void core_udp_connect(struct pxe_pvt_inode *socket, uint32_t ip,
return;...
2013 Nov 08
4
syslinux.efi pxeboot across multiple subnets
I did change both instances of txdata->GatewayAddress, but I think
something may be wrong in my toolchain. If I extract syslinux.zip and
attempt to make from there (without modifying any files), the cached DHCP
packet isn't read on the same subnet.
I receive "Succeed to download NBP file." twice before anything from
syslinux is loaded, so I believe the duplicate request for
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 Sep 10
3
[PATCH 0/1] efi: DNS resolver
From: Sylvain Gault <sylvain.gault at gmail.com>
Despite having native network capabilities, UEFI 2.4 (the most widely deployed
at the moment) has no native DNS resolver. I propose here an implementation
more or less inspired by the one found in core/legacynet/dnsresolv.c.
Since it's non-trivial, I'd like to ask for a deep review of this code. I tried
to make it as strong as
2016 Feb 28
0
[PATCH 0/1] UEFI UDP/TFTP
...l_wrapper(BS->CloseEvent, 1, udp_io->Timeout_Timer);
+
+ if(udp_io && udp_io->CB_OK_Event)
+ uefi_call_wrapper(BS->CloseEvent, 1, udp_io->CB_OK_Event);
+
+
+ if(udp_io)
+ free(udp_io);
return -1;
}
+
/**
* Close a socket
*
@@ -119,299 +280,394 @@ bail:
*/
void core_udp_close(struct pxe_pvt_inode *socket)
{
- efi_destroy_binding(udp_reader, &Udp4ServiceBindingProtocol);
- udp_reader = NULL;
- if (!socket->net.efi.binding)
- return;
-
- efi_destroy_binding(socket->net.efi.binding, &Udp4ServiceBindingProtocol);
- socket->net.efi.binding =...
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 --------------