Home
last modified time | relevance | path

Searched refs:ip_hdr (Results 1 - 14 of 14) sorted by relevance

/third_party/lwip/test/unit/tcp/
H A Dtcp_helper.c52 struct ip_hdr* iphdr; in tcp_create_segment_wnd()
54 u16_t pbuf_len = (u16_t)(sizeof(struct ip_hdr) + sizeof(struct tcp_hdr) + data_len); in tcp_create_segment_wnd()
60 EXPECT_RETNULL(p->len >= (sizeof(struct ip_hdr) + sizeof(struct tcp_hdr))); in tcp_create_segment_wnd()
63 EXPECT_RETNULL(p->len > (sizeof(struct ip_hdr) + sizeof(struct tcp_hdr))); in tcp_create_segment_wnd()
70 iphdr = (struct ip_hdr*)p->payload; in tcp_create_segment_wnd()
80 pbuf_header(p, -(s16_t)sizeof(struct ip_hdr)); in tcp_create_segment_wnd()
105 pbuf_header(p, sizeof(struct ip_hdr)); in tcp_create_segment_wnd()
256 struct ip_hdr *iphdr = (struct ip_hdr*)p->payload; in test_tcp_input()
264 pbuf_header(p, -(s16_t)sizeof(struct ip_hdr)); in test_tcp_input()
[all...]
H A Dtest_tcp.c409 pbuf_header(p, -(s16_t)sizeof(struct ip_hdr)); in START_TEST()
421 pbuf_header(p, sizeof(struct ip_hdr)); in START_TEST()
479 EXPECT_RET(txcounters.num_tx_bytes == sizeof(data1) + sizeof(struct tcp_hdr) + sizeof(struct ip_hdr)); in START_TEST()
493 EXPECT_RET(txcounters.num_tx_bytes == sizeof(data2) + sizeof(struct tcp_hdr) + sizeof(struct ip_hdr)); in START_TEST()
983 EXPECT_RET(txcounters.num_tx_bytes == sizeof(data1a) + sizeof(data1b) + sizeof(struct tcp_hdr) + sizeof(struct ip_hdr)); in START_TEST()
999 EXPECT_RET(txcounters.num_tx_bytes == sizeof(data2a) + sizeof(data2b) + sizeof(struct tcp_hdr) + sizeof(struct ip_hdr)); in START_TEST()
1026 EXPECT_RET(txcounters.num_tx_bytes == sizeof(data3) + sizeof(struct tcp_hdr) + sizeof(struct ip_hdr)); in START_TEST()
1042 EXPECT_RET(txcounters.num_tx_bytes == sizeof(data2a) + sizeof(data2b) + sizeof(struct tcp_hdr) + sizeof(struct ip_hdr)); in START_TEST()
1056 EXPECT_RET(txcounters.num_tx_bytes == sizeof(data3) + sizeof(data4) + sizeof(struct tcp_hdr) + sizeof(struct ip_hdr)); in START_TEST()
/third_party/lwip/src/core/ipv4/
H A Dip4_frag.c247 ip_reass_remove_oldest_datagram(struct ip_hdr *fraghdr, int pbufs_needed) in ip_reass_remove_oldest_datagram()
298 ip_reass_enqueue_new_datagram(struct ip_hdr *fraghdr, int clen) in ip_reass_enqueue_new_datagram()
370 struct ip_hdr *fraghdr; in ip_reass_chain_frag_into_datagram_and_validate()
374 fraghdr = (struct ip_hdr *)new_p->payload; in ip_reass_chain_frag_into_datagram_and_validate()
526 struct ip_hdr *fraghdr; in ip4_reass()
537 fraghdr = (struct ip_hdr *)p->payload; in ip4_reass()
647 fraghdr = (struct ip_hdr *)(ipr->p->payload); in ip4_reass()
768 struct ip_hdr *original_iphdr; in ip4_frag()
769 struct ip_hdr *iphdr; in ip4_frag()
778 original_iphdr = (struct ip_hdr *) in ip4_frag()
[all...]
H A Dicmp.c87 const struct ip_hdr *iphdr_in; in icmp_input()
212 struct ip_hdr *iphdr = (struct ip_hdr *)p->payload; in icmp_input()
343 struct ip_hdr *iphdr; in icmp_send_response()
369 iphdr = (struct ip_hdr *)p->payload; in icmp_send_response()
H A Dip4.c314 ip4_forward(struct pbuf *p, struct ip_hdr *iphdr, struct netif *inp)
461 const struct ip_hdr *iphdr;
482 iphdr = (struct ip_hdr *)p->payload;
666 ip4_forward(p, (struct ip_hdr *)p->payload, inp);
688 iphdr = (const struct ip_hdr *)p->payload;
886 struct ip_hdr *iphdr;
944 iphdr = (struct ip_hdr *)p->payload;
945 LWIP_ASSERT("check that first pbuf can hold struct ip_hdr",
946 (p->len >= sizeof(struct ip_hdr)));
1014 iphdr = (struct ip_hdr *)
[all...]
H A Detharp.c860 struct ip_hdr *iphdr = LWIP_ALIGNMENT_CAST(struct ip_hdr *, q->payload);
/third_party/lwip/test/unit/ip4/
H A Dtest_ip4.c25 p = pbuf_alloc(PBUF_RAW, len + sizeof(struct ip_hdr), PBUF_RAM); in create_ip4_input_fragment()
29 struct ip_hdr *iphdr = (struct ip_hdr *)p->payload; in create_ip4_input_fragment()
30 IPH_VHL_SET(iphdr, 4, sizeof(struct ip_hdr) / 4); in create_ip4_input_fragment()
45 IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, sizeof(struct ip_hdr))); in create_ip4_input_fragment()
/third_party/lwip/src/netif/ppp/
H A Dvj.c163 struct ip_hdr *ip = (struct ip_hdr *)np->payload; in vj_compress_tcp()
211 ip = (struct ip_hdr *)np->payload; in vj_compress_tcp()
463 struct ip_hdr *ip; in vj_uncompress_uncomp()
465 ip = (struct ip_hdr *)nb->payload; in vj_uncompress_uncomp()
/third_party/lwip/test/unit/udp/
H A Dtest_udp.c177 struct ip_hdr *ih; in test_udp_create_test_packet()
198 ret = pbuf_add_header(p, sizeof(struct ip_hdr)); in test_udp_create_test_packet()
200 ih = (struct ip_hdr *)p->payload; in test_udp_create_test_packet()
206 IPH_VHL_SET(ih, 4, sizeof(struct ip_hdr) / 4); in test_udp_create_test_packet()
207 IPH_CHKSUM_SET(ih, inet_chksum(ih, sizeof(struct ip_hdr))); in test_udp_create_test_packet()
/third_party/lwip/src/include/lwip/
H A Dip4_frag.h64 struct ip_hdr iphdr;
H A Dip.h142 const struct ip_hdr *current_ip4_header;
/third_party/lwip/src/include/netif/ppp/
H A Dvj.h119 struct ip_hdr csu_ip; /* ip/tcp hdr from most recent packet */
/third_party/lwip/src/include/lwip/prot/
H A Dip4.h63 /* Size of the IPv4 header. Same as 'sizeof(struct ip_hdr)'. */
73 struct ip_hdr { struct
105 /* Macros to get struct ip_hdr fields: */
118 /* Macros to set struct ip_hdr fields: */
/third_party/lwip/src/core/
H A Draw.c161 proto = IPH_PROTO((struct ip_hdr *)p->payload); in raw_input()

Completed in 11 milliseconds