Example #1
0
File: rose.c Project: decasm/iyaml
static int ROSE_hinput(char *bufp, struct sockaddr *sap)
{
    if (ROSE_input(0, bufp, sap) < 0)
	return (-1);
    sap->sa_family = ARPHRD_ROSE;
    return (0);
}
Example #2
0
static int ROSE_hinput(char *bufp, struct sockaddr_storage *sasp)
{
    struct sockaddr *sap = (struct sockaddr *)sasp;
    if (ROSE_input(0, bufp, sasp) < 0)
	return (-1);
    sap->sa_family = ARPHRD_ROSE;
    return (0);
}