Skip to content
Advertisement

Tag: ipv6

linux + formula to convert IPV6 address to IP address

Formula to convert IPv6 Address to IP address number I’m looking for a formula to convert IPV6 address to IP address . for example – lets say we have the ipv6 as the following Input IPV6 address : 2001:0db8:0000:0000:0000:ff00:0042:8329 Output IP Number converted : 32.136.7.34 Answer to IP address As already written in the comments, the word “IP address” may

IPv6 example program fails on connect()

IPv6 example program fails on connect() I arranged the server argument to be evaluated by inet_pton() if numeric, otherwise, it goes through getaddrinfo(). inet_pton() sets up the address and it works. getaddrinfo() does not, apparently, it dies in connect (hangs up). The example program is a simple web page fetch and print (not https). I used the www.example.com server to

IPv6 multicast interface selection

The setsockopt way to select an interface for the outgoing traffic with IPv4 is IP_MULTICAST_IF, which accepts two arguments. From the ip(4) manual page: Set the local device for a multicast socket. The argument for setsockopt(2) is an ip_mreqn or (since Linux 3.5) ip_mreq structure similar to IP_ADD_MEMBERSHIP, or an in_addr structure. When trying to do the analogous operation with

Advertisement