static int INET_input(int type, char *bufp, struct sockaddr *sap) { switch (type) { case 1: return (INET_getsock(bufp, sap)); default: return (INET_resolve(bufp, (struct sockaddr_in *) sap)); } }
static int INET_input(int type, char *bufp, struct sockaddr_storage *sasp) { switch (type) { case 1: return INET_getsock(bufp, sasp); case 256: return INET_resolve(bufp, sasp, 1); default: return INET_resolve(bufp, sasp, 0); } }