Lines Matching refs:ed
206 struct en_desc *ed; in ether_add_proto_internal() local
310 ed = &desc_blk->block_ptr[i]; in ether_add_proto_internal()
311 ed->protocol_family = protocol; in ether_add_proto_internal()
312 ed->data[0] = 0; in ether_add_proto_internal()
313 ed->data[1] = 0; in ether_add_proto_internal()
319 ed->type = DLIL_DESC_ETYPE2; in ether_add_proto_internal()
320 ed->data[0] = *(u_int16_t*)demux->data; in ether_add_proto_internal()
324 ed->type = DLIL_DESC_SAP; in ether_add_proto_internal()
325 bcopy(demux->data, &ed->data[0], 3); in ether_add_proto_internal()
329 u_int8_t* pDest = ((u_int8_t*)&ed->data[0]) + 3; in ether_add_proto_internal()
330 ed->type = DLIL_DESC_SNAP; in ether_add_proto_internal()
458 struct en_desc *ed = desc_blk ? desc_blk->block_ptr : NULL; in ether_demux() local
558 if ((ed[i].type == type) && in ether_demux()
559 (ed[i].data[0] == ether_type)) { in ether_demux()
560 *protocol_family = ed[i].protocol_family; in ether_demux()
568 if ((ed[i].type == type) && in ether_demux()
569 (ed[i].data[0] == extProto1)) { in ether_demux()
570 *protocol_family = ed[i].protocol_family; in ether_demux()
578 if ((ed[i].type == type) && in ether_demux()
579 (ed[i].data[0] == extProto1) && in ether_demux()
580 (ed[i].data[1] == extProto2)) { in ether_demux()
581 *protocol_family = ed[i].protocol_family; in ether_demux()