On Fri, May 4, 2012 at 3:40 PM, Balachandran Sivakumar <benignb...@gmail.com > wrote:
> Hi, > > What is the best way to handle bit sized fileds in network > headers, if the data is binary ? The struct module doesn't support > sizes in bits, and I have scenarios where there are fields of 2 bits, > 3 bits and 5 bits in size. Thanks While I never got around to using it much, I remember from PyCon last year that Scapy [http://pypi.python.org/pypi/Scapy] had a pretty extensive library for network packet manipulation. HTH - d _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers