Lines Matching refs:trillhdr

200 	trill_header_t *trillhdr;  in trill_dest_fwd()  local
238 trillhdr = (struct trill_header *)(fwd_mp->b_rptr + ethhdrlen); in trill_dest_fwd()
243 trillhdr->th_egressnick = (multidest ? dtnick:adj_nick); in trill_dest_fwd()
245 trillhdr->th_ingressnick = tip->ti_nick; in trill_dest_fwd()
247 if (!VALID_NICK(trillhdr->th_ingressnick)) in trill_dest_fwd()
252 ASSERT(trillhdr->th_hopcount != 0); in trill_dest_fwd()
253 trillhdr->th_hopcount--; in trill_dest_fwd()
257 DTRACE_PROBE1(trill__dest__fwd__tx, trill_header_t *, &trillhdr); in trill_dest_fwd()
378 trill_header_t *trillhdr; in trill_recv() local
403 trillhdr = (trill_header_t *)mp->b_rptr; in trill_recv()
404 if (trillhdr->th_version != TRILL_PROTOCOL_VERS) { in trill_recv()
406 trill_header_t *, trillhdr); in trill_recv()
411 if (!VALID_NICK(trillhdr->th_egressnick) || in trill_recv()
412 !VALID_NICK(trillhdr->th_ingressnick)) { in trill_recv()
414 trill_header_t *, trillhdr); in trill_recv()
423 if (trillhdr->th_ingressnick == ournick) in trill_recv()
427 min_size += GET_TRILL_OPTS_LEN(trillhdr) * sizeof (uint32_t) + in trill_recv()
433 trillhdr = (trill_header_t *)mp->b_rptr; in trill_recv()
436 (GET_TRILL_OPTS_LEN(trillhdr) * sizeof (uint32_t)); in trill_recv()
450 trillhdr = (trill_header_t *)mp->b_rptr; in trill_recv()
461 if (!trillhdr->th_multidest) { in trill_recv()
468 if (trillhdr->th_egressnick == trillhdr->th_ingressnick) in trill_recv()
472 trill_header_t *, trillhdr); in trill_recv()
473 if (trillhdr->th_egressnick == ournick) { in trill_recv()
475 trill_recv_local(tsock, mp, trillhdr->th_ingressnick); in trill_recv()
476 } else if (trillhdr->th_hopcount > 0) { in trill_recv()
477 trill_dest_fwd(tip, mp, trillhdr->th_egressnick, in trill_recv()
494 if ((dest = trill_node_lookup(tip, trillhdr->th_egressnick)) == NULL) in trill_recv()
509 trill_header_t *, trillhdr, trill_node_t *, dest); in trill_recv()
518 if ((source = trill_node_lookup(tip, trillhdr->th_ingressnick)) == NULL) in trill_recv()
522 trillhdr->th_egressnick) in trill_recv()
534 trillhdr->th_egressnick != treeroot) { in trill_recv()
537 trill_header_t *, trillhdr, trill_node_t *, in trill_recv()
544 if (trillhdr->th_hopcount == 0) in trill_recv()
549 trillhdr, trill_node_t *, source); in trill_recv()
554 trill_multidest_fwd(tip, mp, trillhdr->th_egressnick, in trill_recv()
555 trillhdr->th_ingressnick, B_TRUE, srcaddr, inner_vlan, in trill_recv()
563 trill_recv_local(tsock, mp, trillhdr->th_ingressnick); in trill_recv()