Searched refs:ihl (Results 1 – 9 of 9) sorted by relevance
| /mOS-networking-stack/core/src/ |
| H A D | debug.c | 100 udph = (struct udphdr *)((uint32_t *)iph + iph->ihl); in DumpPacket() 101 tcph = (struct tcphdr *)((uint32_t *)iph + iph->ihl); in DumpPacket() 118 if (ip_fast_csum(iph, iph->ihl)) { in DumpPacket() 123 correct_csum = ip_fast_csum(iph, iph->ihl); in DumpPacket() 165 udph = (struct udphdr *)((uint32_t *)iph + iph->ihl); in DumpIPPacket() 166 tcph = (struct tcphdr *)((uint32_t *)iph + iph->ihl); in DumpIPPacket() 183 if (ip_fast_csum(iph, iph->ihl)) { in DumpIPPacket() 223 udph = (struct udphdr *)((uint32_t *)iph + iph->ihl); in DumpIPPacketToFile() 224 tcph = (struct tcphdr *)((uint32_t *)iph + iph->ihl); in DumpIPPacketToFile() 241 if (ip_fast_csum(iph, iph->ihl)) { in DumpIPPacketToFile()
|
| H A D | icmp.c | 16 #define IP_NEXT_PTR(iph) ((uint8_t *)iph + (iph->ihl << 2)) 105 iph->ihl = IP_HEADER_LEN >> 2; in ICMPOutput() 116 iph->check = ip_fast_csum(iph, iph->ihl); in ICMPOutput() 157 if (ICMPChecksum((uint16_t *) icmph, pctx->p.ip_len - (pctx->p.iph->ihl << 2) )) in ProcessICMPECHORequest() 162 (uint16_t) (pctx->p.ip_len - (pctx->p.iph->ihl << 2) - sizeof(struct icmphdr)) ); in ProcessICMPECHORequest()
|
| H A D | mos_api.c | 443 (struct tcphdr *)(((uint8_t *)(to->iph)) + (to->iph->ihl<<2)) : NULL; in ClonePacketCtx() 1046 if (offset + datalen > (iph->ihl<<2)) { in mtcp_setlastpkt() 1062 cur_pkt_ctx->p.tcph = (struct tcphdr *)((uint8_t *)iph + (iph->ihl<<2)); in mtcp_setlastpkt() 1100 (tcph=(struct tcphdr *)((uint8_t *)iph + (iph->ihl<<2))) == NULL) { in mtcp_setlastpkt() 1144 tcph = (struct tcphdr *)((uint8_t *)iph + (iph->ihl<<2)); in mtcp_setlastpkt() 1148 (iph->ihl<<2) - (tcph->doff<<2)) { in mtcp_setlastpkt() 1164 (tcph->doff<<2) - (iph->ihl<<2); in mtcp_setlastpkt() 1171 (tcph->doff<<2) - (iph->ihl<<2); in mtcp_setlastpkt() 1183 iph->check = ip_fast_csum(iph, iph->ihl); in mtcp_setlastpkt() 1189 tcph = (struct tcphdr *)((uint8_t *)iph + (iph->ihl<<2)); in mtcp_setlastpkt() [all …]
|
| H A D | ip_out.c | 157 iph->ihl = IP_HEADER_LEN >> 2; in IPOutputStandalone() 174 iph->check = ip_fast_csum(iph, iph->ihl); in IPOutputStandalone() 219 iph->ihl = IP_HEADER_LEN >> 2; in IPOutput() 236 iph->check = ip_fast_csum(iph, iph->ihl); in IPOutput()
|
| H A D | ip_in.c | 74 if (ip_fast_csum(iph, iph->ihl)) { in ProcessInIPv4Packet()
|
| H A D | tcp.c | 419 tcph = (struct tcphdr *)((u_char *)pctx->p.iph + (pctx->p.iph->ihl << 2)); in ProcessInTCPPacket() 429 if (pctx->p.ip_len < ((iph->ihl + tcph->doff) << 2)) in ProcessInTCPPacket()
|
| H A D | dpdk_module.c | 560 m->l3_len = (iph->ihl<<2); in dpdk_dev_ioctl() 564 tcph = (struct tcphdr *)((unsigned char *)iph + (iph->ihl<<2)); in dpdk_dev_ioctl()
|
| H A D | api.c | 963 iph->ihl = IP_HEADER_LEN >> 2; in eval_bpf_5tuple()
|
| /mOS-networking-stack/core/src/include/ |
| H A D | ip_in.h | 10 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument 34 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum() 35 : "1" (iph), "2" (ihl) in ip_fast_csum()
|