As the FAQ says, you are better off explaining the errors that you get than just saying that you got errors.
But... The eth.type shouldn't be a packet class (llc). It should be a number. In the case of LLC, it should actually be the frame length. eth.payload should be an instance of the llc class. Hope that helps. Sidenote: getting the llc class from ethernet._llc is not something you should be doing. Unfortunately, it looks like you can't import pkt and do pkt.llc to get the class and have to import llc itself. This is likely a bug and should probably be posted on the issue tracker so that it can get fixed. -- Murphy On Apr 3, 2014, at 8:06 PM, Weiyang Mo <moweiyang1...@gmail.com> wrote: > Hello, > > Would anyone guide me how to construct an LLC packet? I saw it is different > form IPV4 and VLAN. I tried the following but get errors: > > ether = ethernet() > ether.type=ethernet._llc > ether.dst = EthAddr("11:11:11:11:11:11") > ether.src = EthAddr("68:05:CA:04:D9:BE") > ether.set_payload = "Hello" > > Thanks very much. > > Weiyang >