Lines Matching refs:eth_hdr
447 tETH_HDR eth_hdr;
449 // memcpy(ð_hdr.h_dest, local_addr, ETH_ADDR_LEN);
451 memcpy(ð_hdr.h_dest, dst, ETH_ADDR_LEN);
452 memcpy(ð_hdr.h_src, src, ETH_ADDR_LEN);
453 eth_hdr.h_proto = htons(proto);
455 memcpy(packet, ð_hdr, sizeof(tETH_HDR));
552 static int forward_bnep(tETH_HDR* eth_hdr, BT_HDR *hdr) {
553 int broadcast = eth_hdr->h_dest[0] & 1;
560 (broadcast || memcmp(btpan_cb.conns[i].eth_addr, eth_hdr->h_dest, sizeof(BD_ADDR)) == 0
561 || memcmp(btpan_cb.conns[i].peer, eth_hdr->h_dest, sizeof(BD_ADDR)) == 0)) {
562 int result = PAN_WriteBuf(handle, eth_hdr->h_dest, eth_hdr->h_src, ntohs(eth_hdr->h_proto), hdr, 0);