Lines Matching defs:llchdr
1322 struct llchdr *llchdr;
1360 llchdr = (struct llchdr *)nmp->b_wptr;
1371 sizeof (struct llchdr));
1375 llchdr->llc_ssap = lld->llc_sap;
1378 llchdr->llc_dsap = llcp->llca_sap;
1381 llchdr->llc_ctl = LLC_UI;
1383 nmp->b_wptr += sizeof (struct llchdr);
1387 llchdr->llc_dsap = LLC_SNAP_SAP;
1416 nmp = allocb(sizeof (struct llchdr)+sizeof (struct snaphdr),
1420 llchdr = (struct llchdr *)(nmp->b_rptr);
1421 nmp->b_wptr += sizeof (struct llchdr);
1422 llchdr->llc_dsap = llcp->llca_sap;
1423 llchdr->llc_ssap = lld->llc_sap;
1424 llchdr->llc_ctl = LLC_UI;
1480 struct llchdr *llchdr;
1496 llchdr = (struct llchdr *)(nmp->b_cont->b_rptr);
1510 llchdr = (struct llchdr *)(mp->b_rptr +
1520 msgsap = llchdr->llc_dsap;
1543 if ((llchdr->llc_ctl & ~LLC_P) == LLC_XID)
1545 else if ((llchdr->llc_ctl & ~LLC_P) == LLC_TEST)
1586 (struct snaphdr *)(llchdr+1)))
1601 llchdr->llc_ssap == LLC_GLOBAL_SAP) {
1607 switch (llchdr->llc_ctl) {
2150 struct llchdr *llchdr;
2155 llchdr = (struct llchdr *)(hdr + 1);
2171 sizeof (struct llchdr);
2177 snap = (struct snaphdr *)(llchdr + 1);
2197 llchdr->llc_dsap;
2212 llchdr->llc_ssap;
2241 mp->b_cont->b_rptr += sizeof (struct llchdr);
2246 llchdr = (struct llchdr *)(mp->b_cont->b_rptr);
2248 llchdr->llc_dsap;
2250 llchdr->llc_ssap;
2271 struct llchdr *llchdr;
2272 struct llchdr *msgllc;
2277 llchdr = (struct llchdr *)(hdr + 1);
2281 llchdr = (struct llchdr *)(mp->b_cont->b_rptr);
2285 if (llchdr->llc_ssap & LLC_RESPONSE)
2306 sizeof (struct llchdr));
2335 msgllc = (struct llchdr *)nmp->b_wptr;
2337 nmp->b_wptr += sizeof (struct llchdr);
2339 msgllc->llc_dsap = llchdr->llc_ssap;
2344 msgllc->llc_ctl = llchdr->llc_ctl;
2366 struct llchdr *llchdr;
2376 llchdr = (struct llchdr *)(hdr + 1);
2380 llchdr = (struct llchdr *)mp->b_cont->b_rptr;
2384 xid->dl_flag = (llchdr->llc_ctl & LLC_P) ? DL_POLL_FINAL : 0;
2401 llchdr->llc_dsap;
2419 llchdr->llc_ssap & ~LLC_RESPONSE;
2424 if (!(llchdr->llc_ssap & LLC_RESPONSE)) {
2433 (sizeof (struct ether_header) + sizeof (struct llchdr))) {
2438 sizeof (struct llchdr);
2442 sizeof (struct llchdr)) {
2444 (void) adjmsg(nmp->b_cont, sizeof (struct llchdr));
2462 struct llchdr *llchdr;
2479 nmp = allocb(sizeof (struct ether_header) + sizeof (struct llchdr) +
2491 hdr->ether_type = htons(sizeof (struct llchdr) + msgdsize(mp));
2493 sizeof (struct ether_header) + sizeof (struct llchdr);
2494 llchdr = (struct llchdr *)(hdr + 1);
2517 llchdr = (struct llchdr *)nmp->b_rptr;
2518 nmp->b_wptr += sizeof (struct llchdr);
2521 llchdr->llc_dsap = LLCADDR(xid, xid->dl_dest_addr_offset)->llca_sap;
2522 llchdr->llc_ssap = llc->llc_sap | (req_or_res ? LLC_RESPONSE : 0);
2523 llchdr->llc_ctl =
2543 struct llchdr *llchdr;
2544 struct llchdr *msgllc;
2550 llchdr = (struct llchdr *)mp->b_cont->b_rptr;
2554 llchdr = (struct llchdr *)(hdr + 1);
2558 if (llchdr->llc_ssap & LLC_RESPONSE)
2571 poll_final = llchdr->llc_ctl & LLC_P;
2582 msgllc = (struct llchdr *)nmp->b_cont->b_rptr;
2591 msgllc = (struct llchdr *)(msgether+1);
2594 msgllc->llc_dsap = llchdr->llc_ssap;
2616 struct llchdr *llchdr;
2625 llchdr = (struct llchdr *)(hdr + 1);
2629 llchdr = (struct llchdr *)mp->b_cont->b_rptr;
2633 test->dl_flag = (llchdr->llc_ctl & LLC_P) ? DL_POLL_FINAL : 0;
2650 llchdr->llc_dsap;
2668 llchdr->llc_ssap & ~LLC_RESPONSE;
2673 if (!(llchdr->llc_ssap & LLC_RESPONSE)) {
2682 (sizeof (struct ether_header) + sizeof (struct llchdr))) {
2687 sizeof (struct llchdr);
2691 sizeof (struct llchdr)) {
2693 (void) adjmsg(nmp->b_cont, sizeof (struct llchdr));
2711 struct llchdr *llchdr;
2729 nmp = allocb(sizeof (struct ether_header) + sizeof (struct llchdr),
2741 hdr->ether_type = htons(sizeof (struct llchdr) + msgdsize(mp));
2743 sizeof (struct ether_header) + sizeof (struct llchdr);
2744 llchdr = (struct llchdr *)(hdr + 1);
2769 llchdr = (struct llchdr *)nmp->b_rptr;
2770 nmp->b_wptr += sizeof (struct llchdr);
2773 llchdr->llc_dsap = LLCADDR(test, test->dl_dest_addr_offset)->llca_sap;
2774 llchdr->llc_ssap = llc->llc_sap | (req_or_res ? LLC_RESPONSE : 0);
2775 llchdr->llc_ctl =