Lines Matching refs:NULL

52 	ip_ver = (P != NULL) ? (((P->inp_vflag & 0x2) != 0) ? 6 : 4) : 0;
53 dport = (P != NULL) ? ntohs(P->inp_fport) : 0;
54 sport = (P != NULL) ? ntohs(P->inp_lport) : 0;
55 ip_saddr = (P != NULL) ? (((P->inp_vflag & 0x2) != 0) ?
58 ip_daddr = (P != NULL) ? (((P->inp_vflag & 0x2) != 0) ?
79 ip_ver = (ip != NULL) ? ((*(uint8_t *) ip) & 0xf0) >> 4 : 0;
80 ip_plength = (ip != NULL) ?
82 ip_saddr = (ip != NULL) ? inet_ntoa((uint32_t *)&ip->ip_src.s_addr) : "<null>";
83 ip_daddr = (ip != NULL) ? inet_ntoa((uint32_t *)&ip->ip_dst.s_addr) : "<null>";
88 ip_ver = (ip6 != NULL) ? (ip6->ip6_ctlun.ip6_un2_vfc & 0xf0) >> 4 : 0;
89 ip_plength = (ip6 != NULL) ? (ntohs(ip6->ip6_ctlun.ip6_un1.ip6_un1_plen)) : 0;
90 ip_saddr = (ip6 != NULL) ? inet_ntoa6(&ip6->ip6_src) : "<null>";
91 ip_daddr = (ip6 != NULL) ? inet_ntoa6(&ip6->ip6_dst) : "<null>";
101 ip_ver = (i != NULL) ? (*(uint8_t *)i >> 4) : 0;
102 ip_plength = (i != NULL) ? (((*(uint8_t *)i) >> 4 == 4) ?
107 ip_saddr = (i != NULL) ? ((((*(uint8_t *)i)) >> 4 == 4) ?
111 ip_daddr = (i != NULL) ? (((*(uint8_t *)i) >> 4 == 4) ?
128 if_name = (ifp != NULL) ? ifp->if_name : "<null>";
129 if_unit = (ifp != NULL) ? ifp->if_unit : 0;
133 if_flags = (ifp != NULL) ? ifp->if_flags : 0;
134 if_eflags = (ifp != NULL) ? ifp->if_eflags : 0;
159 ipv4_ver = (ip != NULL) ? (*(uint8_t *)ip & 0xf0) >> 4 : 0;
160 ipv4_ihl = (ip != NULL) ? ((*(uint8_t *)ip & 0x0f) << 2) : 0;
161 ipv4_tos = (ip!= NULL) ? ip->ip_tos : 0;
162 ipv4_length = (ip != NULL) ? ntohs(ip->ip_len) : 0;
163 ipv4_ident = (ip != NULL) ? ip->ip_id : 0;
164 ipv4_flags = (ip != NULL) ? (ntohs(ip->ip_off) & 0xe000) : 0;
165 ipv4_offset = (ip != NULL) ? (ntohs(ip->ip_off) & 0x1fff) : 0;
166 ipv4_ttl = (ip != NULL) ? ip->ip_ttl : 0;
167 ipv4_protocol = (ip != NULL) ? ip->ip_p : 0;
168 ipv4_protostr = (ip == NULL) ? "<null>" :
178 ipv4_checksum = (ip != NULL) ? ntohs(ip->ip_sum) : 0;
179 ipv4_src = (ip != NULL) ? ip->ip_src.s_addr : 0;
180 ipv4_dst = (ip != NULL) ? ip->ip_dst.s_addr : 0;
181 ipv4_saddr = (ip != NULL) ? inet_ntoa((uint32_t *)&ip->ip_src.s_addr) : "<null>";
182 ipv4_daddr = (ip != NULL) ? inet_ntoa((uint32_t *)&ip->ip_dst.s_addr) : "<null>";
203 ipv6_ver = (ip6 != NULL) ? ip6->ip6_ctlun.ip6_un2_vfc : 10;
204 ipv6_tclass = (ip6 != NULL) ? (ip6->ip6_ctlun.ip6_un1.ip6_un1_flow & 0x0ff00000) >> 20 : 0;
205 ipv6_flow = (ip6 != NULL) ? (ip6->ip6_ctlun.ip6_un1.ip6_un1_flow & 0x000fffff) : 0;
206 ipv6_plen = (ip6 != NULL) ? ntohs(ip6->ip6_ctlun.ip6_un1.ip6_un1_plen) : 0;
207 ipv6_nexthdr = (ip6 != NULL) ? ip6->ip6_ctlun.ip6_un1.ip6_un1_nxt : 0;
208 ipv6_nextstr = (ip6 == NULL) ? "<null>" :
219 ipv6_hlim = (ip6 != NULL) ? ip6->ip6_ctlun.ip6_un1.ip6_un1_hlim : 0;
220 ipv6_src = (ip6 != NULL) ? (&ip6->ip6_src) : 0;
221 ipv6_dst = (ip6 != NULL) ? (&ip6->ip6_dst) : 0;
222 ipv6_saddr = (ip6 != NULL) ? inet_ntoa6(&ip6->ip6_src) : "<null>";
223 ipv6_daddr = (ip6 != NULL) ? inet_ntoa6(&ip6->ip6_dst) : "<null>";