Searched refs:tcp_hdr (Results 1 – 2 of 2) sorted by relevance
4094 struct net_tcp_hdr *tcp_hdr; in net_tcp_finalize() local4098 tcp_hdr = (struct net_tcp_hdr *)net_pkt_get_data(pkt, &tcp_access); in net_tcp_finalize()4099 if (!tcp_hdr) { in net_tcp_finalize()4103 tcp_hdr->chksum = 0U; in net_tcp_finalize()4106 tcp_hdr->chksum = net_calc_chksum_tcp(pkt); in net_tcp_finalize()4116 struct net_tcp_hdr *tcp_hdr; in net_tcp_input() local4128 tcp_hdr = (struct net_tcp_hdr *)net_pkt_get_data(pkt, tcp_access); in net_tcp_input()4129 if (tcp_hdr && !net_pkt_set_data(pkt, tcp_access)) { in net_tcp_input()4130 return tcp_hdr; in net_tcp_input()
780 struct net_tcp_hdr *tcp_hdr; in sock_get_pkt_src_addr() local782 tcp_hdr = (struct net_tcp_hdr *)net_pkt_get_data(pkt, in sock_get_pkt_src_addr()784 if (!tcp_hdr) { in sock_get_pkt_src_addr()789 *port = tcp_hdr->src_port; in sock_get_pkt_src_addr()