So I am trying to create a packet sniffer in C. After following the man7 page I inferred that the socket function should look like this
..... int socketfd = socke