/freebsd/contrib/libpcap/testprogs/ |
H A D | selpolltest.c | 70 bpf_u_int32 localnet, netmask; in main() local 152 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) { in main() 154 netmask = 0; in main() 159 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0) in main()
|
H A D | filtertest.c | 220 bpf_u_int32 netmask = PCAP_NETMASK_UNKNOWN; in main() local 283 netmask = addr; in main() 339 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0) in main()
|
H A D | writecaptest.c | 242 bpf_u_int32 localnet, netmask; in main() local 391 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) { in main() 393 netmask = 0; in main() 414 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0) in main()
|
/freebsd/sys/nfs/ |
H A D | bootp_subr.c | 141 struct sockaddr_in netmask; member 924 struct sockaddr_in *netmask; in bootpc_adjust_interface() local 929 netmask = &ifctx->netmask; in bootpc_adjust_interface() 961 bcopy(netmask, &ifra->ifra_mask, sizeof(*netmask)); in bootpc_adjust_interface() 964 ~netmask->sin_addr.s_addr; in bootpc_adjust_interface() 1337 clear_sinaddr(&ifctx->netmask); in bootpc_decode_reply() 1372 bcopy(p, &ifctx->netmask.sin_addr, 4); in bootpc_decode_reply() 1375 print_sin_addr(&ifctx->netmask); in bootpc_decode_reply() 1487 ifctx->netmask.sin_addr.s_addr = htonl(IN_CLASSA_NET); in bootpc_decode_reply() 1731 ~ ifctx->netmask.sin_addr.s_addr; in bootpc_init() [all …]
|
/freebsd/contrib/libpcap/ |
H A D | pcap-dos.c | 535 bpf_u_int32 *netmask, char *errbuf) in pcap_lookupnet() argument 550 if (IN_CLASSA(*netmask)) in pcap_lookupnet() 552 else if (IN_CLASSB(*netmask)) in pcap_lookupnet() 554 else if (IN_CLASSC(*netmask)) in pcap_lookupnet() 563 *netmask = htonl (mask); in pcap_lookupnet() 580 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; in pcap_platform_finddevs() 616 netmask = (struct sockaddr*) &sa_ll_1; in pcap_platform_finddevs() 622 netmask, sizeof(*netmask), in pcap_platform_finddevs()
|
/freebsd/contrib/ntp/libntp/lib/isc/unix/ |
H A D | ifiter_ioctl.c | 436 get_inaddr(&iter->current.netmask, &ci.netmask); in internal_current_clusteralias() 584 iter->current.netmask.family = family; in internal_current4() 593 iter->current.netmask.type.in6.s6_addr[i] = (~0 << bits) & 0xff; in internal_current4() 672 get_addr(family, &iter->current.netmask, in internal_current4() 849 iter->current.netmask.family = family; in internal_current6() 853 iter->current.netmask.type.in6.s6_addr[i / 8] = in internal_current6() 878 get_addr(family, &iter->current.netmask, in internal_current6()
|
/freebsd/stand/common/ |
H A D | dev_net.c | 175 setenv("boot.netif.netmask", intoa(netmask), 1); in net_open() 310 netmask = smask; in net_getparams() 314 intoa(netmask)); in net_getparams()
|
/freebsd/contrib/wpa/src/wps/ |
H A D | wps_upnp_i.h | 131 struct in_addr netmask; member 162 struct in_addr *netmask, u8 mac[ETH_ALEN]);
|
H A D | wps_upnp.c | 309 return (addr->sin_addr.s_addr & sm->netmask.s_addr) == in local_network_addr() 310 (sm->ip_addr & sm->netmask.s_addr); in local_network_addr() 919 struct in_addr *netmask, u8 mac[ETH_ALEN]) in get_netif_info() argument 945 if (netmask) { in get_netif_info() 955 netmask->s_addr = addr->sin_addr.s_addr; in get_netif_info() 1065 &sm->netmask, sm->mac_addr)) { in upnp_wps_device_start() 1072 sm->ip_addr_text, inet_ntoa(sm->netmask), in upnp_wps_device_start()
|
/freebsd/tools/regression/netinet/msocket_ifnet_remove/ |
H A D | msocket_ifnet_remove.c | 129 ifconfig_inet(char *ifname, int ifunit, char *ip, char *netmask) in ifconfig_inet() argument 153 sinp->sin_addr.s_addr = inet_addr(netmask); in ifconfig_inet()
|
/freebsd/sbin/routed/ |
H A D | parms.c | 163 naddr dst, netmask, gate; in gwkludge() local 229 netmask = HOST_MASK; in gwkludge() 231 if (!getnet(dname, &dst, &netmask)) { in gwkludge() 307 ifp = check_dup(gate,dst,netmask,state); in gwkludge() 317 if (netmask == HOST_MASK) in gwkludge() 324 ifp->int_mask = netmask; in gwkludge() 325 ifp->int_ripv1_mask = netmask; in gwkludge()
|
/freebsd/usr.sbin/bsdconfig/networking/share/ |
H A D | ipaddr.subr | 132 # netmask at the same time as the IP address. If such a format is entered by 133 # the user, the $netmask environment variable will hold the newly-configured 134 # netmask upon return. 209 [ "$_netmask" ] && netmask="$_netmask"
|
H A D | Makefile | 4 netmask.subr resolv.subr routing.subr services.subr
|
/freebsd/sbin/pfctl/tests/files/ |
H A D | pf0061.in | 1 # dynaddr with netmask
|
H A D | pf0060.in | 1 # netmask handling w/ multicast
|
H A D | pf0077.in | 1 # dynaddr with netmask. I never want to see this again:
|
/freebsd/sbin/dhclient/tests/ |
H A D | pcp.sh | 80 subnet 192.0.2.0 netmask 255.255.255.0 { 161 subnet 192.0.2.0 netmask 255.255.255.0 {
|
/freebsd/lib/libc/net/ |
H A D | networks | 4 your-netmask 255.255.255 # subnet mask for your-net
|
/freebsd/sys/netgraph/ |
H A D | ng_cisco.h | 66 struct in_addr netmask; /* Netmask */ member
|
/freebsd/stand/libsa/ |
H A D | globals.c | 32 n_long netmask = 0xffffff00; /* subnet or net mask */ variable
|
/freebsd/usr.sbin/bsdconfig/share/media/ |
H A D | tcpip.subr | 182 # f_validate_ipaddr $ipaddr [$netmask] 379 # f_validate_netmask $netmask 383 # The return status for invalid netmask is one of: 425 # f_validate_gateway $gateway $ipaddr $netmask 430 # mask $netmask. 434 local gateway="$1" ipaddr="$2" netmask="$3" 439 f_inet_atoi "$netmask" masknum 456 local ipaddr="$4" netmask="$5" 463 elif [ "$netmask" ] && ! f_validate_netmask "$netmask"; then 1149 $private get netmask _netmask [all …]
|
/freebsd/contrib/hyperv/tools/scripts/ |
H A D | hv_set_ifconfig | 48 ifconfig $IF_NAME inet $IP_ADDR netmask $SUBNET
|
/freebsd/tools/test/stress2/misc/ |
H A D | ifconfig.sh | 53 ifconfig $if.$i inet 224.0.0.$i netmask 255.255.255.0
|
H A D | ifconfig2.sh | 56 ifconfig $if.$i inet 224.0.0.$i netmask 255.255.255.0
|
/freebsd/contrib/ntp/libntp/lib/isc/include/isc/ |
H A D | interfaceiter.h | 55 isc_netaddr_t netmask; /*%< Network mask. */ member
|