That makes sense. I would be wary that someone might enter a clientid in the GUI (even by accident) which would result in the following command:I could set the client id with the gui
but need to add option 60 so would prefer to just have them all done at the same time
udhcpc -i eth0 -p /var/run/udhcpc0.pid -s /tmp/udhcpc -x 61:hex -x 60:hex -O33 -O249 -x 61:hex
Surefancy helping
fprintf(f,
"ext_ifname=%s\n"
"listening_ip=%s/%s\n"
"port=%d\n"
"enable_upnp=%s\n"
"enable_natpmp=%s\n"
"secure_mode=%s\n"
"upnp_forward_chain=FUPNP\n"
"upnp_nat_chain=VUPNP\n"
"notify_interval=%d\n"
"system_uptime=yes\n"
"friendly_name=%s\n"
"model_number=%s.%s\n"
"serial=%s\n"
"\n"
,
get_wan_ifname(wan_primary_ifunit()),
lanip, lanmask,
upnp_port,
upnp_enable ? "yes" : "no", // upnp enable
upnp_mnp_enable ? "yes" : "no", // natpmp enable
[B] "no" // force secure_mode (only forward to self)[/B]
nvram_get_int("upnp_ssdp_interval"),
[B] "RouterName", // force friendly name[/B]
rt_version, rt_serialno,
nvram_get("serial_no") ? : et0macaddr
);
get_wan_ifname(wan_primary_ifunit()),
lanip, lanmask,
upnp_port,
upnp_enable ? "yes" : "no", // upnp enable
upnp_mnp_enable ? "yes" : "no", // natpmp enable
[B]"no", // force secure_mode (only forward to self)[/B]
nvram_get_int("upnp_ssdp_interval"),
[B]"RouterName", // force friendly name[/B]
rt_version, rt_serialno,
nvram_get("serial_no") ? : et0macaddr
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!