[syslinux] IP details in COM32 module

Ferenc Wagner wferi at niif.hu
Fri Jun 8 05:45:49 PDT 2007


"Coe, Colin C. (Unix Engineer)" <Colin.Coe at woodside.com.au> writes:

>> 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.
>
> I know this is a newbie question, but how to I use
> pxe_get_cached_info?

The stock linux.c32 module uses this library function to get the DHCP
packet, see com32/modules/linux.c.  The stock version writes that into
a file as-is, while my patch enables config file string substitution
as well, base on the same data.

> 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.

You don't have to write any code if you apply the patch: you simply
gain new syntax to use in the config file.  I hope the new patch
works, is didn't actually test it, only compiled...

> Could I get an example of how to use pxe_get_cached_info?

See com32/modules/linux.c.  The patch just moves the call into a
separate function, not touching it otherwise.
-- 
Feri.




More information about the Syslinux mailing list