Go to the documentation of this file.
22 if (!ifname || !lladdr)
27 #if defined(TARGET_LINUX)
31 r = (net_addr_ll_set(ctx, ifname, addr) == 0);
34 #if defined(TARGET_SOLARIS)
39 #elif defined(TARGET_OPENBSD)
44 #elif defined(TARGET_DARWIN)
49 #elif defined(TARGET_FREEBSD)
55 msg(
M_WARN,
"Sorry, but I don't know how to configure link layer addresses on this operating system.");
65 msg(
M_INFO,
"TUN/TAP link layer address set to %s", lladdr);
int set_lladdr(openvpn_net_ctx_t *ctx, const char *ifname, const char *lladdr, const struct env_set *es)
void argv_free(struct argv *a)
Frees all memory allocations allocated by the struct argv related functions.
int openvpn_execve_check(const struct argv *a, const struct env_set *es, const unsigned int flags, const char *error_message)
struct argv argv_new(void)
Allocates a new struct argv and ensures it is initialised.
bool argv_printf(struct argv *argres, const char *format,...)
printf() variant which populates a struct argv.
void argv_msg(const int msglev, const struct argv *a)
Write the arguments stored in a struct argv via the msg() command.
#define MAC_SCAN_ARG(_mac)