version not compatible with python3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dhcpig (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
version 1.5 of dhcpig released some time in 2017 is not compatible with python3. At least that's what the release note for version 1.6 seems to suggest. And what my test on jammy confirms.
$ sudo dhcpig wlp3s0
[ -- ] [INFO] - using interface wlp3s0
[DBG ] Thread 0 - (Sniffer) READY
[DBG ] Thread 1 - (Sender) READY
[--->] DHCP_Discover
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/bin/dhcpig", line 516, in run
sendPacket(
File "/usr/bin/dhcpig", line 413, in sendPacket
sendp(pkt, iface=conf.iface)
File "/usr/lib/
results = __gen_send(socket, x, inter=inter, loop=loop,
File "/usr/lib/
s.send(p)
File "/usr/lib/
return SuperSocket.
File "/usr/lib/
sx = raw(x)
File "/usr/lib/
return bytes(x)
File "/usr/lib/
return self.build()
File "/usr/lib/
p = self.do_build()
File "/usr/lib/
pay = self.do_
File "/usr/lib/
return self.payload.
File "/usr/lib/
pay = self.do_
File "/usr/lib/
return self.payload.
File "/usr/lib/
pay = self.do_
File "/usr/lib/
return self.payload.
File "/usr/lib/
pay = self.do_
File "/usr/lib/
return self.payload.
File "/usr/lib/
pkt = self.self_build()
File "/usr/lib/
p = f.addfield(self, p, val)
File "/usr/lib/
return s + self.i2m(pkt, val)
File "/usr/lib/
oval = b"".join(lval)
File "/usr/lib/
lval = (f.addfield(pkt, b"", f.any2i(pkt, val)) for val in lval) # noqa: E501
File "/usr/lib/
s = self.field.
File "/usr/lib/
return s + self.struct.
struct.error: required argument is not an integer