Changeset 2ec8434 for libpacketdump
- Timestamp:
- 11/30/10 15:01:39 (12 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 740661f
- Parents:
- a8d184f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpacketdump/eth_34525.c
re845da6 r2ec8434 10 10 #include <netdb.h> 11 11 12 //#define DISPLAY_EXP(x,fmt,exp) \13 // if ((unsigned int)len>=((char*)&ip->x-(char*)ip+sizeof(ip->x))) \14 // printf(fmt,exp); \15 // else \16 // return;17 //18 //#define DISPLAY(x,fmt) DISPLAY_EXP(x,fmt,ip->x)19 //#define DISPLAYS(x,fmt) DISPLAY_EXP(x,fmt,htons(ip->x))20 //#define DISPLAYIP(x,fmt) DISPLAY_EXP(x,fmt,inet_ntoa(*(struct in_addr*)&ip->x))21 //22 12 DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len) 23 13 {
Note: See TracChangeset
for help on using the changeset viewer.