Lines Matching refs:I
221 translator ipinfo_t < ipha_t *I > {
222 ip_ver = I->ipha_version_and_hdr_length >> 4;
223 ip_plength = ntohs(I->ipha_length) -
224 ((I->ipha_version_and_hdr_length & 0xf) << 2);
225 ip_saddr = inet_ntoa(&I->ipha_src);
226 ip_daddr = inet_ntoa(&I->ipha_dst);
230 translator ipinfo_t < ip6_t *I > {
231 ip_ver = *(uint8_t *)I >> 4;
232 ip_plength = ntohs(I->ip6_ctlun.ip6_un1.ip6_un1_plen);
233 ip_saddr = inet_ntoa6(&I->ip6_src);
234 ip_daddr = inet_ntoa6(&I->ip6_dst);
238 translator ipinfo_t < void_ip_t *I > {
239 ip_ver = I != NULL ? *(uint8_t *)I >> 4 : 0;
240 ip_plength = I != NULL ? (*(uint8_t *)I >> 4 == 4 ?
241 ntohs(((ipha_t *)I)->ipha_length) -
242 ((((ipha_t *)I)->ipha_version_and_hdr_length & 0xf) << 2) :
243 *(uint8_t *)I >> 4 == 6 ?
244 ntohs(((ip6_t *)I)->ip6_ctlun.ip6_un1.ip6_un1_plen) : 0) : 0;
245 ip_saddr = I != NULL ? (*(uint8_t *)I >> 4 == 4 ?
246 inet_ntoa(&((ipha_t *)I)->ipha_src) : *(uint8_t *)I >> 4 == 6 ?
247 inet_ntoa6(&((ip6_t *)I)->ip6_src) : "<unknown>") : "<unknown>";
248 ip_daddr = I != NULL ? (*(uint8_t *)I >> 4 == 4 ?
249 inet_ntoa(&((ipha_t *)I)->ipha_dst) : *(uint8_t *)I >> 4 == 6 ?
250 inet_ntoa6(&((ip6_t *)I)->ip6_dst) : "<unknown>") : "<unknown>";
254 translator ifinfo_t < __dtrace_ipsr_ill_t *I > {
255 if_name = I != NULL ? stringof(I->ill_name) : "<null>";
256 if_ipstack = I != NULL ? I->ill_ipst->ips_netstack->netstack_stackid
259 if_addr = (uintptr_t)I;
267 translator ipinfo_t < __dtrace_tcp_void_ip_t *I > {
268 ip_ver = I != NULL ? *(uint8_t *)I >> 4 :
271 I != NULL && *(uint8_t *)I >> 4 == 4 ?
272 ntohs(((ipha_t *)I)->ipha_length) -
273 ((((ipha_t *)I)->ipha_version_and_hdr_length & 0xf) << 2) :
274 I != NULL && *(uint8_t *)I >> 4 == 6 ?
275 ntohs(((ip6_t *)I)->ip6_ctlun.ip6_un1.ip6_un1_plen) :
276 I != NULL ? 0 :
283 I != NULL && *(uint8_t *)I >> 4 == 4 ?
284 inet_ntoa(&((ipha_t *)I)->ipha_src) :
285 I != NULL && *(uint8_t *)I >> 4 == 6 ?
286 inet_ntoa6(&((ip6_t *)I)->ip6_src) :
287 I != NULL ? "<unknown>" :
294 I != NULL && *(uint8_t *)I >> 4 == 4 ?
295 inet_ntoa(&((ipha_t *)I)->ipha_dst) :
296 I != NULL && *(uint8_t *)I >> 4 == 6 ?
297 inet_ntoa6(&((ip6_t *)I)->ip6_dst) :
298 I != NULL ? "<unknown>" :
307 translator ipv4info_t < ipha_t *I > {
308 ipv4_ver = I != NULL ? I->ipha_version_and_hdr_length >> 4 : 0;
309 ipv4_ihl = I != NULL ? (I->ipha_version_and_hdr_length & 0xf) << 2 : 0;
310 ipv4_tos = I != NULL ? I->ipha_type_of_service : 0;
311 ipv4_length = I != NULL ? ntohs(I->ipha_length) : 0;
312 ipv4_ident = I != NULL ? ntohs(I->ipha_ident) : 0;
313 ipv4_flags = I != NULL ? ntohs(I->ipha_fragment_offset_and_flags) >>
315 ipv4_offset = I != NULL ? ntohs(I->ipha_fragment_offset_and_flags) &
317 ipv4_ttl = I != NULL ? I->ipha_ttl : 0;
318 ipv4_protocol = I != NULL ? I->ipha_protocol : 0;
319 ipv4_protostr = I == NULL ? "<null>" :
320 I->ipha_protocol == IPPROTO_TCP ? "TCP" :
321 I->ipha_protocol == IPPROTO_UDP ? "UDP" :
322 I->ipha_protocol == IPPROTO_IP ? "IP" :
323 I->ipha_protocol == IPPROTO_ICMP ? "ICMP" :
324 I->ipha_protocol == IPPROTO_IGMP ? "IGMP" :
325 I->ipha_protocol == IPPROTO_EGP ? "EGP" :
326 I->ipha_protocol == IPPROTO_IPV6 ? "IPv6" :
327 I->ipha_protocol == IPPROTO_ROUTING ? "ROUTE" :
328 I->ipha_protocol == IPPROTO_ESP ? "ESP" :
329 I->ipha_protocol == IPPROTO_AH ? "AH" :
330 I->ipha_protocol == IPPROTO_ICMPV6 ? "ICMPv6" :
331 I->ipha_protocol == IPPROTO_OSPF ? "OSPF" :
332 I->ipha_protocol == IPPROTO_SCTP ? "SCTP" :
333 I->ipha_protocol == IPPROTO_RAW ? "RAW" :
334 lltostr((uint64_t)I->ipha_protocol);
335 ipv4_checksum = I != NULL ? ntohs(I->ipha_hdr_checksum) : 0;
336 ipv4_src = I != NULL ? I->ipha_src : 0;
337 ipv4_dst = I != NULL ? I->ipha_dst : 0;
338 ipv4_saddr = I != NULL ? inet_ntoa(&I->ipha_src) : "<null>";
339 ipv4_daddr = I != NULL ? inet_ntoa(&I->ipha_dst) : "<null>";
340 ipv4_hdr = I;
344 translator ipv6info_t < ip6_t *I > {
345 ipv6_ver = I != NULL ? I->ip6_ctlun.ip6_un2_vfc >> 4 : 0;
346 ipv6_tclass = I != NULL ? ((I->ip6_ctlun.ip6_un1.ip6_un1_flow &&
348 ipv6_flow = I != NULL ? I->ip6_ctlun.ip6_un1.ip6_un1_flow &&
350 ipv6_plen = I != NULL ? ntohs(I->ip6_ctlun.ip6_un1.ip6_un1_plen) : 0;
351 ipv6_nexthdr = I != NULL ? I->ip6_ctlun.ip6_un1.ip6_un1_nxt : 0;
352 ipv6_nextstr = I == NULL ? "<null>" :
353 I->ip6_ctlun.ip6_un1.ip6_un1_nxt == IPPROTO_TCP ? "TCP" :
354 I->ip6_ctlun.ip6_un1.ip6_un1_nxt == IPPROTO_UDP ? "UDP" :
355 I->ip6_ctlun.ip6_un1.ip6_un1_nxt == IPPROTO_IP ? "IP" :
356 I->ip6_ctlun.ip6_un1.ip6_un1_nxt == IPPROTO_ICMP ? "ICMP" :
357 I->ip6_ctlun.ip6_un1.ip6_un1_nxt == IPPROTO_IGMP ? "IGMP" :
358 I->ip6_ctlun.ip6_un1.ip6_un1_nxt == IPPROTO_EGP ? "EGP" :
359 I->ip6_ctlun.ip6_un1.ip6_un1_nxt == IPPROTO_IPV6 ? "IPv6" :
360 I->ip6_ctlun.ip6_un1.ip6_un1_nxt == IPPROTO_ROUTING ? "ROUTE" :
361 I->ip6_ctlun.ip6_un1.ip6_un1_nxt == IPPROTO_ESP ? "ESP" :
362 I->ip6_ctlun.ip6_un1.ip6_un1_nxt == IPPROTO_AH ? "AH" :
363 I->ip6_ctlun.ip6_un1.ip6_un1_nxt == IPPROTO_ICMPV6 ? "ICMPv6" :
364 I->ip6_ctlun.ip6_un1.ip6_un1_nxt == IPPROTO_OSPF ? "OSPF" :
365 I->ip6_ctlun.ip6_un1.ip6_un1_nxt == IPPROTO_SCTP ? "SCTP" :
366 I->ip6_ctlun.ip6_un1.ip6_un1_nxt == IPPROTO_RAW ? "RAW" :
367 lltostr((uint64_t)I->ip6_ctlun.ip6_un1.ip6_un1_nxt);
368 ipv6_hlim = I != NULL ? I->ip6_ctlun.ip6_un1.ip6_un1_hlim : 0;
369 ipv6_src = I != NULL ? &I->ip6_src : 0;
370 ipv6_dst = I != NULL ? &I->ip6_dst : 0;
371 ipv6_saddr = I != NULL ? inet_ntoa6(&I->ip6_src) : "<null>";
372 ipv6_daddr = I != NULL ? inet_ntoa6(&I->ip6_dst) : "<null>";
373 ipv6_hdr = I;