contextual packets when max matches specified
Brought to you by:
jpr5
I found that 'ngrep -n1 -A1 ...' won't work as i expect, i.e. when i want to capture one matching packet i will never see its full content if it was fragmented (that i expect to achieve by the option -A): option -A just gets ignored in this case. This is because matching packet always forces clean_exit(0) at the end of function process(). This patch will allow to dump specified context length even when option -n was specified.
the patch