| Submitter | Chris Packham |
|---|---|
| Date | Jan. 25, 2013, 12:56 a.m. |
| Message ID | <1359075418-9031-6-git-send-email-judge.packham@gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/215513/ |
| State | RFC |
| Delegated to: | Joe Hershberger |
| Headers | show |
Comments
Patch
diff --git a/include/common.h b/include/common.h index 4ad17ea..59cd2eb 100644 --- a/include/common.h +++ b/include/common.h @@ -842,6 +842,12 @@ static inline IPaddr_t getenv_IPaddr(char *var) return string_to_ip(getenv(var)); } +#include <net6.h> +static inline int getenv_IP6addr(char *var, IP6addr_t *a) +{ + return string_to_ip6(getenv(var), a); +} + /* * CONSOLE multiplexing. */ diff --git a/lib/net_utils.c b/lib/net_utils.c index 1c80b25..c783ddc 100644 --- a/lib/net_utils.c +++ b/lib/net_utils.c @@ -27,7 +27,6 @@ */ #include <common.h> -#include <net6.h> #include <linux/ctype.h> IPaddr_t string_to_ip(const char *s)