#1: Yes, this is a known bug.  time isn't a good value anyway.  There's some 
discussion of this in this thread:
http://noxrepo.org/pipermail/nox-dev/2011-August/007843.html

#2: This looks like a bug.  Thanks.

-- Murphy

On Sep 6, 2011, at 12:04 PM, junaid khalid wrote:

> Hi
> 
> I am  writing a module using python in nox. i have two queries
> 
> 1)
> In ipv4.py file, identification field of ip header is initialized with a 32 
> bit value 
> self.id    =  int(time.time())
> 
> whereas in an ip header the identification field (id) is a 16 bit field. 
> Should it not be initialized with some 16 bit value?
> 
> 2)
> In dhcp.py 
> 
>     def __init__(self, arr=None, prev=None):
>         self.prev = prev
> 
>         if self.prev == None:
>          ...
>          ...
>         else:
>             assert(type(arr) == bytes)
>             self.arr = arr
>             self.parse()
> 
> 
> In a case where my prev is None and i have data in an array it will not parse 
> data. I was wondering what exactly is the reason that the check is on 
> self.prev instead of self.arr ?
> 
> 
> Regards,
> junaid
> 
> _______________________________________________
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev

_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to