diff options
author | Michael Brown <mcb30@ipxe.org> | 2013-12-04 22:06:10 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2013-12-05 00:41:49 +0000 |
commit | 17451b53e2fc696730586edb9d0a858bcc0b2ec8 (patch) | |
tree | e885da23313491fc49f6fcefaef6ac34107c146b /src/include/ipxe/ip.h | |
parent | 22001cb206c1320aee27f679a63d2171d35e99c5 (diff) | |
download | ipxe-17451b53e2fc696730586edb9d0a858bcc0b2ec8.tar.gz |
[settings] Allow for IPv6 setting types in non-IPv6 builds
Allow for the existence of references to IPv6 setting types without
dragging in the whole IPv6 stack, by placing the definition of
setting_type_ipv6 in core/settings.c and providing weak stub methods
for parse_ipv6_setting() and format_ipv6_setting().
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/ip.h')
-rw-r--r-- | src/include/ipxe/ip.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/ipxe/ip.h b/src/include/ipxe/ip.h index 3234b7b0e..1a93a552e 100644 --- a/src/include/ipxe/ip.h +++ b/src/include/ipxe/ip.h @@ -75,5 +75,10 @@ extern struct list_head ipv4_miniroutes; extern struct net_protocol ipv4_protocol __net_protocol; extern int ipv4_has_any_addr ( struct net_device *netdev ); +extern int parse_ipv4_setting ( const struct setting_type *type, + const char *value, void *buf, size_t len ); +extern int format_ipv4_setting ( const struct setting_type *type, + const void *raw, size_t raw_len, char *buf, + size_t len ); #endif /* _IPXE_IP_H */ |