i want to write a line of code inside a driver module to get support on Mobile broadband . This is the code :
PUCHAR pCurrData;
struct eth_hdr *pEthHeader = (struct eth_hdr*)pCurrData;
NET_BUFFER_LIST_INFO(pNBL, NetBufferListFrameType) = (PVOID)(ULONG_PTR)pEthHeader->type;
switch( pEthHeader->type ){
case PP_HTONS(ETHTYPE_IP):
NdisSetNblFlag(pNBL, 0x00000200 /*NDIS_NBL_FLAGS_IS_IPV4*/);
break;
}
so my doubt , what is struct eth_hdr
? which header file i include ? so i should define this structure as my own ?