Lines Matching refs:llc
134 struct llc *llc;
138 /* len = msgdsize( m0 ) + sizeof( struct llc ); */
140 if (( m1 = allocb( sizeof( struct llc ), BPRI_HI )) == NULL ) {
144 m1->b_wptr = m1->b_rptr + sizeof( struct llc );
146 llc = (struct llc *)m1->b_rptr;
148 llc->llc_dsap = llc->llc_ssap = LLC_SNAP_LSAP;
149 llc->llc_control = LLC_UI;
151 bcopy( aarp_org_code, llc->llc_org_code, sizeof( aarp_org_code ));
153 bcopy( at_org_code, llc->llc_org_code, sizeof( aarp_org_code ));
158 llc->llc_ether_type = htons( type );
190 struct llc *llc;
211 if ( m0->b_wptr - m0->b_rptr < sizeof( struct llc )) {
215 llc = (struct llc *)m0->b_rptr;
216 if ( llc->llc_dsap != LLC_SNAP_LSAP ||
217 llc->llc_ssap != LLC_SNAP_LSAP ||
218 llc->llc_control != LLC_UI ) {
223 if ( bcmp( llc->llc_org_code, at_org_code,
225 ntohs( llc->llc_ether_type ) == ETHERTYPE_AT ) {
226 adjmsg( m0, sizeof( struct llc ));
228 } else if ( bcmp( llc->llc_org_code, aarp_org_code,
230 ntohs( llc->llc_ether_type ) == ETHERTYPE_AARP ) {
231 adjmsg( m0, sizeof( struct llc ));