summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/nfs/bootp_subr.c
diff options
context:
space:
mode:
authorEric Norum <WENorum@lbl.gov>2002-11-01 18:43:09 +0000
committerEric Norum <WENorum@lbl.gov>2002-11-01 18:43:09 +0000
commit022fcc0755f815bc71373120888a278e88aaa305 (patch)
treef898da21eb4d640ee8b9d32fecbeccec0829bea1 /cpukit/libnetworking/nfs/bootp_subr.c
parent2002-11-01 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-022fcc0755f815bc71373120888a278e88aaa305.tar.bz2
Till Straumann's patch to:
use bootp option 129 to get command line string change inet_ntoa->inet_ntop
Diffstat (limited to '')
-rw-r--r--cpukit/libnetworking/nfs/bootp_subr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpukit/libnetworking/nfs/bootp_subr.c b/cpukit/libnetworking/nfs/bootp_subr.c
index 237d75e4b9..706ab51a50 100644
--- a/cpukit/libnetworking/nfs/bootp_subr.c
+++ b/cpukit/libnetworking/nfs/bootp_subr.c
@@ -894,6 +894,14 @@ processOptions (unsigned char *optbuf, int optbufSize)
bootp_strdup_realloc(rtems_bsdnet_bootp_boot_file_name,p);
break;
+ case 129:
+ /* Site specific option; we use this to get
+ * a 'command line string'
+ */
+ if (p[0])
+ rtems_bsdnet_bootp_cmdline = strdup(p);
+ break;
+
default:
printf ("Ignoring BOOTP/DHCP option code %d\n", code);
break;
@@ -1058,6 +1066,8 @@ bootpc_init(int update_files)
printf ("Server name is %s\n", rtems_bsdnet_bootp_server_name);
if (rtems_bsdnet_bootp_boot_file_name)
printf ("Boot file is %s\n", rtems_bsdnet_bootp_boot_file_name);
+ if (rtems_bsdnet_bootp_cmdline)
+ printf ("Command line is %s\n", rtems_bsdnet_bootp_cmdline);
/*
* Use defaults if values were not supplied by BOOTP/DHCP options