Searched refs:sa (Results 1 – 2 of 2) sorted by relevance
/lib/ |
D | test_printf.c | 401 struct sockaddr_in sa; in ip4() local 403 sa.sin_family = AF_INET; in ip4() 404 sa.sin_port = cpu_to_be16(12345); in ip4() 405 sa.sin_addr.s_addr = cpu_to_be32(0x7f000001); in ip4() 407 test("127.000.000.001|127.0.0.1", "%pi4|%pI4", &sa.sin_addr, &sa.sin_addr); in ip4() 408 test("127.000.000.001|127.0.0.1", "%piS|%pIS", &sa, &sa); in ip4() 409 sa.sin_addr.s_addr = cpu_to_be32(0x01020304); in ip4() 410 test("001.002.003.004:12345|1.2.3.4:12345", "%piSp|%pISp", &sa, &sa); in ip4()
|
D | vsprintf.c | 1432 char *ip6_addr_string_sa(char *buf, char *end, const struct sockaddr_in6 *sa, in ip6_addr_string_sa() argument 1440 const u8 *addr = (const u8 *) &sa->sin6_addr; in ip6_addr_string_sa() 1477 p = number(p, pend, ntohs(sa->sin6_port), spec); in ip6_addr_string_sa() 1481 p = number(p, pend, ntohl(sa->sin6_flowinfo & in ip6_addr_string_sa() 1486 p = number(p, pend, sa->sin6_scope_id, spec); in ip6_addr_string_sa() 1494 char *ip4_addr_string_sa(char *buf, char *end, const struct sockaddr_in *sa, in ip4_addr_string_sa() argument 1500 const u8 *addr = (const u8 *) &sa->sin_addr.s_addr; in ip4_addr_string_sa() 1521 p = number(p, pend, ntohs(sa->sin_port), spec); in ip4_addr_string_sa() 1547 } *sa = ptr; in ip_addr_string() local 1549 switch (sa->raw.sa_family) { in ip_addr_string() [all …]
|