71 self::$_pattern = sprintf(
73 '/^(?:[[:xdigit:]]{2}([-:]))',
74 '(?:[[:xdigit:]]{2}\1){4}[[:xdigit:]]{2}$',
75 '|^(?:[[:xdigit:]]{12})$|^(?:[[:xdigit:]]',
76 '{4}([.])){2}[[:xdigit:]]{4}$/'
81 parent::__construct();
118 $this->MAC = $this->tmpMAC->get(
'mac');
119 } elseif (is_array($this->tmpMAC)) {
120 $this->MAC = $this->tmpMAC[0];
129 throw new Exception(
"#!im\n");
137 $splitter = str_split($this->MAC, 2);
141 foreach ((array) $splitter as &$split) {
142 $hwAddr .= chr(hexdec($split));
151 $this->_msg = sprintf(
153 str_repeat(chr(255), 6),
154 str_repeat($hwAddr, 16)
156 }
catch (Exception $e) {
157 self::$FOGCore->debug(
276 return (
bool) preg_match(
288 return (
bool) $this->_MAC->isPending();
297 return (
bool) $this->_MAC->isClientIgnored();
306 return (
bool) $this->_MAC->isPrimary();
315 return (
bool) $this->_MAC->isImageIgnored();
324 return $this->_MAC->getHost();
343 $sock = socket_create(
351 if ($sock ==
false) {
357 $set_opt = socket_set_option(
373 $sendto = socket_sendto(