Skip to content

Commit

Permalink
Use DLT_RAW for DL_IPNET devices; that's their default behavior.
Browse files Browse the repository at this point in the history
Add a comment pointing to a tcpdump-workers message where this is
mentioned.
  • Loading branch information
guyharris committed Dec 18, 2016
1 parent e3ce669 commit d90cce6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dlpisubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,16 @@ pcap_process_mactype(pcap_t *p, u_int mactype)

#ifdef DL_IPNET
case DL_IPNET:
p->linktype = DLT_IPNET;
/*
* XXX - DL_IPNET devices default to "raw IP" rather than
* "IPNET header"; see
*
* http://seclists.org/tcpdump/2009/q1/202
*
* We'd have to do DL_IOC_IPNET_INFO to enable getting
* the IPNET header.
*/
p->linktype = DLT_RAW;
p->offset = 0;
break;
#endif
Expand Down

0 comments on commit d90cce6

Please sign in to comment.