Searched refs:hwaddr (Results 1 - 9 of 9) sorted by relevance

/lxc/doc/
H A Dlxc.container.conf27 lxc.network.hwaddr = 4a:49:43:49:79:bd
/lxc/src/tests/
H A Dlxc-test-createconfig38 lxc.network.hwaddr = 00:16:3e:xx:xx:xx
41 grep -q "xx:xx" /var/lib/lxc/lxctestc/config && { echo "hwaddr not expanded"; exit 1; }
H A Dlxc-test-cloneconfig55 verify_unchanged_number lxc.network.hwaddr "hwaddr defs"
56 grep ^lxc.network.hwaddr $CONTAINER_PATH/config | while read line; do
61 echo "hwaddr $addr was not changed"
87 # Simple nic with hwaddr; verify hwaddr changed
130 # verify hwaddr, if any changed
/lxc/src/lxc/
H A Dconfile.c157 { "lxc.network.hwaddr", config_network_hwaddr },
531 strprint(retv, inlen, "hwaddr\n");
625 static int rand_complete_hwaddr(char *hwaddr) argument
628 char *curs = hwaddr;
638 if (curs - hwaddr == 1) {
746 netdev->hwaddr = NULL;
750 netdev->hwaddr = new_value;
1771 * If we find a lxc.network.hwaddr in the original config file,
1773 * we store the hwaddr for re-use.
1785 if (strncmp(line, "lxc.network.hwaddr", 1
2882 new_hwaddr(char *hwaddr) argument
[all...]
H A Dconf.h128 char *hwaddr; member in struct:lxc_netdev
H A Dconf.c2255 static int setup_hw_addr(char *hwaddr, const char *ifname) argument
2261 ret = lxc_convert_mac(hwaddr, &sockaddr);
2264 hwaddr, strerror(-ret));
2284 DEBUG("mac address '%s' on '%s' has been setup", hwaddr, ifr.ifr_name);
2396 if (netdev->hwaddr) {
2397 if (setup_hw_addr(netdev->hwaddr, current_ifname)) {
4169 free(netdev->hwaddr);
/lxc/templates/
H A Dlxc-sparclinux.in341 lxc_network_hwaddr=`grep '^lxc.network.hwaddr' $cfg_dir/config | awk -F'[= \t]+' '{ print $2 }'`
343 # generate a hwaddr for the container
345 local hwaddr="00:16:3e:`dd if=/dev/urandom bs=8 count=1 2>/dev/null |od -t x8 | \
348 echo "lxc.network.hwaddr = $hwaddr" >>$cfg_dir/config
H A Dlxc-oracle.in512 lxc_network_hwaddr=`grep '^lxc.network.hwaddr' $cfg_dir/config | awk -F'[= \t]+' '{ print $2 }'`
514 # generate a hwaddr for the container
516 local hwaddr="00:16:3e:`dd if=/dev/urandom bs=8 count=1 2>/dev/null |od -t x8 | \
519 echo "lxc.network.hwaddr = $hwaddr" >>$cfg_dir/config
/lxc/src/lxc/tools/
H A Dlxc-start-ephemeral.in175 if hasattr(nic, 'hwaddr'):
176 nic.hwaddr = randomMAC()

Completed in 41 milliseconds