Lines Matching refs:saddr
78 inet_prefix saddr; member
98 inet_prefix daddr, saddr; in process_msg() local
138 if (f.saddr.family && f.saddr.family != AF_INET) in process_msg()
141 memcpy(&saddr.data, RTA_DATA(a), 4); in process_msg()
142 saddr.bytelen = 4; in process_msg()
146 if (f.saddr.family && f.saddr.family != AF_INET6) in process_msg()
149 memcpy(&saddr.data, RTA_DATA(a), 16); in process_msg()
150 saddr.bytelen = 16; in process_msg()
161 if (slen && f.saddr.family && f.saddr.bitlen >= 0 && in process_msg()
162 inet_addr_match(&saddr, &f.saddr, f.saddr.bitlen)) in process_msg()
173 addattr_l(&req2.n, sizeof(req2), stype, &saddr.data, in process_msg()
174 saddr.bytelen); in process_msg()
297 format_host(family, slen, &saddr.data)); in process_msg()
315 f.saddr.bitlen = -1; in tcpm_do_cmd()
316 f.saddr.family = preferred_family; in tcpm_do_cmd()
336 if (f.saddr.bitlen >= 0) in tcpm_do_cmd()
339 get_prefix(&f.saddr, *argv, preferred_family); in tcpm_do_cmd()
340 if (f.saddr.bytelen && f.saddr.bytelen * 8 == f.saddr.bitlen) { in tcpm_do_cmd()
341 if (f.saddr.family == AF_INET) in tcpm_do_cmd()
343 else if (f.saddr.family == AF_INET6) in tcpm_do_cmd()
390 f.saddr.bitlen <= 0 && preferred_family == AF_UNSPEC) { in tcpm_do_cmd()
412 addattr_l(&req.n, sizeof(req), stype, &f.saddr.data, in tcpm_do_cmd()
413 f.saddr.bytelen); in tcpm_do_cmd()