On Wednesday, December 19, 2018 at 2:11:26 PM UTC-5, Jeff Ross wrote:
>
>
>   File "bin/user/interceptor.py", line 343, in run
>     self.decode_ip_packet(0, data, ts)
> NameError: global name 'data' is not defined
>
>
try changing this:

        self.decode_ip_packet(0, data, ts)

to this:

        self.decode_ip_packet(0, pkt, ts)


 

> Second question--I've seen that promiscuous should be a configuration 
> option and I believe that my iface should be in promiscuous mode.  I tried 
> hard-coding it by setting pval = 1 just below line 313 in interceptor.py.  
> That appeared to run but captures no packets.  Ctrl-C then brings up the 
> NameError: global name 'data' is not defined so I suspect it isn't actually 
> getting to self.run.
>

the 'data' is a typo - either change 'data' to 'pkt' or change 'pkt' (a few 
lines earlier) to 'data'

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to