Lines Matching refs:network
20 network definition, and so on.
58 representing the IP network. Either IPv4 or IPv6 networks may be supplied;
62 IPv6 address, or if the network has host bits set.
131 network.
344 for defining and inspecting IP network definitions. A network definition
345 consists of a *mask* and a *network address*, and as such defines a range of
346 IP addresses that equal the network address when masked (binary AND) with the
347 mask. For example, a network definition with the mask ``255.255.255.0`` and
348 the network address ``192.168.1.0`` consists of IP addresses in the inclusive
355 There are several equivalent ways to specify IP network masks. A *prefix*
357 the network mask. A *net mask* is an IP address with some number of
361 (for example in Cisco access control lists) to denote a network mask. The
368 All attributes implemented by address objects are implemented by network
369 objects as well. In addition, network objects implement additional attributes.
377 Construct an IPv4 network definition. *address* can be one of the following:
380 a slash (``/``). The IP address is the network address, and the mask
393 single-address network, with the network address being *address* and
411 to determine the appropriate network address.
413 Unless stated otherwise, all network methods accepting other network/address
434 These attributes are true for the network as a whole if they are true
435 for both the network address and the broadcast address.
439 The network address for the network. The network address and the
440 prefix length together uniquely define a network.
444 The broadcast address for the network. Packets sent to the broadcast
445 address should be received by every host on the network.
459 A string representation of the network, with the mask in prefix
463 ``str(network)``.
464 ``exploded`` uses the exploded form the network address.
468 A string representation of the network, with the mask in net mask
473 A string representation of the network, with the mask in host mask
478 The total number of addresses in the network.
482 Length of the network prefix, in bits.
486 Returns an iterator over the usable hosts in the network. The usable
487 hosts are all the IP addresses that belong to the network, except the
488 network address itself and the network broadcast address. For networks
489 with a mask length of 31, the network address and network broadcast
501 ``True`` if this network is partly or wholly contained in *other* or
502 *other* is wholly contained in this network.
504 .. method:: address_exclude(network)
506 Computes the network definitions resulting from removing the given
507 *network* from this one. Returns an iterator of network objects.
508 Raises :exc:`ValueError` if *network* is not completely contained in
509 this network.
519 The subnets that join to make the current network definition, depending
524 iterator of network objects.
544 The supernet containing this network definition, depending on the
549 network object.
560 Returns *True* if this network is a subnet of *other*.
571 Returns *True* if this network is a supernet of *other*.
582 Compare this network to *other*. In this comparison only the network
599 Construct an IPv6 network definition. *address* can be one of the following:
602 separated by a slash (``/``). The IP address is the network address,
611 single-address network, with the network address being *address* and
628 to determine the appropriate network address.
655 Returns an iterator over the usable hosts in the network. The usable
656 hosts are all the IP addresses that belong to the network, except the
661 .. method:: address_exclude(network)
673 These attribute is true for the network as a whole if it is true
674 for both the network address and the broadcast address.
689 Network objects are ordered first by network address, then by net mask.
696 network. For iteration, *all* hosts are returned, including unusable hosts
754 The address (:class:`IPv4Address`) without network information.
760 .. attribute:: network
762 The network (:class:`IPv4Network`) this interface belongs to.
765 >>> interface.network
778 A string representation of the interface with the network as a net mask.
786 A string representation of the interface with the network as a host mask.
804 .. attribute:: network
826 For equality comparison (``==`` and ``!=``), both the IP address and network
828 equal to any address or network object.
844 Represent an address as 4 packed bytes in network (big-endian) order.
857 Represent an address as 16 packed bytes in network (big-endian) order.
865 Return an iterator of the summarized network range given the first and last
904 *obj* is either a network or address object.