When creating a packet socket, it is possible to defer receiving any packets on that socket by giving socket(2) 0 for the protocol: fd = socket(PF_PACKET, SOCK_RAW, 0); That socket can later set whic
After reading the patch, I found some problems. 1. The patch doesn't allow "protocol == 0" either, even exit the funtion at an earlier stage by shifting the place of "if (protocol == 0) goto out_unlo
That's the point. The patch allows one to remove a socket from the ptype_all list (or ptype_base hash) after it's been added. Userspace can make the socket active again by binding to an actual protoc
When creating a packet socket, it is possible to defer receiving any packets on that socket by giving socket(2) 0 for the protocol: fd = socket(PF_PACKET, SOCK_RAW, 0); That socket can later set whic
After reading the patch, I found some problems. 1. The patch doesn't allow "protocol == 0" either, even exit the funtion at an earlier stage by shifting the place of "if (protocol == 0) goto out_unlo
That's the point. The patch allows one to remove a socket from the ptype_all list (or ptype_base hash) after it's been added. Userspace can make the socket active again by binding to an actual protoc