Lines Matching refs:addrbuf
950 } addrbuf; local
961 if ((addrlen<2) || (addrlen>sizeof(addrbuf)))
962 addrlen=sizeof(addrbuf);
964 if (umoven(tcp, addr, addrlen, (char*)&addrbuf) < 0) {
970 printxval(addrfams, addrbuf.sa.sa_family, "AF_???");
973 switch (addrbuf.sa.sa_family) {
977 } else if (addrbuf.sau.sun_path[0]) {
978 tprintf("path=\"%-.*s\"", addrlen-2, addrbuf.sau.sun_path);
980 tprintf("path=@%-.*s", addrlen-3, addrbuf.sau.sun_path+1);
985 ntohs(addrbuf.sin.sin_port), inet_ntoa(addrbuf.sin.sin_addr));
989 inet_ntop(AF_INET6, &addrbuf.sa6.sin6_addr, string_addr, sizeof(string_addr));
991 ntohs(addrbuf.sa6.sin6_port), string_addr,
992 addrbuf.sa6.sin6_flowinfo);
997 if (IN6_IS_ADDR_LINKLOCAL (&addrbuf.sa6.sin6_addr)
998 || IN6_IS_ADDR_MC_LINKLOCAL (&addrbuf.sa6.sin6_addr)) {
1001 if (if_indextoname (addrbuf.sa6.sin6_scope_id, scopebuf) == NULL)
1010 tprintf(", sin6_scope_id=%u", addrbuf.sa6.sin6_scope_id);
1020 ntohs(addrbuf.sipx.sipx_port));
1027 tprintf("%08lx:", (unsigned long)ntohl(addrbuf.sipx.sipx_network));
1029 tprintf("%02x", addrbuf.sipx.sipx_node[i]);
1030 tprintf("/[%02x]", addrbuf.sipx.sipx_type);
1039 ntohs(addrbuf.ll.sll_protocol),
1040 addrbuf.ll.sll_ifindex);
1041 printxval(af_packet_types, addrbuf.ll.sll_pkttype, "?");
1043 addrbuf.ll.sll_halen,
1044 addrbuf.ll.sll_hatype);
1045 for (i=0; i<addrbuf.ll.sll_halen; i++)
1046 tprintf("%02x", addrbuf.ll.sll_addr[i]);
1053 tprintf("pid=%d, groups=%08x", addrbuf.nl.nl_pid, addrbuf.nl.nl_groups);
1062 sizeof addrbuf.sa.sa_data);