[klibc] [PATCH 1/3] Only peek and discard packets from specified device.

maximilian attems max at stro.at
Tue Mar 29 05:59:30 PDT 2011


On Mon, 28 Mar 2011, Ulrich Dangel wrote:

> This patch fixes a bug on systems with multiple connected network devices.
> As packet_peek uses all devices to receive data instead of a specific
> device. As the return value was never reset it was possible that packets
> from other devices were returned by packet_peek. That means that the
> ifindex did not match any ifindex of the specified devices the packet was
> never removed and packets for the correct device were never processed.
> 
> This patch enhance packet_peek and packet_discard to only work on packages
> for the specified device instead of all packets.
> 
> Signed-off-by: Ulrich Dangel <uli at spamt.net>
> ---
>  usr/kinit/ipconfig/bootp_proto.c |    2 +-
>  usr/kinit/ipconfig/dhcp_proto.c  |    2 +-
>  usr/kinit/ipconfig/main.c        |   16 ++++++----------
>  usr/kinit/ipconfig/packet.c      |   16 +++++++++-------
>  usr/kinit/ipconfig/packet.h      |    6 +++---
>  5 files changed, 20 insertions(+), 22 deletions(-)
> 

applied and pushed out.
(please be patient on kernel.org git mirrors).

thank you.

-- 
maks



More information about the klibc mailing list