netdev
[Top] [All Lists]

af_packet.c bug?

To: "'netdev@xxxxxxxxxxx'" <netdev@xxxxxxxxxxx>
Subject: af_packet.c bug?
From: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Date: Mon, 28 Mar 2005 11:19:48 -0800
Organization: Candela Technologies
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.3) Gecko/20041020

What is the '13' doing here? Maybe it should be IFNAMSIZ?

        /*
         *      Find the device first to size check it
         */

        saddr->spkt_device[13] = 0;
        dev = dev_get_by_name(saddr->spkt_device);
        err = -ENODEV;
        if (dev == NULL)
                goto out_unlock;



--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc  http://www.candelatech.com


<Prev in Thread] Current Thread [Next in Thread>