Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Elsewhere the sin_family field holds a value with a name of the form AF_…, so it seems reasonable to do so here as well. Also the values of PF_INET and AF_INET are the same. The Coccinelle semantic patch that makes this change is as follows: // @@ struct sockaddr_in sip; …