Home
last modified time | relevance | path

Searched refs:ethh (Results 1 – 11 of 11) sorted by relevance

/mOS-networking-stack/core/src/
H A Deth_out.c53 struct ethhdr *ethh, int eth_len) in FillOutPacketEthContext() argument
58 pctx->p.ethh = ethh; in FillOutPacketEthContext()
68 struct ethhdr *ethh; in EthernetOutput() local
90 ethh = (struct ethhdr *)buf; in EthernetOutput()
92 ethh->h_source[i] = g_config.mos->netdev_table->ent[nif]->haddr[i]; in EthernetOutput()
93 ethh->h_dest[i] = dst_haddr[i]; in EthernetOutput()
95 ethh->h_proto = htons(h_proto); in EthernetOutput()
99 ethh, iplen + ETHERNET_HEADER_LEN); in EthernetOutput()
101 return (uint8_t *)(ethh + 1); in EthernetOutput()
130 memcpy(buf, pctx->p.ethh, pctx->p.eth_len); in ForwardEthernetFrame()
H A Ddebug.c66 struct ethhdr *ethh; in DumpPacket() local
80 ethh->h_source[0], in DumpPacket()
81 ethh->h_source[1], in DumpPacket()
82 ethh->h_source[2], in DumpPacket()
83 ethh->h_source[3], in DumpPacket()
86 ethh->h_dest[0], in DumpPacket()
87 ethh->h_dest[1], in DumpPacket()
88 ethh->h_dest[2], in DumpPacket()
89 ethh->h_dest[3], in DumpPacket()
90 ethh->h_dest[4], in DumpPacket()
[all …]
H A Deth_in.c14 int index, struct ethhdr *ethh, int eth_len) in FillInPacketEthContext() argument
19 pctx->p.ethh = ethh; in FillInPacketEthContext()
32 struct ethhdr *ethh = (struct ethhdr *)pkt_data; in ProcessPacket() local
34 u_short h_proto = ntohs(ethh->h_proto); in ProcessPacket()
54 FillInPacketEthContext(&pctx, cur_ts, ifidx, index, ethh, len); in ProcessPacket()
H A Dip_in.c38 (struct iphdr *)((char *)pctx->p.ethh + sizeof(struct ethhdr)); in ProcessInIPv4Packet()
59 EVAL_BPFFILTER(walk->raw_pkt_fcode, (uint8_t *)pctx->p.ethh, in ProcessInIPv4Packet()
99 (unsigned char *)pctx->p.ethh, pctx->p.eth_len); in ProcessInIPv4Packet()
H A Dmos_api.c430 memcpy(frame, from->ethh, from->eth_len); in ClonePacketCtx()
436 to->ethh = (struct ethhdr *)frame; in ClonePacketCtx()
502 if (!cur_pkt_ctx->p.ethh) { in mtcp_getlastpkt()
937 struct ethhdr *ethh; in mtcp_setlastpkt() local
1014 if ((ethh=cur_pkt_ctx->p.ethh) == NULL || in mtcp_setlastpkt()
1033 memcpy((uint8_t *)ethh + offset, data, datalen); in mtcp_setlastpkt()
1038 if (cur_pkt_ctx->p.ethh == NULL || in mtcp_setlastpkt()
1097 iph = (struct iphdr *)(cur_pkt_ctx->p.ethh + 1); in mtcp_setlastpkt()
1143 iph = (struct iphdr *)(cur_pkt_ctx->p.ethh + 1); in mtcp_setlastpkt()
1181 iph = (struct iphdr *)(cur_pkt_ctx->p.ethh + 1); in mtcp_setlastpkt()
[all …]
H A Dip_out.c50 haddr = pctx->p.ethh->h_dest; in ForwardIPPacket()
85 pctx->p.ethh->h_source[i] = g_config.mos->netdev_table->ent[pctx->out_ifidx]->haddr[i]; in ForwardIPPacket()
86 pctx->p.ethh->h_dest[i] = haddr[i]; in ForwardIPPacket()
H A Darp.c391 haddr = pctx->p.ethh->h_dest; in ForwardARPPacket()
398 memcpy(arph, (pctx->p.ethh + 1), sizeof(struct arphdr)); in ForwardARPPacket()
H A Dapi.c956 struct ethhdr *ethh; in eval_bpf_5tuple() local
960 ethh = (struct ethhdr *)buf; in eval_bpf_5tuple()
961 ethh->h_proto = htons(ETH_P_IP); in eval_bpf_5tuple()
962 iph = (struct iphdr *)(ethh + 1); in eval_bpf_5tuple()
H A Dtcp_out.c238 EVAL_BPFFILTER(walk->raw_pkt_fcode, (uint8_t *)pctx.p.ethh, in SendTCPPacketStandalone()
382 EVAL_BPFFILTER(walk->raw_pkt_fcode, (uint8_t *)pctx.p.ethh, in SendTCPPacket()
/mOS-networking-stack/core/src/include/
H A Dmos_api.h148 struct ethhdr *ethh; member
167 #define PKT_INFO_LEN offsetof(struct pkt_info, ethh)
/mOS-networking-stack/core/include/
H A Dmos_api.h148 struct ethhdr *ethh; member
167 #define PKT_INFO_LEN offsetof(struct pkt_info, ethh)