Re: af_packet.c bug?
From: Thomas Graf <tgraf@suug.ch>
Date: 2005-03-28 19:55:57
From: Thomas Graf <tgraf@suug.ch>
Date: 2005-03-28 19:55:57
* Ben Greear [ref] 2005-03-28 11:19
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;
Seems so, please adopt the size of spkt_device in struct sockaddr_pkt as well if you change it, it's currently hardcoded as 14.