On May 30, 2007, at 1:24 PM, Anton Yuzhaninov wrote:
It seems better. Which libpcap version was used to produce this bpf
code?
No released version was used. The version was used was the version
built from the source I'd just checked in.
This is checked into the main and x.9 branches.
Hello, Guy.
You wrote on Wednesday, May 30, 2007, 10:14:07 PM:
> Anton Yuzhaninov wrote:
>> Hello.
>>
>> When libpcap build with -DINET6 pcap_compile() generates strange pbf
>> code with DLT_RAW
>>
>> cap_compile_nopcap(65535, DLT_RAW, &bp, "udp", 1, 0)
>> generates this code:
>>
>> # (000) ld
Anton Yuzhaninov wrote:
Hello.
When libpcap build with -DINET6 pcap_compile() generates strange pbf
code with DLT_RAW
cap_compile_nopcap(65535, DLT_RAW, &bp, "udp", 1, 0)
generates this code:
# (000) ld #0x0
{ code=0 jt=0 jf=0 k=0 }
# (001) ldb [6]
{ code=48 jt=0 jf=0 k=6 }
# (002)
Hello.
When libpcap build with -DINET6 pcap_compile() generates strange pbf
code with DLT_RAW
cap_compile_nopcap(65535, DLT_RAW, &bp, "udp", 1, 0)
generates this code:
# (000) ld #0x0
{ code=0 jt=0 jf=0 k=0 }
# (001) ldb [6]
{ code=48 jt=0 jf=0 k=6 }
# (002) jeq #0x11