CS350 COS
COS
|
#include <stdio.h>
#include <errno.h>
#include <syscall.h>
#include <sys/nic.h>
#include <net/ethernet.h>
Go to the source code of this file.
Functions | |
void | dumpPacket () |
void | readPacket (NIC *nic) |
int | main (int argc, const char *argv[]) |
Variables | |
static int | nicNo = 1 |
static char | buf [4096] |
static MBuf | mbuf |
void dumpPacket | ( | ) |
Definition at line 14 of file ethdump.c.
int main | ( | int | argc, |
const char * | argv[] | ||
) |
Definition at line 57 of file ethdump.c.
void readPacket | ( | NIC * | nic | ) |
Definition at line 31 of file ethdump.c.