Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 2 of 2) sorted by relevance

/lib/
Dtest_printf.c240 struct sockaddr_in sa; in ip4() local
242 sa.sin_family = AF_INET; in ip4()
243 sa.sin_port = cpu_to_be16(12345); in ip4()
244 sa.sin_addr.s_addr = cpu_to_be32(0x7f000001); in ip4()
246 test("127.000.000.001|127.0.0.1", "%pi4|%pI4", &sa.sin_addr, &sa.sin_addr); in ip4()
247 test("127.000.000.001|127.0.0.1", "%piS|%pIS", &sa, &sa); in ip4()
248 sa.sin_addr.s_addr = cpu_to_be32(0x01020304); in ip4()
249 test("001.002.003.004:12345|1.2.3.4:12345", "%piSp|%pISp", &sa, &sa); in ip4()
Dvsprintf.c1101 char *ip6_addr_string_sa(char *buf, char *end, const struct sockaddr_in6 *sa, in ip6_addr_string_sa() argument
1109 const u8 *addr = (const u8 *) &sa->sin6_addr; in ip6_addr_string_sa()
1146 p = number(p, pend, ntohs(sa->sin6_port), spec); in ip6_addr_string_sa()
1150 p = number(p, pend, ntohl(sa->sin6_flowinfo & in ip6_addr_string_sa()
1155 p = number(p, pend, sa->sin6_scope_id, spec); in ip6_addr_string_sa()
1163 char *ip4_addr_string_sa(char *buf, char *end, const struct sockaddr_in *sa, in ip4_addr_string_sa() argument
1169 const u8 *addr = (const u8 *) &sa->sin_addr.s_addr; in ip4_addr_string_sa()
1190 p = number(p, pend, ntohs(sa->sin_port), spec); in ip4_addr_string_sa()
1516 } *sa = ptr; in pointer() local
1518 switch (sa->raw.sa_family) { in pointer()
[all …]