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
563 if ((ed[i].type == type) && in ether_demux()
564 (ed[i].data[0] == ether_type)) { in ether_demux()
565 *protocol_family = ed[i].protocol_family; in ether_demux()
573 if ((ed[i].type == type) && in ether_demux()
574 (ed[i].data[0] == extProto1)) { in ether_demux()
575 *protocol_family = ed[i].protocol_family; in ether_demux()
583 if ((ed[i].type == type) && in ether_demux()
584 (ed[i].data[0] == extProto1) && in ether_demux()
585 (ed[i].data[1] == extProto2)) { in ether_demux()
586 *protocol_family = ed[i].protocol_family; in ether_demux()