9
0
Fork 0
barebox/net
Enrico Scholz 3661e874aa net: dhcp: allow to set transmitted vendor id
For net boot setups it is useful to submit boot params like server or
bootfile over dhcp. To distinguish barebox from e.g. pxe machines,
a custom vendor id can be sent in dhcp discover/request messages.

E.g. the ISC dhcp server can be configured with

| if substring(option vendor-class-identifier,0,8) = "barebox:" {
|       next-server             192.168.3.24;
|       server-name             "192.168.3.24";
|       option tftp-server-name "192.168.3.24";
|       option root-path = concat("/srv/sysroots/by-mac/",
|          binary-to-ascii (16, 8, "-", substring (hardware, 1, 6)));
| }

to sent boot params which are valid for barebox hosts only.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Jean-Christophe PLAGNIOL-VILLARD:
 - update the use dhcp command option
 - support to set the vendor via env dhcp_vendor_id
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-12 22:44:06 +01:00
..
Kconfig tftp: Add push support 2010-06-28 10:45:04 +02:00
Makefile net: add dns support 2010-06-17 08:28:29 +02:00
dhcp.c net: dhcp: allow to set transmitted vendor id 2012-03-12 22:44:06 +01:00
dns.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
eth.c net: use container_of instead of dev->type_data 2012-02-25 15:16:22 +01:00
net.c net: set enetaddr to invalid address when an invalid string is passed 2012-02-14 23:57:12 +01:00
netconsole.c net: add a context to the packet handler 2011-04-12 09:54:56 +02:00
nfs.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
nfs.h pass filename to nfs and tftp start functions 2009-10-19 10:18:51 +02:00
ping.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
rarp.h Initial revision 2002-07-20 20:14:13 +00:00
tftp.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
tftp.h net: remove switch/case in NetLoop() 2009-10-13 10:57:40 +02:00