{"shas":[["f280d06f35677bfdcca6225c4a805f853bd1d5e2","b5cd271b521acc9a180d5ff625e8f9a71c235729@alum.mit.edu","When creating PF_PACKET sockets, fail immediately for most errors.\n\nIf an attempt to create a PF_PACKET socket fails with anything other\nthan EINVAL or EAFNOSUPPORT, treat it as a fatal error; other errors\nprobably mean the problem isn't that you have a crufty old kernel with\nno PF_PACKET support, so don't try a SOCK_PACKET socket, as it'll\nprobably fail, too, and cause the kernel to whine that the app is using\nan obsolete API.\n\nIn all cases where we create a socket, return PCAP_ERROR_PERM_DENIED for\nEPERM and EACCES, PCAP_ERROR for all other errors.\n\nBased on a patch from Gerald Combs.","Guy Harris"]],"ref":"refs/heads/master","size":1,"head":"f280d06f35677bfdcca6225c4a805f853bd1d5e2","push_id":36778680}