- if(sscanf(netstr, "%d,%hhx:%hhx:%hhx:%hhx:%hhx:%hhx", &subnet->type,
- &subnet->net.mac.x[0],
- &subnet->net.mac.x[1],
- &subnet->net.mac.x[2],
- &subnet->net.mac.x[3],
- &subnet->net.mac.x[4],
- &subnet->net.mac.x[5]) != 7)
+ if(sscanf(subnetstr, "%d,%hhx:%hhx:%hhx:%hhx:%hhx:%hhx", &subnet->type,
+ &subnet->net.mac.address.x[0],
+ &subnet->net.mac.address.x[1],
+ &subnet->net.mac.address.x[2],
+ &subnet->net.mac.address.x[3],
+ &subnet->net.mac.address.x[4],
+ &subnet->net.mac.address.x[5]) != 7)