Hi
Has anyone had any experience in sending raw ethernet frames using LwIP (1.4.1) on the TM4C129E?
I'm fine using LwIP for UDP and TCP connections, but have a specific requirement to send raw ethernet so as to communicate with a test rig and I'm struggling to find any description of the steps I need to take to achieve this. From what I can gather I need to use ethernetif.c which as far as I can work out is contained in tiva-tm4c129.c
I've followed the flow for setting up a TCP connection lwIPInit() which in turn calls lwIPPrivateInit(). From here I'm a bit uncertain as to whether lwip_init() needs to be called? I have assumed it doesnt and am just calling:
netif_add(&g_sNetIF, &ip_addr, &net_mask, &gw_addr, NULL, tivaif_init, ethernet_input);
netif_set_default(&g_sNetIF);
netif_set_up(&g_sNetIF);
before exiting back to lwIPInit() which then returns to my application. But now I'm stuck as to how I populate the 802.3 Ethernet packet and stick the data onto the wire. Any help would be greatfully appreciated.
Many thanks