Searched refs:gw (Results 1 - 5 of 5) sorted by relevance
/lxc/src/lxc/ |
H A D | network.h | 106 extern int lxc_ipv4_gateway_add(int ifindex, struct in_addr *gw); 107 extern int lxc_ipv6_gateway_add(int ifindex, struct in6_addr *gw);
|
H A D | confile.c | 893 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...] |
H A D | network.c | 1269 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);
|
/lxc/templates/ |
H A D | lxc-altlinux.in | 74 ${gw} 290 if [ ! -z ${gw} ]; then 292 lxc.network.ipv4.gateway = $gw 363 [-g|--gw=<gw address>] [-d|--dns=<dns address>] 375 -g,--gw specify the default gw, eg. 192.168.1.1 376 -G,--gw6 specify the default gw, eg. 2003:db8:1:0:214:1234:fe0b:3596 386 options=$(getopt -o hp:n:P:cR:4:6:g:d: -l help,rootfs:,path:,name:,profile:,clean,release:,ipv4:,ipv6:,gw:,dns: -- "$@") 405 -g|--gw) g [all...] |
H A D | lxc-openmandriva.in | 252 if [ ! -z ${gw} ]; then 254 lxc.network.ipv4.gateway = $gw 323 [-g|--gw=<gw address>] [-d|--dns=<dns address>] 335 -g,--gw specify the default gw, eg. 192.168.1.1 336 -G,--gw6 specify the default gw, eg. 2003:db8:1:0:214:1234:fe0b:3596 346 options=$(getopt -o hp:n:P:cR:4:6:g:d:A -l help,rootfs:,path:,name:,profile:,clean:,release:,ipv4:,ipv6:,gw:,dns:,arch: -- "$@") 379 -g|--gw) gw [all...] |
Completed in 18 milliseconds