Commit Graph

3 Commits

Author SHA1 Message Date
David Sidrane
ff866b9527 fsutils:ipcfg Fix fd propagation as return value in bin mode
With CONFIG_IPCFG_BINARY lit. ipcfg_open needs to return
   the fd or an -errno. It was returning OK not the fd.
2020-09-30 14:09:18 -06:00
David Sidrane
17c34df3b9 fsutils:ipcfg Fix range checking for PRTOCOL in bin mode 2020-09-30 14:09:18 -06:00
Gregory Nutt
5e1ba408b4 Add IPv4 Configuration File Access Helper
This commit adds support to access an IPv4 Configuration file similar to the Linux dhpc.client ipfcg file.  This version, tailored for deeply embedded systems supports several options to tailor the file and file access to different environments.  It supports:

- Writable as well as read-only configuration files.
- ASCII human readable files as well as smaller binary files.
- It supports using character driver access to constrained media (such as EEPROM).
- Add examples/ipcfg to exercise IPv4 Configuration File support
2020-09-29 12:24:07 -07:00