Chapter 8, Implementing IPv6 and Address Manipulation

  1. Link-local.
  2. :: 1/128.
  3. socket.getaddrinfo.
  4. Use the following code to create a server with IPv6 support with a socket module:
# socket.AF_INET6 to indicate that we will use Ipv6
client = socket.socket (socket.AF_INET6, socket.SOCK_STREAM)
  1. We can call the interfaces() function from this library to list all of the interfaces that are present in the system.
  2. AF_LINK is the link layer interface (for example, Ethernet), AF_INET represents the IPv4 internet address, and AF_INET6 represents the IPv6 internet address.
  3. psutil.
  4. We can interoperate between IPv4 and IPv6 with the ipv6() and ipv4() methods.
  5. From ipaddress, we can import IPv6Address, IPv6Network, and IPv6Interface.
  1. The subnets(prefixlen_diff=1, new_prefix=None) method also has the capacity to generate subnets with additional host bits or with a specific amount of network bits. Any IPv4Network object can find out information about its parent with the supernet() method, which is the opposite of the subnet.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset