Home
last modified time | relevance | path

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

123

/dragonfly/share/examples/startslip/
H A Dslup.sh4 netmask=255.255.255.248
15 /sbin/ifconfig $1 inet $myname $gateway netmask $netmask
/dragonfly/contrib/libpcap/
H A Dfad-getad.c150 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; in pcap_findalldevs_interfaces() local
224 netmask = ifa->ifa_netmask; in pcap_findalldevs_interfaces()
228 netmask = NULL; in pcap_findalldevs_interfaces()
268 addr, addr_size, netmask, addr_size, in pcap_findalldevs_interfaces()
H A Dpcap.c1075 struct sockaddr *netmask, size_t netmask_size, argument
1149 if (netmask != NULL && netmask_size != 0) {
1150 curaddr->netmask = (struct sockaddr *)dup_sockaddr(netmask, netmask_size);
1151 if (curaddr->netmask == NULL) {
1160 curaddr->netmask = NULL;
1167 if (curaddr->netmask != NULL)
1168 free(curaddr->netmask);
1184 if (curaddr->netmask != NULL)
1185 free(curaddr->netmask);
1446 if (curaddr->netmask)
[all …]
/dragonfly/sys/platform/pc64/x86_64/
H A Dautoconf.c316 struct sockaddr_in myaddr, netmask; in pxe_setup_nfsdiskless() local
322 if (inaddr_to_sockaddr("boot.netif.netmask", &netmask)) { in pxe_setup_nfsdiskless()
329 myaddr.sin_addr.s_addr | ~ netmask.sin_addr.s_addr; in pxe_setup_nfsdiskless()
330 bcopy(&netmask, &nd->myif.ifra_mask, sizeof(netmask)); in pxe_setup_nfsdiskless()
/dragonfly/sys/net/
H A Droute.c448 struct sockaddr *netmask; member
471 msg.netmask = netmask; in rtredirect()
479 rtinfo.rti_info[RTAX_NETMASK] = netmask; in rtredirect()
668 struct sockaddr *netmask, in rtrequest() argument
687 struct sockaddr *netmask, in rtrequest_global() argument
1289 struct sockaddr *netmask) in rt_maskedcopy() argument
1293 u_char *cp3 = (u_char *)netmask; in rt_maskedcopy()
1551 netmask = NULL; in rtinit()
1554 netmask = ifa->ifa_netmask; in rtinit()
1567 if (netmask != NULL) { in rtinit()
[all …]
/dragonfly/usr.sbin/ppp/
H A Darp.c288 struct sockaddr_in *ifa, *netmask; in arp_EtherAddr() local
291 netmask = (struct sockaddr_in *)sa[RTAX_NETMASK]; in arp_EtherAddr()
296 strncpy(a, inet_ntoa(netmask->sin_addr), sizeof a - 1); in arp_EtherAddr()
302 if ((ifa->sin_addr.s_addr & netmask->sin_addr.s_addr) == in arp_EtherAddr()
303 (ipaddr.s_addr & netmask->sin_addr.s_addr)) { in arp_EtherAddr()
/dragonfly/stand/lib/
H A Dbootp.c220 netmask = nmask; in bootp()
222 netmask = smask; in bootp()
225 printf("mask: %s\n", intoa(netmask)); in bootp()
229 if (!SAMENET(myip, rootip, netmask)) { in bootp()
237 if (!SAMENET(myip, gateip, netmask)) { in bootp()
H A Drarp.c119 netmask = IN_CLASSA_NET; in rarp_getipaddress()
121 netmask = IN_CLASSB_NET; in rarp_getipaddress()
123 netmask = IN_CLASSC_NET; in rarp_getipaddress()
H A Dudp.c114 netmask == 0 || SAMENET(ip->ip_src, ip->ip_dst, netmask)) in sendudp()
H A Dglobals.c31 n_long netmask = 0xffffff00; /* subnet or net mask */ variable
/dragonfly/sys/platform/vkernel64/x86_64/
H A Dautoconf.c395 struct sockaddr_in myaddr, netmask; in pxe_setup_nfsdiskless() local
401 if (inaddr_to_sockaddr("boot.netif.netmask", &netmask)) { in pxe_setup_nfsdiskless()
408 myaddr.sin_addr.s_addr | ~ netmask.sin_addr.s_addr; in pxe_setup_nfsdiskless()
409 bcopy(&netmask, &nd->myif.ifra_mask, sizeof(netmask)); in pxe_setup_nfsdiskless()
/dragonfly/stand/boot/common/
H A Ddev_net.c259 netmask = smask; in net_getparams()
260 printf("net_open: subnet mask: %s\n", intoa(netmask)); in net_getparams()
291 setenv("boot.netif.netmask", intoa(netmask), 1); in net_getparams()
/dragonfly/sys/vfs/nfs/
H A Dbootp_subr.c119 struct sockaddr_in netmask; member
1077 struct sockaddr_in *netmask; in bootpc_adjust_interface() local
1083 netmask = &ifctx->netmask; in bootpc_adjust_interface()
1117 bcopy(netmask, &ireq->ifr_addr, sizeof(*netmask)); in bootpc_adjust_interface()
1128 ~ netmask->sin_addr.s_addr; in bootpc_adjust_interface()
1352 clear_sinaddr(&ifctx->netmask); in bootpc_decode_reply()
1392 bcopy(p, &ifctx->netmask.sin_addr, 4); in bootpc_decode_reply()
1395 print_sin_addr(&ifctx->netmask); in bootpc_decode_reply()
1505 ifctx->netmask.sin_addr.s_addr = htonl(IN_CLASSA_NET); in bootpc_decode_reply()
1676 ~ ifctx->netmask.sin_addr.s_addr; in bootpc_init()
[all …]
/dragonfly/usr.sbin/rpcbind/
H A Dutil.c85 u_int8_t *p1 = dst, *p2 = src, *netmask = mask; in bitmaskcmp() local
88 if ((p1[i] & netmask[i]) != (p2[i] & netmask[i])) in bitmaskcmp()
/dragonfly/sbin/routed/
H A Dparms.c162 naddr dst, netmask, gate; in gwkludge() local
228 netmask = HOST_MASK; in gwkludge()
230 if (!getnet(dname, &dst, &netmask)) { in gwkludge()
305 ifp = check_dup(gate,dst,netmask,0); in gwkludge()
315 if (netmask == HOST_MASK) in gwkludge()
322 ifp->int_mask = netmask; in gwkludge()
323 ifp->int_ripv1_mask = netmask; in gwkludge()
/dragonfly/stand/boot/pc32/libi386/
H A Dpxe.c302 printf("pxe_open: ip netmask : %s\n", intoa(netmask)); in pxe_open()
307 setenv("boot.netif.netmask", intoa(netmask), 1); in pxe_open()
603 if (netmask == 0 || SAMENET(myip, h->destip, netmask)) in sendudp()
/dragonfly/share/examples/sliplogin/
H A Dslip.login14 /sbin/ifconfig sl$1 inet $4 $5 netmask $6
/dragonfly/share/examples/IPv6/
H A DUSAGE58 inet 163.221.202.12 netmask 0xffffff00 broadcast 163.221.202.255
91 inet 163.221.202.12 netmask 0xffffff00 broadcast 163.221.202.255
98 inet 163.221.202.12 netmask 0xffffff00 broadcast 163.221.202.255
123 inet 163.221.202.12 netmask 0xffffff00 broadcast 163.221.202.255
130 inet 163.221.203.12 netmask 0xffffff00 broadcast 163.221.203.255
152 inet 163.221.202.12 netmask 0xffffff00 broadcast 163.221.202.255
159 inet 163.221.203.12 netmask 0xffffff00 broadcast 163.221.203.255
352 # gifconfig gif0 10.0.0.1 10.0.0.1 netmask 255.255.255.0
355 # gifconfig gif0 10.0.0.1 10.0.0.1 netmask 255.255.255.0
/dragonfly/sys/netgraph7/cisco/
H A Dng_cisco.h67 struct in_addr netmask; /* Netmask */ member
/dragonfly/sys/netgraph/cisco/
H A Dng_cisco.h66 struct in_addr netmask; /* Netmask */ member
/dragonfly/etc/
H A Dnetworks8 your-netmask 255.255.255 # subnet mask for your-net
/dragonfly/nrelease/root/etc/
H A Ddhcpd.conf20 subnet 10.1.0.0 netmask 255.255.0.0 {
/dragonfly/sbin/route/
H A Dkeywords32 netmask
/dragonfly/contrib/dhcpcd/src/
H A Droute.c75 const struct sockaddr *addr, const struct sockaddr *netmask) in rt_maskedaddr() argument
77 const char *addrp = addr->sa_data, *netmaskp = netmask->sa_data; in rt_maskedaddr()
80 const char *netmaske = (char *)dst + MIN(sa_len(addr), sa_len(netmask)); in rt_maskedaddr()
87 if (sa_is_unspecified(netmask)) { in rt_maskedaddr()
/dragonfly/sys/platform/vkernel64/platform/
H A Dinit.c1185 in_addr_t tap_addr, netmask, netif_addr; in netif_init_tap() local
1226 netmask = netif_addr = 0; in netif_init_tap()
1257 netmask = in netif_init_tap()
1276 if (netif_set_tapaddr(tap_unit, tap_addr, netmask, s) < 0) in netif_init_tap()
1285 *mask = netmask; in netif_init_tap()

123