2020-09-28 19:51:50 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
config FSUTILS_IPCFG
|
2020-10-02 23:43:24 +02:00
|
|
|
bool "IP Configuration File Support"
|
2020-09-28 19:51:50 +02:00
|
|
|
default n
|
2020-10-02 23:43:24 +02:00
|
|
|
depends on NET_IPv4 || NET_IPv6
|
2020-09-28 19:51:50 +02:00
|
|
|
---help---
|
2020-10-02 23:43:24 +02:00
|
|
|
Enables support for an IP configuration file that holds IP
|
2020-09-28 19:51:50 +02:00
|
|
|
address and/or DHCP configuration information for a
|
|
|
|
specific network device
|
|
|
|
|
|
|
|
if FSUTILS_IPCFG
|
|
|
|
|
|
|
|
config IPCFG_WRITABLE
|
2020-10-02 23:43:24 +02:00
|
|
|
bool "Writable IP Configuration"
|
2020-09-28 19:51:50 +02:00
|
|
|
default y
|
|
|
|
---help---
|
2020-10-02 23:43:24 +02:00
|
|
|
Can be used to disable writing to the IP Configuration file. This
|
|
|
|
would be necessary if, for example, the IP Configuration file were
|
2020-09-28 19:51:50 +02:00
|
|
|
provided on a read-only file system.
|
|
|
|
|
|
|
|
config IPCFG_BINARY
|
2020-10-02 23:43:24 +02:00
|
|
|
bool "Binary IP Configuration File"
|
2020-09-28 19:51:50 +02:00
|
|
|
default n
|
|
|
|
---help---
|
2020-10-02 23:43:24 +02:00
|
|
|
By default, the IP configuration file is an ASCII human readable
|
2020-09-28 19:51:50 +02:00
|
|
|
file with <varialble>=<value> pairs. A Binary interface may be used
|
|
|
|
for more constrained media such as EEPROM.
|
|
|
|
|
|
|
|
config IPCFG_PATH
|
2020-10-02 23:43:24 +02:00
|
|
|
string "IP Configuration File Directory"
|
2020-09-28 19:51:50 +02:00
|
|
|
default "/etc/sysconfig/network-scripts"
|
|
|
|
---help---
|
|
|
|
Specifies the full path to the directory or mountpoint that holds
|
2020-10-02 23:43:24 +02:00
|
|
|
the IP Configuration files. Each individual configuration file
|
2020-09-28 19:51:50 +02:00
|
|
|
within this directory will have names like ipcfg-eth0.
|
|
|
|
|
|
|
|
If CONFIG_IPCFG_CHARDEV is select, this setting is interpreted
|
|
|
|
differently. In this case, CONFIG_IPCFG_PATH is the full path
|
|
|
|
to the character driver.
|
|
|
|
|
|
|
|
config IPCFG_CHARDEV
|
|
|
|
bool "Character Driver"
|
|
|
|
default n
|
|
|
|
depends on IPCFG_BINARY
|
|
|
|
---help---
|
|
|
|
In some use cases, where there is only a single network device and
|
|
|
|
only a single network device, a character driver on, perhaps, EEPROM
|
|
|
|
may be used. In this case there is not file system and the
|
|
|
|
CONFIG_IPCFG_PATH will refer to that character driver.
|
|
|
|
|
|
|
|
NOTE that this configuration is only support with CONFIG_IPCFG_BINARY.
|
|
|
|
|
|
|
|
config IPCFG_OFFSET
|
|
|
|
int "Data offset"
|
|
|
|
default 0
|
|
|
|
depends on IPCFG_CHARDEV
|
|
|
|
---help---
|
2020-10-02 23:43:24 +02:00
|
|
|
Seek to this offset before reading or writing the IP Configuration.
|
2020-09-28 19:51:50 +02:00
|
|
|
This is only support for the character driver device. This permits
|
|
|
|
some formatting of, say, EEPROM, so that multiple, different
|
2020-10-02 23:43:24 +02:00
|
|
|
configurations can be maintained at differnt offsets into the IP
|
2020-09-28 19:51:50 +02:00
|
|
|
Configuration File.
|
|
|
|
|
|
|
|
endif # FSUTILS_IPCFG
|