search for: efi_binding

Displaying 17 results from an estimated 17 matches for "efi_binding".

2017 May 31
0
[PATCH 3/4] Removing the udp_reader efi_binding
...I_GUID Udp4ServiceBindingProtocol, Udp4Protocol; -/* - * This UDP binding is configured 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...
2017 May 31
2
[PATCH 3/4] Removing the udp_reader efi_binding
On Wed, May 31, 2017 at 10:06 AM, Matt Fleming <matt at codeblueprint.co.uk> wrote: > On Wed, 31 May, at 07:45:00AM, Gene Cumm wrote: >> > extern EFI_GUID Udp4ServiceBindingProtocol, Udp4Protocol; >> > >> > -/* >> > - * This UDP binding is configured to operate in promiscuous mode. It is >> > - * only used for reading packets. It has no
2017 May 31
0
[PATCH 3/4] Removing the udp_reader efi_binding
On Wed, 31 May, at 07:45:00AM, Gene Cumm wrote: > > extern EFI_GUID Udp4ServiceBindingProtocol, Udp4Protocol; > > > > -/* > > - * This UDP binding is configured 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 > > - *
2017 May 31
3
[PATCH 3/4] Removing the udp_reader efi_binding
On Wed, May 31, 2017 at 3:56 AM, Julien Viard de Galbert via Syslinux <syslinux at zytor.com> wrote: > This extra socket cause the EFI udp stack to duplicate every packet > to be able to provide them to both udp_reader and socket->net.efi.binding. > The ones in socket->net.efi.binding were never read so they accumulated in > the stack on EFI side making the stack slower and
2016 Feb 28
0
[PATCH 0/1] UEFI UDP/TFTP
...-off-by: Patrick Masotta <masottaus at yahoo.com> diff -uprN a/core/fs/pxe/pxe.h b/core/fs/pxe/pxe.h --- a/core/fs/pxe/pxe.h 2014-10-06 10:27:44.000000000 -0600 +++ b/core/fs/pxe/pxe.h 2016-02-28 08:44:47.127996962 -0700 @@ -130,6 +130,7 @@ union net_private { struct net_private_efi { struct efi_binding *binding; /* EFI binding for protocol */ uint16_t localport; /* Local port number (0=not in use) */ + void* context; /* Holds the UDP_IO Instance (used in the new efi UDP codebase) */ } efi; }; diff -uprN a/efi/udp.c b/efi/udp.c --- a/efi/udp.c 2014-10-06 10:27:44.000000000 -...
2015 Aug 13
3
[syslinux:master] efi/pxe: Reuse handle
...ain.c | 40 ++++++++++++++++------------------------ > efi/pxe.c | 16 ++++++---------- > 3 files changed, 23 insertions(+), 35 deletions(-) > > diff --git a/efi/efi.h b/efi/efi.h > index ef5bacb..1416488 100644 > --- a/efi/efi.h > +++ b/efi/efi.h > @@ -42,7 +42,7 @@ struct efi_binding { > EFI_HANDLE this; > }; > > -extern EFI_HANDLE image_handle; > +extern EFI_HANDLE image_handle, pxe_handle; > > struct screen_info; > extern void setup_screen(struct screen_info *); > diff --git a/efi/main.c b/efi/main.c > index 208fee4..6e43f79 100644 > -...
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 --------------
2015 Jul 18
2
[syslinux:firmware] efi: Add network support
...etwork support > +/* > + * This UDP binding is configured 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; > + > +/** > + * Open a socket > + * > + * @param:socket, the socket to open > + * > + * @out: error code, 0 on success, -1 on failure > + */ > +int core_udp_open(struct pxe_pvt_inode *socket) > +{ > + memset(&udata, 0, sizeof(udata)); > +...
2023 Aug 17
1
UEFI syslinux PXE boot issues
...years back: There are other issues with PXE over UEFI with syslinux. I got it to work by using version 6.04_pre1 plus 3 pathes and building from source: efi-udp-core_udp_connect-use-SubnetMask-not-StationA.patch efi-udp-Add-retry-disabling-UseDefaultAddress.patch efi-udp-Removing-the-udp_reader-efi_binding.patch Patches are cherry-picked commits from syslinux git tree. Fixes the decaying TFTP transfer rate problem. --jzb
2015 Jul 20
0
[syslinux:firmware] efi: Add network support
...> + * This UDP binding is configured 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; > > + > > +/** > > + * Open a socket > > + * > > + * @param:socket, the socket to open > > + * > > + * @out: error code, 0 on success, -1 on failure > > + */ > > +int core_udp_open(struct pxe_pvt_inode *socket) > > +{ > &g...
2015 Aug 26
4
[PATCH 0/3] efi: A few warning fixes
From: Sylvain Gault <sylvain.gault at gmail.com> I don't know if I should merge those trivial warning fix into one commit. I can reformat it as requested. Those are a few warning fixes for the efi part. The code involved has mainly been introduced in recent commits. Sylvain Gault (3): efi: fix warnings about argument types efi: fix pointer-type mismatch assigment warning efi: fix
2016 Feb 28
2
[PATCH 0/1] UEFI UDP/TFTP
...aus at yahoo.com> > > diff -uprN a/core/fs/pxe/pxe.h b/core/fs/pxe/pxe.h > --- a/core/fs/pxe/pxe.h 2014-10-06 10:27:44.000000000 -0600 > +++ b/core/fs/pxe/pxe.h 2016-02-28 08:44:47.127996962 -0700 > @@ -130,6 +130,7 @@ union net_private { > struct net_private_efi { > struct efi_binding *binding; /* EFI binding for protocol */ > uint16_t localport; /* Local port number (0=not in use) */ > + void* context; /* Holds the UDP_IO Instance (used in the new efi UDP codebase) */ > } efi; > }; > > diff -uprN a/efi/udp.c b/efi/udp.c > --- a/efi/ud...
2023 Aug 17
1
UEFI syslinux PXE boot issues
Steve Rikli schreef op 2023-08-16 16:31: > On Wed, Aug 16, 2023 at 02:05:33PM +0200, AL13N via Syslinux wrote: >> Joakim Tjernlund schreef op 2023-08-16 13:15: >> > On Thu, 1970-01-01 at 00:00 +0000, AL13N via Syslinux wrote: >> > > >> > > I'm used to non-UEFI PXE boot, and I use it for my network installer >> > > since forever ago.
2015 Jul 08
4
[PATCH] Updated udp.c to use real client ip and subnetmask values if on local subnet
...subnets*/ + udata.UseDefaultAddress = TRUE; + } + } + memcpy(&udata.RemoteAddress, &ip, sizeof(ip)); udata.RemotePort = port; udata.AcceptPromiscuous = TRUE; @@ -350,6 +374,7 @@ void core_udp_sendto(struct pxe_pvt_inod EFI_STATUS status; struct efi_binding *b; EFI_UDP4 *udp; + uint32_t tip; (void)socket; @@ -372,7 +397,30 @@ void core_udp_sendto(struct pxe_pvt_inod /* Re-use the existing local port number */ udata.StationPort = socket->net.efi.localport; - udata.UseDefaultAddress = TRUE; + /** + * Determine i...
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;
2020 Feb 27
1
Problem with PXE/UEFI
Hi Guys, i have a problem with PXE/UEFI Boot. Legacy PXE Boot is working fine. I use Dnsmasq with integrated tftp. As Mentioned above, legacy pxe boot is working fine, tcpdump shows: --- start tcpdump legacy pxe boot --- 13:44:16.589197 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from f8:ca:b8:06:7d:ed (oui Unknown), length 548 13:44:20.543910 IP 0.0.0.0.bootpc >
2015 Jun 03
5
[PATCH 0/1] EFI PXE DHCP/proxyDHCP issues fix
...void core_udp_sendto(struct pxe_pvt_inode *socket, const void *data, size_t len, uint32_t ip, uint16_t port) { EFI_UDP4_COMPLETION_TOKEN *token; EFI_UDP4_TRANSMIT_DATA *txdata; EFI_UDP4_FRAGMENT_DATA *frag; EFI_UDP4_CONFIG_DATA udata; EFI_STATUS status; struct efi_binding *b; EFI_UDP4 *udp; (void)socket; b = efi_create_binding(&Udp4ServiceBindingProtocol, &Udp4Protocol); if (!b) return; udp = (EFI_UDP4 *)b->this; token = zalloc(sizeof(*token)); if (!token) goto out; txdata = zalloc(sizeof(*txdata)); if (!tx...