/busybox-1.35.0/networking/libiproute/ |
D | utils.c | 82 int FAST_FUNC get_addr_1(inet_prefix *addr, char *name, int family) in get_addr_1() argument 84 memset(addr, 0, sizeof(*addr)); in get_addr_1() 90 addr->family = family; in get_addr_1() 91 addr->bytelen = (family == AF_INET6 ? 16 : 4); in get_addr_1() 92 addr->bitlen = -1; in get_addr_1() 97 addr->family = AF_INET6; in get_addr_1() 100 if (inet_pton(AF_INET6, name, addr->data) <= 0) in get_addr_1() 102 addr->bytelen = 16; in get_addr_1() 103 addr->bitlen = -1; in get_addr_1() 111 addr->family = AF_INET; in get_addr_1() [all …]
|
D | ll_addr.c | 16 const char* FAST_FUNC ll_addr_n2a(unsigned char *addr, int alen, int type, char *buf, int blen) in ll_addr_n2a() argument 24 return inet_ntop(AF_INET, addr, buf, blen); in ll_addr_n2a() 29 snprintf(buf + l, blen, ":%02x"+1, addr[i]); in ll_addr_n2a() 33 snprintf(buf + l, blen, ":%02x", addr[i]); in ll_addr_n2a()
|
D | utils.h | 68 const char *rt_addr_n2a(int af, void *addr) FAST_FUNC; 70 const char *format_host(int af, int len, void *addr) FAST_FUNC; 72 #define format_host(af, len, addr) \ argument 73 rt_addr_n2a(af, addr)
|
D | ll_map.c | 22 unsigned char addr[8]; member 77 if (alen > (int)sizeof(im->addr)) in ll_remember_index() 78 alen = sizeof(im->addr); in ll_remember_index() 79 memcpy(im->addr, RTA_DATA(tb[IFLA_ADDRESS]), alen); in ll_remember_index() 82 memset(im->addr, 0, sizeof(im->addr)); in ll_remember_index()
|
D | iproute.c | 419 inet_prefix addr; in iproute_modify() local 421 get_addr(&addr, *argv, req.r.rtm_family); in iproute_modify() 423 req.r.rtm_family = addr.family; in iproute_modify() 424 addattr_l(&req.n, sizeof(req), RTA_PREFSRC, &addr.data, addr.bytelen); in iproute_modify() 426 inet_prefix addr; in iproute_modify() local 429 get_addr(&addr, *argv, req.r.rtm_family); in iproute_modify() 431 req.r.rtm_family = addr.family; in iproute_modify() 433 addattr_l(&req.n, sizeof(req), RTA_GATEWAY, &addr.data, addr.bytelen); in iproute_modify() 522 inet_prefix addr; in iproute_modify() 524 get_prefix(&addr, *argv, req.r.rtm_family); in iproute_modify() [all …]
|
D | ipaddress.c | 679 inet_prefix addr; in ipaddr_modify() local 689 get_addr(&addr, *argv, req.ifa.ifa_family); in ipaddr_modify() 691 req.ifa.ifa_family = addr.family; in ipaddr_modify() 692 addattr_l(&req.n, sizeof(req), IFA_BROADCAST, &addr.data, addr.bytelen); in ipaddr_modify() 693 brd_len = addr.bytelen; in ipaddr_modify() 696 inet_prefix addr; in ipaddr_modify() local 701 get_addr(&addr, *argv, req.ifa.ifa_family); in ipaddr_modify() 703 req.ifa.ifa_family = addr.family; in ipaddr_modify() 705 addattr_l(&req.n, sizeof(req), IFA_ANYCAST, &addr.data, addr.bytelen); in ipaddr_modify() 706 any_len = addr.bytelen; in ipaddr_modify()
|
D | rt_names.h | 20 extern const char* ll_addr_n2a(unsigned char *addr, int alen, int type,
|
/busybox-1.35.0/libbb/ |
D | inet_cksum.c | 11 const uint16_t *addr = ptr; in inet_cksum() local 21 sum += *addr++; in inet_cksum() 28 sum += *(uint8_t*)addr; in inet_cksum() 30 sum += *(uint8_t*)addr << 8; in inet_cksum()
|
D | bb_getsockname.c | 11 int FAST_FUNC bb_getsockname(int sockfd, void *addr, socklen_t addrlen) in bb_getsockname() argument 18 return getsockname(sockfd, (struct sockaddr *)addr, &addrlen); in bb_getsockname()
|
D | inet_common.c | 83 struct addr { in INET_rresolve() struct 84 struct addr *next; in INET_rresolve() argument 89 static struct addr *cache = NULL; in INET_rresolve() 91 struct addr *pn; in INET_rresolve()
|
/busybox-1.35.0/scripts/ |
D | checkstack.pl | 144 my $addr = $1; 145 $addr =~ s/ /0/g; 146 $addr = "0x$addr"; 162 my $addr = $1; 163 $addr =~ s/ /0/g; 164 $addr = "0x$addr";
|
D | bloat-o-meter | 74 for addr, sz in iter(alias.keys()): 77 if not (addr, sz) in lut: 80 sym[alias[(addr, sz)]["name"]] = {"addr" : addr, "size": sz}
|
/busybox-1.35.0/networking/udhcp/ |
D | socket.c | 82 struct sockaddr_in addr; in udhcp_listen_socket() local 103 memset(&addr, 0, sizeof(addr)); in udhcp_listen_socket() 104 addr.sin_family = AF_INET; in udhcp_listen_socket() 105 addr.sin_port = htons(port); in udhcp_listen_socket() 107 xbind(fd, (struct sockaddr *)&addr, sizeof(addr)); in udhcp_listen_socket()
|
D | arpping.c | 48 struct sockaddr addr; /* for interface name */ in arpping() local 81 memset(&addr, 0, sizeof(addr)); in arpping() 82 safe_strncpy(addr.sa_data, interface, sizeof(addr.sa_data)); in arpping() 83 if (sendto(s, &arp, sizeof(arp), 0, &addr, sizeof(addr)) < 0) { in arpping()
|
D | d6_socket.c | 111 struct sockaddr_in6 addr; in d6_listen_socket() local 124 memset(&addr, 0, sizeof(addr)); in d6_listen_socket() 125 addr.sin6_family = AF_INET6; in d6_listen_socket() 126 addr.sin6_port = htons(port); in d6_listen_socket() 128 xbind(fd, (struct sockaddr *)&addr, sizeof(addr)); in d6_listen_socket()
|
D | dumpleases.c | 72 struct in_addr addr; in dumpleases_main() local 80 addr.s_addr = lease.lease_nip; in dumpleases_main() 84 printf(" %-16s%s ", inet_ntoa(addr), uni_name); in dumpleases_main() 90 printf(" %-16s%-20s", inet_ntoa(addr), lease.hostname); in dumpleases_main()
|
D | dhcpd.c | 272 uint32_t addr; in find_free_or_expired_nip() local 287 addr = server_data.start_ip in find_free_or_expired_nip() 289 stop = addr; in find_free_or_expired_nip() 291 addr = server_data.start_ip; in find_free_or_expired_nip() 303 nip = htonl(addr); in find_free_or_expired_nip() 322 addr++; in find_free_or_expired_nip() 324 if (addr > server_data.end_ip) in find_free_or_expired_nip() 325 addr = server_data.start_ip; in find_free_or_expired_nip() 327 } while (addr != stop); in find_free_or_expired_nip() 634 struct in_addr addr; in send_packet_verbose() local [all …]
|
/busybox-1.35.0/archival/libarchive/unxz/ |
D | xz_dec_bcj.c | 214 uint32_t addr; in bcj_ia64() local 242 addr = (norm >> 13) & 0x0FFFFF; in bcj_ia64() 243 addr |= ((uint32_t)(norm >> 36) & 1) << 20; in bcj_ia64() 244 addr <<= 4; in bcj_ia64() 245 addr -= s->pos + (uint32_t)i; in bcj_ia64() 246 addr >>= 4; in bcj_ia64() 249 norm |= (uint64_t)(addr & 0x0FFFFF) << 13; in bcj_ia64() 250 norm |= (uint64_t)(addr & 0x100000) in bcj_ia64() 272 uint32_t addr; in bcj_arm() local 276 addr = (uint32_t)buf[i] | ((uint32_t)buf[i + 1] << 8) in bcj_arm() [all …]
|
/busybox-1.35.0/miscutils/ |
D | fbsplash.c | 74 unsigned char *addr; // pointer to framebuffer memory member 181 G.addr = mmap(NULL, in fb_open() 184 if (G.addr == MAP_FAILED) in fb_open() 188 G.addr += G.scr_var.yoffset * G.scr_fix.line_length + G.scr_var.xoffset * G.bytes_per_pixel; in fb_open() 227 static void fb_write_pixel(unsigned char *addr, unsigned pixel) in fb_write_pixel() argument 231 *addr = pixel; in fb_write_pixel() 234 *(uint16_t *)addr = pixel; in fb_write_pixel() 237 *(uint32_t *)addr = pixel; in fb_write_pixel() 240 addr[0] = pixel; in fb_write_pixel() 241 addr[1] = pixel >> 8; in fb_write_pixel() [all …]
|
/busybox-1.35.0/networking/ |
D | nslookup.c | 695 static void add_ns(const char *addr) in add_ns() argument 700 dbg("%s: addr:'%s'\n", __func__, addr); in add_ns() 706 ns->name = addr; in add_ns() 707 ns->lsa = xhost2sockaddr(addr, G.default_port); in add_ns() 821 unsigned char addr[16]; in make_ptr() local 824 if (inet_pton(AF_INET6, addrstr, addr)) { in make_ptr() 825 if (memcmp(addr, v4_mapped, 12) != 0) { in make_ptr() 830 *ptr++ = 0x20 | bb_hexdigits_upcase[(unsigned char)addr[15 - i] & 0xf]; in make_ptr() 832 *ptr++ = 0x20 | bb_hexdigits_upcase[(unsigned char)addr[15 - i] >> 4]; in make_ptr() 839 addr[15], addr[14], addr[13], addr[12]); in make_ptr() [all …]
|
D | tcpudp.c | 391 char *addr = xmalloc_sockaddr2dotted(&lsa->u.sa); in tcpudpsvd_main() local 393 bb_error_msg("listening on %s, starting, uid %u, gid %u", addr, in tcpudpsvd_main() 396 bb_error_msg("listening on %s, starting", addr); in tcpudpsvd_main() 397 free(addr); in tcpudpsvd_main() 571 char *addr = xmalloc_sockaddr2dotted(&local.u.sa); in tcpudpsvd_main() local 572 xsetenv_plain("TCPORIGDSTADDR", addr); in tcpudpsvd_main() 573 free(addr); in tcpudpsvd_main()
|
D | zcip.c | 182 const char *addr = addr; /* for gcc */ in run() local 191 addr = nip_to_a(nip); in run() 193 env_ip = xasprintf("ip=%s", addr); in run() 197 bb_info_msg(fmt, argv[2], argv[0], addr); in run()
|
/busybox-1.35.0/examples/udhcp/ |
D | simple.script | 21 ip -4 addr flush dev $interface 31 ip addr add $ip$NETMASK $BROADCAST dev $interface
|
/busybox-1.35.0/util-linux/ |
D | readprofile.c | 240 unsigned long long addr; in readprofile_main() local 242 addr = (scan - 1)*step + add0; in readprofile_main() 244 addr, fn_name, addr - fn_add, in readprofile_main()
|
/busybox-1.35.0/procps/ |
D | fuser.c | 109 char line[MAX_LINE + 1], addr[68]; in scan_proc_net_or_maps() local 135 fag = addr; in scan_proc_net_or_maps() 151 r = strlen(addr); in scan_proc_net_or_maps()
|