Re: dhcrelay bpf bugs

2018-06-05 Thread Reyk Floeter
> Am 05.06.2018 um 16:27 schrieb asaxena9021 : > > Hi David, > > I am facing this problem with lpf.c > > In function receive_packet , My packet is somehow is getting corrupted. > > DHCP packet content is like below: > > DHCP Packet Content: >opcode : 15 >

Re: dhcrelay bpf bugs

2018-06-05 Thread asaxena9021
Hi David, I am facing this problem with lpf.c In function receive_packet , My packet is somehow is getting corrupted. DHCP packet content is like below: DHCP Packet Content: opcode : 15 hardwaretype : 205 hlen : 8

dhcrelay bpf bugs

2017-11-23 Thread David Gwynne
there are two bugs in the bpf code in dhcrelay. they're obviously rare though. the worst one is when skipping a packet, dhcrelay uses the = operator instead of + when summing the bpf header and capture length. the second bug is also in calculating how much space a packet consumes to skip over it.