search for: pxe_get_cached_info

Displaying 15 results from an estimated 15 matches for "pxe_get_cached_info".

Did you mean: pxenv_get_cached_info
2011 Mar 06
1
PXELINUX Debugging Output
I am sending a patch that makes the debugging output of PXELINUX slightly more concise, without (intentionally) affecting its completeness at all. Additionally, I am proposing that the debugging output of PXELINUX -- specifically the messages that appear after the copyright statement, but before the menu is loaded -- only be shown in response to keyboard input (such as holding Shift or Alt, or
2009 Apr 24
1
Bugs in pxelinux.asm - syslinux 3.75
In pxelinux.asm the xchg instruction in xchg ax,ax . data_on_top: should be xchg ax,dx, I think At the end of pxe_get_cached_info routine,there is and ax,ax jnz .err It is supposed to test for AX status, but since pxenv does pushad and popad, AX doesn't contain status. In fact the other routines calling pxenv don't have this bug. pxe_unload seems to be never called; if so, also Real...
2008 Mar 03
3
finding mac address while in menusystem (com32)
Hi I have made myself a derivated menusystem based on the complex.c menu that cames with syslinux. And now I need to read a file, search for my pxebooted netcards mac address, and write some changes back to the same file. All the writing and reading I hopes will be of no trouble, but how can i find my own mac address? (and IP adress would be nice). I have searched the list, but I really cannot
2012 Oct 03
1
[PATCH] pxedump.c32: Simple PXE cached packet dumping
...with a call to + * free_cached_pkts() + */ +static int get_cached_pkts(struct cached_pkts * cached_pkts) { + unsigned int i; + int rc; + + *cached_pkts = new_cached_pkts; + for (i = 0; i < countof(cached_pkts->pkt); ++i) { + /* One-based index for PXE call */ + rc = pxe_get_cached_info( + i + 1, + &cached_pkts->pkt[i].buffer, + &cached_pkts->pkt[i].len + ); + if (rc) { + printf("Error %d fetching cached packet #%u\n", rc, i + 1); + cached_pkts->pkt[i] = new_cached_pkt; + c...
2006 Mar 23
0
chain to another pxelinux server?
...ave experimented with the ALTERNATE TFTP SERVER mechanism described in pxelinux.doc. I observe that it allows me to pull a bootstrap from another tftp server. Using this mechanim, I can successfully load pxelinux.0 from globalTftpServer. However, it does not have the desired results. pxelinux uses PXE_GET_CACHED_INFO to get the DHCP packet to find out where the tftp server is and what file to boot. So, I can load a new pxelinux.0 from globalTftpServer, but it still uses the pxelinux.cfg on localTftpServer (since that is where I booted from). Q: Is there any trick/mechanism to get around this and nudge my '...
2007 Apr 10
1
[PATCH] Add support for DHCP-Options
...n, replacement, strlen(replacement)); + free(replacement); + i += stop-start+1; + break; + } + } + + return out; +} + +int main(int argc, char *argv[]) +{ + int i; + char *out, *cmdline = NULL; + void *buf; + size_t cmd_len = 0; + + openconsole(&dev_stdcon_r, &dev_stdcon_w); + if (pxe_get_cached_info(PXENV_PACKET_TYPE_DHCP_ACK, &buf, &dhcpack_len) != 0) { + fprintf(stderr, "failed to get dhcp infos\n"); + return 1; + } + dhcpack = (bootp_t *)buf; + + for (i = 1; i < argc; i++) { + out = do_subst(argv[i]); + append_output(&cmdline, &cmd_len, out, strlen(out)); +...
2011 Oct 04
1
Added DHCPINFO Tables to the lua.c32 Implementation - syslinux-4.04
...lue[1+(done*4)], value[2+(done*4)], value[3+(done*4)]); + lua_pushstring(L, op_value); + lua_settable(L,-3); + } + } + +} + +static int dhcp_getoptions(lua_State *L) +{ + void* dhcpdata = 0; + dhcp_t* dhcp = 0; + size_t dhcplen = 0; + + /* Append the DHCP info */ + if (pxe_get_cached_info(PXENV_PACKET_TYPE_DHCP_ACK, + &dhcpdata, &dhcplen)) + { + return 0; + } + + dhcp = (dhcp_t*)dhcpdata; + + lua_newtable(L); + + int done = 0; + uint8_t* ptr = (uint8_t*)&dhcp->options; + uint8_t len; + uint8_t option; + uint8_t* value; + static char...
2007 Jun 05
3
IP details in COM32 module
Hi all I'm trying to resolve a problem that's recently popped up by turning on auxillary VLANs for our Linux workstations. The problem shows as DHCP failling for anaconda (but always succeeds for PXE). I tried adding 'ipappend 1' to the pxelinux config files but had no joy. I'm thinking that if I write a COM32 module that adds "ip=1.2.3.4 gateway=1.2.3.1
2015 Jul 11
0
EXTLINUX - GCC 5
...r) Uninitialized struct member: tftp.srv_ip Looks like a valid complaint. But from where to get a valid tftp.srv_ip ? ----------------------------------------------------------------- [com32/modules/prdhcp.c:145]: (error) Uninitialized variable: p Possibly a false positive. It depends on what pxe_get_cached_info() does to &p. ----------------------------------------------------------------- Checking com32/rosh/rosh.c: COMMAND_LINE_SIZE... [com32/rosh/rosh.c:1128]: (error) Uninitialized variable: cmdstr Checking com32/rosh/rosh.c: FILENAME_MAX... [com32/rosh/rosh.c:559]: (error) Uninitialized...
2010 Apr 27
4
Patch sensible callback framework
...if (!opt_quiet) { + unregister_callback(CB_LOADFILE, linux_percent_progress_cb); + unregister_callback(CB_LOADFILE, linux_dot_progress_cb); + unregister_callback(CB_LOADFILE, linux_done_progress_cb); + } + /* Append the DHCP info */ if (opt_dhcpinfo && !pxe_get_cached_info(PXENV_PACKET_TYPE_DHCP_ACK, &dhcpdata, &dhcplen)) {
2015 Jul 11
3
EXTLINUX - GCC 5
> On Jul 10, 2015 5:29 PM, "poma via Syslinux" <syslinux at zytor.com> wrote: > > > The same as with the ISOLINUX, stable and git. > > Only this time has nothing to do with the menu. > > 1) EXTLINUX is no longer a discrete variant. The installer extlinux now > installs SYSLINUX. > 2) William Kensington already saw a similar behavior wherein an
2012 Jul 16
5
[PATCH 0/5] Deleting __intcall() from Syslinux
From: Matt Fleming <matt.fleming at intel.com> Since we can't use __intcall() for EFI, and since we can now have the ELF module code resolve all our symbols at runtime, we should delete as many references to __intcall() as possible and just access the symbols directly. The most interesting patch is the support for weak symbols. We need to be able to reference derivative-specific
2012 Aug 14
1
[GIT PULL] elflink fixes
...mp; EFLAGS_CF) - return 0; - - return regs.eax.l; + return status; } diff --git a/com32/lib/syslinux/pxe_get_cached.c b/com32/lib/syslinux/pxe_get_cached.c index 4704037..a090a4c 100644 --- a/com32/lib/syslinux/pxe_get_cached.c +++ b/com32/lib/syslinux/pxe_get_cached.c @@ -43,7 +43,6 @@ int pxe_get_cached_info(int level, void **buf, size_t * len) { const int max_dhcp_packet = 2048; - com32sys_t regs; t_PXENV_GET_CACHED_INFO *gci; void *bbuf, *nbuf; int err; @@ -52,12 +51,6 @@ int pxe_get_cached_info(int level, void **buf, size_t * len) if (!gci) return -1; - memset(&am...
2013 Mar 07
4
Syslinux-5.10-pre1
...pxe: hook up the interrupt routine and the lwip receive routine core thread: Make the code a little clearer. core: pxeisr.inc: The name of the globals is pxe_irq_vector not pxe_irq_num core pxe: Switch threads if more than one runnable. core pxe: Ensure all parameters in pxe_get_cached_info are initialized. lwip: In mem.h define mem_realloc as static inline lwip: Disable lwip's malloc routines undiif: Fix weird include order madness. core pxe: Cleanup the call to pxe_isr_init core: factor out byteswap.h from netinet/in.h lwip: Use byteswap.h to...
2012 Jun 26
2
[GIT PULL] elflink bug fixes
...yslinux/pxe.h index 156f4cf..4e8a336 100644 --- a/com32/include/syslinux/pxe.h +++ b/com32/include/syslinux/pxe.h @@ -34,11 +34,11 @@ #ifndef _SYSLINUX_PXE_H #define _SYSLINUX_PXE_H -#include <pxe.h> #include <syslinux/pxe_api.h> /* SYSLINUX-defined PXE utility functions */ int pxe_get_cached_info(int level, void **buf, size_t *len); -int pxe_get_nic_type(t_PXENV_UNDI_GET_NIC_TYPE *gnt); +int pxe_get_nic_type(t_PXENV_UNDI_GET_NIC_TYPE * gnt); +uint32_t pxe_dns(const char *hostname); #endif /* _SYSLINUX_PXE_H */ diff --git a/com32/lib/Makefile b/com32/lib/Makefile index daa7284..57e9c2f 10...