Questions tagged [ipv6]

The Internet Protocol is one of the fundamental protocols used for the Internet. IPv6 is the next generation Internet Protocol, as opposed to the currently common Internet Protocol known as IPv4.

Primarily IPv6 increases the number of available addresses to allow continued expansion of the Internet once all of the addresses are allocated. There are a number of other noticeable changes over , which are based on the lessons learned from the evolution of .

Useful resources:

2550 questions
1
vote
2 answers

sendto() : Bad file descriptor in UDP - IPv6

static void app(const char *address, int port, char *name) { int sock; struct addrinfo server; sock = init_connection(address,port,&server); char buffer[BUF_SIZE]; write_server(sock, &server, name); /*error is here*/ /* ..... */ …
user1361431
  • 11
  • 1
  • 3
1
vote
2 answers

udp6 CLOSE when programming android udp server

I'm writting a UDP server program in Android 4.0 (api 15) when program started, I cann't connect to the UDP server in android environment: virtualbox, android x84 4.0, ping to/from virtualbox-android are ok, UDP server code: DatagramSocket ds = new…
OItisTang
  • 11
  • 1
1
vote
2 answers

struct in6_addr crashes on gcc c99

I have piece of code, which obtains local IPv6 address. gcc and clang with std=c99 crashes on those lines: ipv6addr.s6_addr16[i] = htons((unsigned short int)tmp); if (!(IN6_IS_ADDR_LOOPBACK(ipv6addr.s6_addr32) ||…
aleek
  • 61
  • 6
1
vote
2 answers

Best way to check if IPv6 is available

What is the best way to check if IPv6 is available on the currient android phone? My currient idea is to use NetworkInterface and to enumerate via NetworkInterface.getNetworkInterfaces() but this seems to be too complicated. Is there a simpler way?
rekire
  • 47,260
  • 30
  • 167
  • 264
1
vote
4 answers

Reason why IPv6 IP adresses have a size of 128 bits and not 256?

I was discussing with a friend about some internals of IPv6. It is well-known that IPv6 IP adresses have a size of 128 bits (for IPv4 it is 32 bits). He asked me what is the reason why this size was set to 128 bits - 256 bits would have made a more…
Nubok
  • 3,502
  • 7
  • 27
  • 47
1
vote
1 answer

How can I set the outgoing IPv6 address in Perl's LWP::UserAgent?

I know it is possible to set IPv4 outgoing IP in LWP::UserAgent, but is it possible to set specific IPv6 address as outgoing IP? If yes: how can I do this?
gib
  • 738
  • 1
  • 8
  • 16
1
vote
1 answer

IPv6 to IPv4 on Google App Engine

We are using a service that require us to provide an IP in V4 format. Our application which resides on GAE reports (using python's os.environ["REMOTE_ADDR"]) for some users the IP in V6 format. Is there away to convert the IP from V6 to V4 on GAE?…
Eden
  • 3,696
  • 2
  • 24
  • 24
1
vote
1 answer

Most reliable way to get fully-qualified domain name of local machine when IPv4 & 6 are configured

I need the FQDN of my local machine (app01.example.com). Normally, I would use System.Net.Dns.GetHostName(), but if you look at the community content at the bottom of the documentation for Dns.GetHostName(), you'll notice that there's some strange…
John Ruiz
  • 2,371
  • 3
  • 20
  • 29
0
votes
1 answer

How can I catch the exception if IPV6 address is passed

This is my below code and I want to catch the exception if any IPV6 address is passed. Any idea how it can be done in my code? private static boolean validateAnIpAddress(String ipAddr) { InetAddress address = null; boolean isIPv4; …
arsenal
  • 23,366
  • 85
  • 225
  • 331
0
votes
1 answer

How to get interface's ipv6 address using libnet?

I saw an example code that get the mac and ipv4 address of an interface. I changed it a bit trying to get the ipv6 address of that interface but the program fail saying "27:13: error: incompatible types when assigning to type ‘u_int32_t’ from type…
Allan Ruin
  • 5,229
  • 7
  • 37
  • 42
0
votes
1 answer

check for particular port availability on particular IP(both Ipv4 and Ipv6) in nsis

I am displaying all connected Ip addresses in a drop down and I need to check whether the particular port is free in particular Ip(both Ipv4 and Ipv6).Ip will be selected from dropdown, How can I check whether the selected Ip is Ipv4 or Ipv6 and…
user1234
  • 289
  • 6
  • 13
0
votes
3 answers

IPv6 - memory representation

I would like to know how IPv6 address is represent in computer memory? It's really obvious for me that IPv4 has reversed bytes in memory. But I want to figure out how computer stores all 128 bits of IPv6 address. Thanks in advance :) Thank you very…
caro
  • 381
  • 3
  • 5
  • 20
0
votes
1 answer

Test of IPv6 and IPv4 using D-ITG

recently i am working on o project to test the performacne of IPv6. I am not so familiar with this subject and my supervisior advised me to use D-ITG to test. I have two laptops (both have win7 ultimate and Ubuntu 11.10) at home. Ping is working in…
Roger
  • 1
  • 2
0
votes
1 answer

Raw IPv6 packet handling on linux

Is there any utility function on the Kernel like the ipv6_skip_exthdr() [1] for instance, which doesn't uses sk_buff as input to handle ipv6 packets? I need some basic functionality to handle IPv6 packets, I know Kernel does this, but I wasn't able…
Tarantula
  • 19,031
  • 12
  • 54
  • 71
0
votes
2 answers

Bind() api fails with ipv6 address

it works when iam trying to bind to my auto-config link local address. but when i try to bind to some manually assigned IPv6 address bind() fails with 10049 error. here is the code bool StartServer() { const char *Ip = "…