sys/netccitt/pk_llcsubr.c
/*
 * Glue between X.25 and LLC2
 */
Glue between X.25 and LLC2
Glue between X . 25 and LLC2
int
x25_llcglue(int prc, struct sockaddr *addr)
{
	register struct sockaddr_x25 *sx25 = (struct sockaddr_x25 *)addr;
	register struct x25_ifaddr *x25ifa;
	struct dll_ctlinfo ctlinfo;
	if((x25ifa = (struct x25_ifaddr *)ifa_ifwithaddr(addr)) == 0)
		return 0;
	ctlinfo.dlcti_cfg  =
	    (struct dllconfig *)(((struct sockaddr_x25 *)(&x25ifa->ia_xc))+1);
	ctlinfo.dlcti_lsap = LLC_X25_LSAP;
	return ((int)llc_ctlinput(prc, addr, (caddr_t)&ctlinfo));
}
int x25_llcglue ( int prc , struct sockaddr * addr ) { register struct sockaddr_x25 * sx25 = ( struct sockaddr_x25 * ) addr ; register struct x25_ifaddr * x25ifa ; struct dll_ctlinfo ctlinfo ; if ( ( x25ifa = ( struct x25_ifaddr * ) ifa_ifwithaddr ( addr ) ) == 0 ) return 0 ; ctlinfo . dlcti_cfg = ( struct dllconfig * ) ( ( ( struct sockaddr_x25 * ) ( & x25ifa -> ia_xc ) ) + 1 ) ; ctlinfo . dlcti_lsap = LLC_X25_LSAP ; return ( ( int ) llc_ctlinput ( prc , addr , ( caddr_t ) & ctlinfo ) ) ; }
Glue between X.25 and LLC2
Glue between X . 25 and LLC2