Home
last modified time | relevance | path

Searched refs:h_proto (Results 1 – 6 of 6) sorted by relevance

/mOS-networking-stack/core/src/
H A Deth_in.c34 u_short h_proto = ntohs(ethh->h_proto); in ProcessPacket() local
56 if (h_proto == ETH_P_IP) { in ProcessPacket()
64 if (h_proto == ETH_P_ARP) { in ProcessPacket()
H A Deth_out.c64 uint16_t h_proto, int nif, unsigned char* dst_haddr, uint16_t iplen, in EthernetOutput() argument
95 ethh->h_proto = htons(h_proto); in EthernetOutput()
H A Ddebug.c78 if (ntohs(ethh->h_proto) != ETH_P_IP) { in DumpPacket()
93 thread_printf(mtcp, mtcp->log_fp, "protocol %04hx ", ntohs(ethh->h_proto)); in DumpPacket()
H A Dmos_api.c1039 cur_pkt_ctx->p.ethh->h_proto != ntohs(ETH_P_IP) || in mtcp_setlastpkt()
H A Dapi.c961 ethh->h_proto = htons(ETH_P_IP); in eval_bpf_5tuple()
/mOS-networking-stack/core/src/include/
H A Deth_out.h17 uint16_t h_proto, int nif, unsigned char* dst_haddr, uint16_t iplen,