revision 1.265
date: 2006-03-16 08:42:14 +0000; author: hannes; state: Exp; lines: +3 -2
OR_PACKET should match at the beginning of the packet and not at
the beginning of the packet plus variable-length link-layer
*/
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.221.2.40 2006-09-13 06:57:07 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.221.2.41 2006-09-13 07:02:15 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
switch (offrel) {
case OR_PACKET:
- s = gen_load_llrel(offset, size);
+ s = new_stmt(BPF_LD|BPF_ABS|size);
+ s->s.k = offset;
break;
case OR_LINK: