Lines Matching refs:family

29 	int family;  member
57 int __trace_event_expect(enum trace_events type, int family, in __trace_event_expect() argument
65 .family = family, in __trace_event_expect()
119 int family; member
149 if (p->family != e->family) in lookup_expected_event()
151 if (p->family == AF_INET) in lookup_expected_event()
227 static int tracer_ip_split(int family, char *src, char **addr, char **port) in tracer_ip_split() argument
231 if (family == AF_INET) { in tracer_ip_split()
243 if (family != AF_INET6) in tracer_ip_split()
266 static int tracer_scan_address(int family, char *src, in tracer_scan_address() argument
272 ret = tracer_ip_split(family, src, &addr, &port_str); in tracer_scan_address()
276 if (inet_pton(family, addr, dst) != 1) { in tracer_scan_address()
292 char *src = NULL, *dst = NULL, *family = NULL; in tracer_scan_event() local
304 &netns_cookie, &family, in tracer_scan_event()
318 &netns_cookie, &family, in tracer_scan_event()
329 &netns_cookie, &family, in tracer_scan_event()
339 &netns_cookie, &family, in tracer_scan_event()
350 if (family) { in tracer_scan_event()
351 if (!strcmp(family, "AF_INET")) { in tracer_scan_event()
352 out->family = AF_INET; in tracer_scan_event()
353 } else if (!strcmp(family, "AF_INET6")) { in tracer_scan_event()
354 out->family = AF_INET6; in tracer_scan_event()
356 test_print("Couldn't parse trace event family %s", family); in tracer_scan_event()
381 if (src && tracer_scan_address(out->family, src, &out->src, &out->src_port)) { in tracer_scan_event()
386 if (dst && tracer_scan_address(out->family, dst, &out->dst, &out->dst_port)) { in tracer_scan_event()
400 free(family); in tracer_scan_event()
423 if (!inet_ntop(e->family, &e->src, src, INET6_ADDRSTRLEN)) in dump_trace_event()
425 if (!inet_ntop(e->family, &e->dst, dst, INET6_ADDRSTRLEN)) in dump_trace_event()