Lines Matching refs:ed
195 struct en_desc *ed; in ether_add_proto_internal() local
301 ed = &desc_blk->block_ptr[i]; in ether_add_proto_internal()
302 ed->protocol_family = protocol; in ether_add_proto_internal()
303 ed->data[0] = 0; in ether_add_proto_internal()
304 ed->data[1] = 0; in ether_add_proto_internal()
310 ed->type = DLIL_DESC_ETYPE2; in ether_add_proto_internal()
311 ed->data[0] = *(u_int16_t*)demux->data; in ether_add_proto_internal()
315 ed->type = DLIL_DESC_SAP; in ether_add_proto_internal()
316 bcopy(demux->data, &ed->data[0], 3); in ether_add_proto_internal()
320 u_int8_t* pDest = ((u_int8_t*)&ed->data[0]) + 3; in ether_add_proto_internal()
321 ed->type = DLIL_DESC_SNAP; in ether_add_proto_internal()
362 struct en_desc *ed = desc_blk ? desc_blk->block_ptr : NULL; in ether_demux() local
459 if ((ed[i].type == type) && in ether_demux()
460 (ed[i].data[0] == ether_type)) { in ether_demux()
461 *protocol_family = ed[i].protocol_family; in ether_demux()
469 if ((ed[i].type == type) && in ether_demux()
470 (ed[i].data[0] == extProto1)) { in ether_demux()
471 *protocol_family = ed[i].protocol_family; in ether_demux()
479 if ((ed[i].type == type) && in ether_demux()
480 (ed[i].data[0] == extProto1) && in ether_demux()
481 (ed[i].data[1] == extProto2)) { in ether_demux()
482 *protocol_family = ed[i].protocol_family; in ether_demux()