Setting up tcpdump

Setting up tcpdump

tcpdump is not installed by default even on test and dev builds.  To add it to a running system you can use gmerge and the devserver.  You should also be familiar with the process for building packages document in the Developer Guide.  Due to the oddities of gmerge you will need to perform the steps below in exactly in the order specified. This is because gmerge removes files from the install within the chroot environment of your build computer.

  1. gmerge libpcap on your Chromium OS computer
    sudo gmerge libpcap
  2. emerge the libpcap package inside the chroot on your build computer.  This makes the libcap header files available for the when you gmerge tcpdump in the following step.
    emerge-${BOARD} libpcap
  3.   gmerge tcpdump on your Chromium OS computer
    sudo gmerge tcpdump
You should now be able to run tcpdump to collect traces.  Copy the files back to your development machine and analyze the traces with your favorite tool (tcpdump, WireShark, etc).

Comments