Searched refs:tcp_hdr (Results 1 – 2 of 2) sorted by relevance
4084 struct net_tcp_hdr *tcp_hdr; in net_tcp_finalize() local4088 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() local4118 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()
775 struct net_tcp_hdr *tcp_hdr; in sock_get_pkt_src_addr() local777 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()