[asterisk-dev] [Code Review] 4156: Test Suite: Allow setting snaplen & buffer_size for packet capturing

Kevin Harwell reviewboard at asterisk.org
Thu Nov 13 17:17:02 CST 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4156/#review13757
-----------------------------------------------------------



/asterisk/trunk/lib/python/asterisk/pcap.py
<https://reviewboard.asterisk.org/r/4156/#comment24244>

    You should be able to go ahead and set the defaults here too if no option is specified for instance : module_config.get('buffer-size', 0)



/asterisk/trunk/lib/python/pcap_listener.py
<https://reviewboard.asterisk.org/r/4156/#comment24243>

    Instead of checking for None here and then setting the value just set these as the defaults on the function parameters (similar to what you did on PcapFile _init_).


- Kevin Harwell


On Nov. 6, 2014, 5:05 p.m., jbigelow wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/4156/
> -----------------------------------------------------------
> 
> (Updated Nov. 6, 2014, 5:05 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Repository: testsuite
> 
> 
> Description
> -------
> 
> This allows setting the snaplen and buffer_size for packet capturing. The defaults set are the same as the defaults that yappcap.PcapLive sets.
> 
> 
> Diffs
> -----
> 
>   /asterisk/trunk/lib/python/pcap_listener.py 5913 
>   /asterisk/trunk/lib/python/asterisk/test_case.py 5913 
>   /asterisk/trunk/lib/python/asterisk/pcap.py 5913 
> 
> Diff: https://reviewboard.asterisk.org/r/4156/diff/
> 
> 
> Testing
> -------
> 
> Used the options to set a lower snaplen and a higher buffer successfully.
> 
> 
> Thanks,
> 
> jbigelow
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20141113/207eb0d4/attachment.html>


More information about the asterisk-dev mailing list