Home
last modified time | relevance | path

Searched refs:netmask (Results 1 – 5 of 5) sorted by relevance

/busybox-1.35.0/networking/
Dipcalc.c75 static int get_prefix(unsigned long netmask) in get_prefix() argument
80 netmask = htonl(netmask); in get_prefix()
82 if (netmask & msk) in get_prefix()
89 int get_prefix(unsigned long netmask);
127 #define netmask (s_netmask.s_addr) in ipcalc_main() macro
162 netmask = 0; in ipcalc_main()
165 netmask |= msk; in ipcalc_main()
169 netmask = htonl(netmask); in ipcalc_main()
194 netmask = get_netmask(ipaddr); in ipcalc_main()
202 broadcast = (ipaddr & netmask) | ~netmask; in ipcalc_main()
[all …]
Droute.c167 const char *netmask = NULL; in INET_setroute() local
198 netmask = "default"; in INET_setroute()
242 netmask = args_m1; in INET_setroute()
243 isnet = INET_resolve(netmask, (struct sockaddr_in *) &mask, 0); in INET_setroute()
245 bb_error_msg_and_die("resolving %s", netmask); in INET_setroute()
323 bb_error_msg_and_die("bogus netmask %s", netmask); in INET_setroute()
Dinterface.c331 struct sockaddr netmask; /* IP network mask */ member
650 ife->netmask = ifr.ifr_netmask; in if_fetch()
950 printf(" Mask:%s\n", ap->sprint(&ptr->netmask, 1)); in ife_print()
/busybox-1.35.0/include/
Dinet_common.h27 char *INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask) FAST_FUNC;
/busybox-1.35.0/libbb/
Dinet_common.c80 char* FAST_FUNC INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask) in INET_rresolve() argument
102 dbg("rresolve: %08x mask:%08x num:%08x", (unsigned)nip, netmask, numeric); in INET_rresolve()
111 is_host = ((nip & (~netmask)) != 0 || (numeric & 0x4000)); in INET_rresolve()