#include <errno.h>#include <sys/stat.h>#include "config.h"#include "util.h"#include "PktSrc.h"#include "Hash.h"#include "Net.h"#include "Sessions.h"Include dependency graph for PktSrc.cc:

Go to the source code of this file.
Functions | |
| int | get_link_header_size (int dl) |
Variables | |
| int | snaplen = 8192 |
|
|
Definition at line 610 of file PktSrc.cc. References DLT_EN10MB, DLT_FDDI, DLT_LINUX_SLL, DLT_NULL, and DLT_RAW. Referenced by PktDumper::HdrSize(), PktSrc::SetHdrSize(), and Packet::Unserialize().
00611 {
00612 switch ( dl ) {
00613 case DLT_NULL:
00614 return 4;
00615
00616 case DLT_EN10MB:
00617 return 14;
00618
00619 case DLT_FDDI:
00620 return 13 + 8; // fddi_header + LLC
00621
00622 #ifdef DLT_LINUX_SLL
00623 case DLT_LINUX_SLL:
00624 return 16;
00625 #endif
00626
00627 case DLT_RAW:
00628 return 0;
00629 }
00630
00631 return -1;
00632 }
|
|
|
Definition at line 39 of file PktSrc.cc. Referenced by PktSrc::AddSecondaryTablePrograms(), BPF_Program::Compile(), pcap_open_dead(), pcap_open_live(), PktInterfaceSrc::PktInterfaceSrc(), readloop(), and sf_write_header(). |
1.3.5