| /mOS-networking-stack/core/src/ |
| H A D | eth_out.c | 53 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 D | debug.c | 66 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 D | eth_in.c | 14 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 D | ip_in.c | 38 (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 D | mos_api.c | 430 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 D | ip_out.c | 50 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 D | arp.c | 391 haddr = pctx->p.ethh->h_dest; in ForwardARPPacket() 398 memcpy(arph, (pctx->p.ethh + 1), sizeof(struct arphdr)); in ForwardARPPacket()
|
| H A D | api.c | 956 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 D | tcp_out.c | 238 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 D | mos_api.h | 148 struct ethhdr *ethh; member 167 #define PKT_INFO_LEN offsetof(struct pkt_info, ethh)
|
| /mOS-networking-stack/core/include/ |
| H A D | mos_api.h | 148 struct ethhdr *ethh; member 167 #define PKT_INFO_LEN offsetof(struct pkt_info, ethh)
|