Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years ago.
Redirecting internet traffic through the LPC1768
I'm working on a project where I would like to redirect my internet traffic through the LPC1768 device. I managed to have to have the device expose itself as Ethernet device (using CBC-ECM) and on my computer on OS X, it shows up as an Ethernet device.
To manage this, I'm using the following library to enable Ethernet over USB: https://developer.mbed.org/users/daniele/code/USB_Ethernet/. Moreover, I included the USBDevice library, the PicoTCP library and the pico driver for the LPC1768 (named lpc1768-picotcp-eth).
What I would like to do now, is capturing traffic with the pico library to analyze the incoming and outgoing packets. I'm a bit stuck here because I don't know how to proceed with this. I have the USBCDC_ECM class running and in that class, I see methods for sending and receiving data from the computer. But I want pico to analyze the data. Is there any way to pass on these packets to pico (and vice versa)?
Thank you in advance for any help.