Lines Matching refs:ed
196 struct en_desc *ed; in ether_add_proto_internal() local
302 ed = &desc_blk->block_ptr[i]; in ether_add_proto_internal()
303 ed->protocol_family = protocol; in ether_add_proto_internal()
304 ed->data[0] = 0; in ether_add_proto_internal()
305 ed->data[1] = 0; in ether_add_proto_internal()
311 ed->type = DLIL_DESC_ETYPE2; in ether_add_proto_internal()
312 ed->data[0] = *(u_int16_t*)demux->data; in ether_add_proto_internal()
316 ed->type = DLIL_DESC_SAP; in ether_add_proto_internal()
317 bcopy(demux->data, &ed->data[0], 3); in ether_add_proto_internal()
321 u_int8_t* pDest = ((u_int8_t*)&ed->data[0]) + 3; in ether_add_proto_internal()
322 ed->type = DLIL_DESC_SNAP; in ether_add_proto_internal()
363 struct en_desc *ed = desc_blk ? desc_blk->block_ptr : NULL; in ether_demux() local
466 if ((ed[i].type == type) && in ether_demux()
467 (ed[i].data[0] == ether_type)) { in ether_demux()
468 *protocol_family = ed[i].protocol_family; in ether_demux()
476 if ((ed[i].type == type) && in ether_demux()
477 (ed[i].data[0] == extProto1)) { in ether_demux()
478 *protocol_family = ed[i].protocol_family; in ether_demux()
486 if ((ed[i].type == type) && in ether_demux()
487 (ed[i].data[0] == extProto1) && in ether_demux()
488 (ed[i].data[1] == extProto2)) { in ether_demux()
489 *protocol_family = ed[i].protocol_family; in ether_demux()