Changeset 1350

Show
Ignore:
Timestamp:
05/05/08 10:38:22 (8 months ago)
Author:
perry
Message:

deal with IP with no L2 captures.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/format_linux.c

    r1347 r1350  
    5252 
    5353#include <assert.h> 
     54 
     55/* Declared in linux/if_arp.h but not in net/if_arp.h sigh */ 
     56#ifndef ARPHRD_NONE 
     57#define ARPHRD_NONE 0xfffe 
     58#endif 
    5459 
    5560struct tpacket_stats { 
     
    473478                        return TRACE_TYPE_80211; 
    474479                case ARPHRD_SIT: 
     480                case ARPHRD_NONE: 
    475481                        return TRACE_TYPE_NONE; 
    476482                default: /* shrug, beyond me! */