[syslinux] IP details in COM32 module

Coe, Colin C. (Unix Engineer) Colin.Coe at woodside.com.au
Fri Jun 8 05:09:17 PDT 2007


 > Coe, Colin C. (Unix Engineer) wrote:
> > 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 netmask=255.255.255.0 dns= etc" to the end of the 
> > append line my problem may be solved.  Is there an API call of 
> > function to get this info?  I've seen the "resolve hostname" 
> > (AX=0010h) but it's what I'm looking for.
> > 
> 
> There are two ways to do it.
> 
> API 000Fh "get ipappend strings" will give you the ip= string 
> that ipappend would add.
> 
> API 0009h can be used to call the PXE stack and get the 
> entire DHCP packets.
> 
> In 3.50-pre* there are library wrappers for these -- they are 
> called syslinux_ipappend_strings (<syslinux/config.h>) and 
> pxe_get_cached_info
> (<syslinux/pxe.h>) repectively.
> 
> 	-hpa
> 

I know this is a newbie question, but how to I use pxe_get_cached_info?
I've search through the code and can't work out how to use it.  I'd like
to use Ferenc Wagner's macros but I also don't want to rewrite my code
when an offical macro system is introduced.

Could I get an example of how to use pxe_get_cached_info?

Thanks

CC

NOTICE: This email and any attachments are confidential. 
They may contain legally privileged information or 
copyright material. You must not read, copy, use or 
disclose them without authorisation. If you are not an 
intended recipient, please contact us at once by return 
email and then delete both messages and all attachments.




More information about the Syslinux mailing list