The Python parsing logic in zaku has a few corner cases that it does not handle. I would suggest trying the destiny version of this function.
def convert_to_eaddr(val): if isinstance(val, ethernetaddr): return val if isinstance(val, array.array): val = val.tostring() if isinstance(val, str) and len(val) == ethernetaddr.LEN: return create_bin_eaddr(val) elif isinstance(val, str) or isinstance(val, int) or isinstance(val, long): return create_eaddr(val) return None Regards KK On 5 January 2011 15:51, Yiannis Yiakoumis <yiann...@stanford.edu> wrote: > In the pcap files there are some unexpected packet-ins : > > -> Multicast Listener Report Message v2 > -> Neighbour Solicitation. > > These are IPv6 packets, with src "::" and dest ff02::16. > > 1. Why my switch receives these packets. Should I disable IPv6 or any daemon > at mininet hosts? > 2. Could Nox be meshed-up while trying to decode these? > > Y. > > > On Wed, Jan 5, 2011 at 3:37 PM, Bob Lantz <rla...@cs.stanford.edu> wrote: >> >> As I recall the problem had to do with certain Nox routines trying to be >> smart and accept either a binary MAC ('\1\2\3\4\5\6') or one in ASCII >> ('01:02:03:04:05:06'). If it has ASCII 58, ':', it assumes that it's an >> ASCII MAC and various errors occur. I thought the problem was fixed >> however... >> -Bob >> On Jan 5, 2011, at 2:51 PM, Yiannis Yiakoumis wrote: >> >> it might be cause I remember another address that started with 58 as well. >> What's this bug? I am using zaku.. >> >> Y. >> >> On Wed, Jan 5, 2011 at 2:40 PM, Bob Lantz <rla...@cs.stanford.edu> wrote: >>> >>> Is this because we're using an older version of NOX that still has the >>> colon (i.e. chr(58)) bug? >>> >>> On Jan 5, 2011, at 2:06 PM, Yiannis Yiakoumis wrote: >>> >>> > Hi, >>> > >>> > I am writing a simple script using Mininet and Nox. When I don't set >>> > the setAutoMacs=True in Mininet, randomly selected MACs seem to cause >>> > problems to Nox. Nox just shows an "invalid ethernet addr" message and >>> > skips >>> > the packet. It comes from nox/lib/util.py, lines 278-285. Here is an >>> > output >>> > : >>> > >>> > array('B', [2, 129, 31, 58, 172, 59]) >>> > invalid ethernet addr >>> > array('B', [2, 129, 31, 58, 172, 59]) >>> > invalid ethernet addr >>> > array('B', [2, 129, 31, 58, 172, 59]) >>> > invalid ethernet addr >>> > array('B', [2, 129, 31, 58, 172, 59]) >>> > invalid ethernet addr >>> > array('B', [2, 129, 31, 58, 172, 59]) >>> > invalid ethernet addr >>> > array('B', [2, 129, 31, 58, 172, 59]) >>> > invalid ethernet addr >>> > >>> > Setting setAutoMacs=True seems to solve the problem... >>> > >>> > Thanks, >>> > Y. >>> > _______________________________________________ >>> > mininet-dev mailing list >>> > mininet-...@lists.stanford.edu >>> > https://mailman.stanford.edu/mailman/listinfo/mininet-dev >>> >> >> > > _______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org