diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-09-01 00:36:07 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-09-01 00:36:07 -0700 |
commit | b26d8d2aa849c8021cdfa872901e82fb469460ef (patch) | |
tree | 1f5556cba01bb8e0b7dff5e5b516b33f9a7735fd /gencode.c | |
parent | 7f1c9ba7adbc0a8bdda832b406cdfcf02cd80dae (diff) |
Fix a problem that shows up with a max packet count passed to pcap_dispatch().
If the last record read in by a read() from a BPF device isn't a
multiple of the alignment value for BPF_WORDALIGN(), we could increment
bp past ep; handle that case.
While we're at it, properly set p->bp and p->cc in the case where we
break out of the loop due to a pcap_breakloop() call.
Diffstat (limited to 'gencode.c')
0 files changed, 0 insertions, 0 deletions