Ethereal

[Ethereal-users] Newbie : bpf filtering format
Google
 
Web Ethereal.com

Home | Introduction | Documentation | Lists | FAQ | Development | Wiki | Bugs

Ethereal-users: June 2002


Hi,
I am not sure it is the right place to post this message, but I hope someone
will help me ...

I am currently writing an application to filter the content of an UDP
datagram.
I read the bpf man page, and learned a bit about BPF syntax, and more
precisely about the bpf_program struct.
(struct bpf_program {
 int bf_len; 
struct bpf_insn *bf_insns; 
};)

I would like to know if there is an easy way to calculate the bf_len field
for and hand written filter program... (or a place to get this information)

Thanks for any help.
Jacques






Powered by MHonArc 2.6.10