David Miller <davem@dave...> wrote:
>
> I'm tempted to say I must be missing something here, since I can't see
> how this could possible work at all. The string passed in should
> be interpreted as the ifindex value, and thus trigger a -ENODEV
> return from AF_PACKET's bind() implementation.
This is using packet_bind_spkt which uses a name instead of ifindex.
As you may recall, I've made a patch to convert it to use the new
(actually it's not-so-new anymore) AF_PACKET interface.