> 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
>
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
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.