Home
last modified time | relevance | path

Searched refs:tcp_hdr (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/subsys/net/ip/
Dtcp.c4084 struct net_tcp_hdr *tcp_hdr; in net_tcp_finalize() local
4088 tcp_hdr = (struct net_tcp_hdr *)net_pkt_get_data(pkt, &tcp_access); in net_tcp_finalize()
4089 if (!tcp_hdr) { in net_tcp_finalize()
4093 tcp_hdr->chksum = 0U; in net_tcp_finalize()
4096 tcp_hdr->chksum = net_calc_chksum_tcp(pkt); in net_tcp_finalize()
4106 struct net_tcp_hdr *tcp_hdr; in net_tcp_input() local
4118 tcp_hdr = (struct net_tcp_hdr *)net_pkt_get_data(pkt, tcp_access); in net_tcp_input()
4119 if (tcp_hdr && !net_pkt_set_data(pkt, tcp_access)) { in net_tcp_input()
4120 return tcp_hdr; in net_tcp_input()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_inet.c775 struct net_tcp_hdr *tcp_hdr; in sock_get_pkt_src_addr() local
777 tcp_hdr = (struct net_tcp_hdr *)net_pkt_get_data(pkt, in sock_get_pkt_src_addr()
779 if (!tcp_hdr) { in sock_get_pkt_src_addr()
784 *port = tcp_hdr->src_port; in sock_get_pkt_src_addr()