Commit c0a93440a7cb50843510549d9943a4fba211f0f2
Committed by
Tom Rini
1 parent
fd3056337e
Exists in
v2017.01-smarct4x
and in
34 other branches
net: Add default flags for common net env vars
Check that the common network stack's env vars conform to the proper format for IP addresses. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Showing 1 changed file with 11 additions and 1 deletions Side-by-side Diff
include/env_flags.h
... | ... | @@ -52,8 +52,17 @@ |
52 | 52 | #define ETHADDR_FLAGS "eth" ETHADDR_WILDCARD "addr:mo," |
53 | 53 | #endif |
54 | 54 | #endif |
55 | +#define NET_FLAGS \ | |
56 | + "ipaddr:i," \ | |
57 | + "gatewayip:i," \ | |
58 | + "netmask:i," \ | |
59 | + "serverip:i," \ | |
60 | + "nvlan:i," \ | |
61 | + "vlan:i," \ | |
62 | + "dnsip:i," | |
55 | 63 | #else |
56 | -#define ETHADDR_FLAGS "" | |
64 | +#define ETHADDR_FLAGS | |
65 | +#define NET_FLAGS | |
57 | 66 | #endif |
58 | 67 | |
59 | 68 | #ifndef CONFIG_ENV_OVERWRITE |
... | ... | @@ -64,6 +73,7 @@ |
64 | 73 | |
65 | 74 | #define ENV_FLAGS_LIST_STATIC \ |
66 | 75 | ETHADDR_FLAGS \ |
76 | + NET_FLAGS \ | |
67 | 77 | SERIAL_FLAGS \ |
68 | 78 | CONFIG_ENV_FLAGS_LIST_STATIC |
69 | 79 |