• S
    Convert 'raw MAC address' usages to use virMacAddr · 387117ad
    Stefan Berger 提交于
    Introduce new members in the virMacAddr 'class'
    - virMacAddrSet: set virMacAddr from a virMacAddr
    - virMacAddrSetRaw: setting virMacAddr from raw 6 byte MAC address buffer
    - virMacAddrGetRaw: writing virMacAddr into raw 6 byte MAC address buffer
    - virMacAddrCmp: comparing two virMacAddr
    - virMacAddrCmpRaw: comparing a virMacAddr with a raw 6 byte MAC address buffer
    
    then replace raw MAC addresses by replacing
    
    - 'unsigned char *' with virMacAddrPtr
    - 'unsigned char ... [VIR_MAC_BUFLEN]' with virMacAddr
    
    and introduce usage of above functions where necessary.
    387117ad
vbox_tmpl.c 338.8 KB