Lines Matching refs:llc
206 struct llc llc;
247 if ( m->m_len < sizeof( struct llc )) {
248 printf( "atef_input size llc\n" );
252 bcopy( mtod( m, caddr_t ), &llc, sizeof( struct llc ));
253 if ( llc.llc_dsap != LLC_SNAP_LSAP || llc.llc_ssap != LLC_SNAP_LSAP ||
254 llc.llc_control != LLC_UI ) {
264 m_adj( m, sizeof( struct llc ));
266 m_adj( m, sizeof( struct llc ) - sizeof( struct ifnet *));
275 if ( ntohs( llc.llc_ether_type ) == ETHERTYPE_AT &&
276 bcmp( llc.llc_org_code, at_org_code,
282 if ( ntohs( llc.llc_ether_type ) == ETHERTYPE_AARP &&
283 bcmp( llc.llc_org_code, aarp_org_code,
317 struct llc llc;
337 * In the phase 2 case, we need to prepend an mbuf for the llc header.
339 * value, we m_copy() the first mbuf, and use it for our llc header.
346 if ( M_HASCL( m ) || m->m_off - MMINOFF < sizeof( struct llc )) {
360 m->m_off = MMAXOFF - sizeof( struct llc );
361 m->m_len = sizeof( struct llc );
363 m->m_off -= sizeof( struct llc );
364 m->m_len += sizeof( struct llc );
367 llc.llc_dsap = llc.llc_ssap = LLC_SNAP_LSAP;
368 llc.llc_control = LLC_UI;
369 bcopy( at_org_code, llc.llc_org_code, sizeof( at_org_code ));
370 llc.llc_ether_type = htons( ETHERTYPE_AT );
371 bcopy( &llc, mtod( m, caddr_t ), sizeof( struct llc ));