Searched defs:gw (Results 1 - 2 of 2) sorted by relevance

/lxc/src/lxc/
H A Dnetwork.c1269 static int ip_gateway_add(int family, int ifindex, void *gw) argument
1309 if (nla_put_buffer(nlmsg, RTA_GATEWAY, gw, addrlen))
1325 int lxc_ipv4_gateway_add(int ifindex, struct in_addr *gw) argument
1327 return ip_gateway_add(AF_INET, ifindex, gw);
1330 int lxc_ipv6_gateway_add(int ifindex, struct in6_addr *gw) argument
1332 return ip_gateway_add(AF_INET6, ifindex, gw);
H A Dconfile.c893 struct in_addr *gw; local
895 gw = malloc(sizeof(*gw));
896 if (!gw) {
901 if (!inet_pton(AF_INET, value, gw)) {
903 free(gw);
907 netdev->ipv4_gateway = gw;
995 struct in6_addr *gw; local
997 gw = malloc(sizeof(*gw));
[all...]

Completed in 16 milliseconds