Lines Matching defs:ethdr
131 struct ether_header *ethdr;
134 ethdr = mtod(m0, struct ether_header *);
135 ethdr->ether_type = htons(ETHERTYPE_IP);
311 struct ether_header *ethdr;
320 ethdr = mtod(m0, struct ether_header *);
321 ethdr->ether_type = type;
322 memcpy(ethdr->ether_dhost, daddr, sizeof(ethdr->ether_dhost));
323 memcpy(ethdr->ether_shost, saddr, sizeof(ethdr->ether_shost));