"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "bpf_filter.c" between
libpcap-1.10.0.tar.gz and libpcap-1.10.1.tar.gz

About: libpcap is a packet filter library used by tools like tcpdump.

bpf_filter.c  (libpcap-1.10.0):bpf_filter.c  (libpcap-1.10.1)
skipping to change at line 90 skipping to change at line 90
* filters intended for the Linux kernel in cases where the kernel * filters intended for the Linux kernel in cases where the kernel
* rejects the filter; it contains VLAN tag information * rejects the filter; it contains VLAN tag information
* For the kernel, p is assumed to be a pointer to an mbuf if buflen is 0, * For the kernel, p is assumed to be a pointer to an mbuf if buflen is 0,
* in all other cases, p is a pointer to a buffer and buflen is its size. * in all other cases, p is a pointer to a buffer and buflen is its size.
* *
* Thanks to Ani Sinha <ani@arista.com> for providing initial implementation * Thanks to Ani Sinha <ani@arista.com> for providing initial implementation
*/ */
#if defined(SKF_AD_VLAN_TAG_PRESENT) #if defined(SKF_AD_VLAN_TAG_PRESENT)
u_int u_int
pcap_filter_with_aux_data(const struct bpf_insn *pc, const u_char *p, pcap_filter_with_aux_data(const struct bpf_insn *pc, const u_char *p,
u_int wirelen, u_int buflen, const struct bpf_aux_data *aux_data) u_int wirelen, u_int buflen, const struct pcap_bpf_aux_data *aux_data)
#else #else
u_int u_int
pcap_filter_with_aux_data(const struct bpf_insn *pc, const u_char *p, pcap_filter_with_aux_data(const struct bpf_insn *pc, const u_char *p,
u_int wirelen, u_int buflen, const struct bpf_aux_data *aux_data _U_) u_int wirelen, u_int buflen, const struct pcap_bpf_aux_data *aux_data _U_)
#endif #endif
{ {
register uint32_t A, X; register uint32_t A, X;
register bpf_u_int32 k; register bpf_u_int32 k;
uint32_t mem[BPF_MEMWORDS]; uint32_t mem[BPF_MEMWORDS];
if (pc == 0) if (pc == 0)
/* /*
* No filter means accept all. * No filter means accept all.
*/ */
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)