Lines Matching refs:ntohs
53 dport = (P != NULL) ? ntohs(P->inp_fport) : 0;
54 sport = (P != NULL) ? ntohs(P->inp_lport) : 0;
81 (ntohs(ip->ip_len) - (((*(uint8_t *) ip) & 0x0f) << 2)) : 0;
89 ip_plength = (ip6 != NULL) ? (ntohs(ip6->ip6_ctlun.ip6_un1.ip6_un1_plen)) : 0;
103 ntohs(((struct ip *)i)->ip_len) -
106 ntohs(((struct ip6_hdr *)i)->ip6_ctlun.ip6_un1.ip6_un1_plen) : 0)) : 0;
162 ipv4_length = (ip != NULL) ? ntohs(ip->ip_len) : 0;
164 ipv4_flags = (ip != NULL) ? (ntohs(ip->ip_off) & 0xe000) : 0;
165 ipv4_offset = (ip != NULL) ? (ntohs(ip->ip_off) & 0x1fff) : 0;
178 ipv4_checksum = (ip != NULL) ? ntohs(ip->ip_sum) : 0;
206 ipv6_plen = (ip6 != NULL) ? ntohs(ip6->ip6_ctlun.ip6_un1.ip6_un1_plen) : 0;