Patch/Bugfix for BOOTP in rtems-ss-20020205

Chris Johns cjohns at cybertec.com.au
Tue Mar 19 11:24:17 UTC 2002


Thomas Doerfler wrote:
> 
> Hm, good question. At least it would not hurt. But the line I
> complaint is at the start of bootpc_init, long before any
> bootp options are processed. So at least at the first run of
> bootpc_init, "dhcp_hostname" is definitely NULL.
> 

Any future runs if called could have dhcp_hostname set so we should free
the memory. It is allocated using strdup.

> The question is: can bootpc_init be called multiple times?
> Normally it will only be called once after system boot, but
> are there other situations?

A system may have some form of redundant network configuration and so
need to obtain a network address. This is just an example not a
recommendation for a network design.

-- 
 Chris Johns, cjohns at cybertec.com.au



More information about the users mailing list