Searched refs:pshdr (Results 1 – 2 of 2) sorted by relevance
144 struct ipv6_pseudo_header pshdr; in ipv6_tx_csum() local147 memset ( &pshdr, 0, sizeof ( pshdr ) ); in ipv6_tx_csum()148 pshdr.src = ip6hdr->src; in ipv6_tx_csum()149 pshdr.dest = ip6hdr->dest; in ipv6_tx_csum()150 pshdr.len = htons ( iob_len ( iobuf ) - sizeof ( *ip6hdr ) ); in ipv6_tx_csum()151 pshdr.nxt_hdr = ip6hdr->nxt_hdr; in ipv6_tx_csum()154 return tcpip_continue_chksum ( csum, &pshdr, sizeof ( pshdr ) ); in ipv6_tx_csum()
246 struct ipv4_pseudo_header pshdr; in ipv4_pshdr_chksum() local251 pshdr.src = iphdr->src; in ipv4_pshdr_chksum()252 pshdr.dest = iphdr->dest; in ipv4_pshdr_chksum()253 pshdr.zero_padding = 0x00; in ipv4_pshdr_chksum()254 pshdr.protocol = iphdr->protocol; in ipv4_pshdr_chksum()255 pshdr.len = htons ( iob_len ( iobuf ) - hdrlen ); in ipv4_pshdr_chksum()258 return tcpip_continue_chksum ( csum, &pshdr, sizeof ( pshdr ) ); in ipv4_pshdr_chksum()