> > I get the following compile time errors: linuxcniapi.c: In
> > function `CNI_LINUXGetMacAddress': linuxcniapi.c:1118:
> > dereferencing pointer to incomplete type linuxcniapi.c:1120:

Can we see a few lines of code around those locations in that file?
lines 1107 - 1128

PBINDING pBinding;

if (!Binding)
return CNI_E_BAD_BINDING;

pBinding = (PBINDING) Binding;

if (!ppMacAddress || !pulMacAddressSize)
return CNI_E_BAD_PARAMETER;


*ppMacAddress = pBinding->pDevice->dev_addr; // 1118

if(ippp_dev(pBinding->pDevice)||(pBinding->pDevice->hard_header_len == 4)){ //1120
*pulMacAddressSize = ETH_ALEN; // 1121
}
else if (pBinding->pDevice->hard_header_len == ETH_HLEN) {
*pulMacAddressSize = pBinding->pDevice->addr_len;
}

return CNI_SUCCESS;
}



--
<>< Proverbs 3:5 "Trust in the Lord with all your heart and lean not on your own understanding;"


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to