Re: af_packet.c bug?
From: Thomas Graf <tgraf@suug.ch>
Date: 2005-03-28 20:17:38
From: Thomas Graf <tgraf@suug.ch>
Date: 2005-03-28 20:17:38
* Ben Greear [ref] 2005-03-28 12:08
quoted
Seems so, please adopt the size of spkt_device in struct sockaddr_pktyou mean adapt maybe?
Of course, stupid typo. ;->
I was also wondering why we couldn't hold a reference to the net-device instead of just it's ifindex when dealing with a bound raw socket.
Saving a netdevice handle in the packet socket is not a problem but doing the same for the packet socket address seems to be non trivial.