Lines Matching refs:iphdr
181 SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN);
241 if (!IP_ADDRESSES_AND_ID_MATCH(&r->iphdr, fraghdr)) {
304 SMEMCPY(&(ipr->iphdr), fraghdr, IP_HLEN);
530 if (IP_ADDRESSES_AND_ID_MATCH(&ipr->iphdr, fraghdr)) {
547 ((lwip_ntohs(IPH_OFFSET(&ipr->iphdr)) & IP_OFFMASK) != 0)) {
548 /* ipr->iphdr is not the header from the first fragment, but fraghdr is
549 * -> copy fraghdr into ipr->iphdr since we want to have the header
552 SMEMCPY(&ipr->iphdr, fraghdr, IP_HLEN);
583 SMEMCPY(fraghdr, &ipr->iphdr, IP_HLEN);
694 struct ip_hdr *iphdr;
703 iphdr = original_iphdr;
704 LWIP_ERROR("ip4_frag() does not support IP options", IPH_HL(iphdr) * 4 == IP_HLEN, return ERR_VAL);
707 tmp = lwip_ntohs(IPH_OFFSET(iphdr));
732 iphdr = (struct ip_hdr*)rambuf->payload;
746 iphdr = (struct ip_hdr *)rambuf->payload;
797 IPH_OFFSET_SET(iphdr, lwip_htons(tmp));
798 IPH_LEN_SET(iphdr, lwip_htons(fragsize + IP_HLEN));
799 IPH_CHKSUM_SET(iphdr, 0);
802 IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, IP_HLEN));