Lines Matching refs:iplen
224 u16_t iplen, struct sockaddr_in *peer);
226 u16_t iplen, struct sockaddr_in *peer);
235 static void pxping_pmgr_forward_inbound(struct pxping *pxping, u16_t iplen);
1141 u16_t iplen, ipoff;
1195 iplen = IPH_LEN(iph);
1198 iplen = ntohs(iplen);
1202 iplen += IP_HLEN; /* we verified there are no options */
1203 IPH_LEN_SET(iph, htons(iplen));
1205 if (nread < iplen) {
1207 __func__, (unsigned int)nread, (unsigned int)iplen));
1211 if (iplen < IP_HLEN + ICMP_HLEN) {
1213 __func__, iplen));
1219 pxping_pmgr_icmp4_echo(pxping, iplen, &sin);
1222 pxping_pmgr_icmp4_error(pxping, iplen, &sin);
1238 u16_t iplen, struct sockaddr_in *peer)
1329 pxping_pmgr_forward_inbound(pxping, iplen);
1339 u16_t iplen, struct sockaddr_in *peer)
1360 oiplen = iplen - oipoff; /* NB: truncated length, not IPH_LEN(oiph) */
1492 pxping_pmgr_forward_inbound(pxping, iplen);
1871 pxping_pmgr_forward_inbound(struct pxping *pxping, u16_t iplen)
1877 p = pbuf_alloc(PBUF_LINK, iplen, PBUF_RAM);
1880 __func__, (unsigned int)iplen));
1884 error = pbuf_take(p, pollmgr_udpbuf, iplen);
1887 __func__, (unsigned int)iplen));