open_socket
if (open_socket(ifp, ETHERTYPE_IP) == -1)
int open_socket(struct interface *, int);
fd = open_socket(pn);
fd = open_socket(sockname);
static int open_socket(const char *);