ipv6

List of possible internal socket statuses from /proc

折月煮酒 提交于 2019-11-29 22:23:32
I would like to know the possible values of st column in /proc/net/tcp . I think the st column equates to STATE column from netstat(8) or ss(8) . I have managed to identify three codes: sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode 0: 0100007F:08A0 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 7321 1 ffff81002f449980 3000 0 0 2 -1 1: 00000000:006F 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 6656 1 ffff81003a30c080 3000 0 0 2 -1 2: 00000000:0272 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 6733 1

Use Indy to perform an IPv6 reverse DNS lookup

半城伤御伤魂 提交于 2019-11-29 22:07:26
问题 I am using Indy to perform a reverse IPv4 lookup using the following code. function ReverseDNSLookup(const IPAddress: String; const DNSServer: String; Timeout, Retries: Integer; var HostName: String): Boolean; var AIdDNSResolver: TIdDNSResolver; RetryCount: Integer; begin Result := FALSE; AIdDNSResolver := TIdDNSResolver.Create(nil); try AIdDNSResolver.QueryResult.Clear; AIdDNSResolver.WaitingTime := Timeout; AIdDNSResolver.QueryType := [qtPTR]; AIdDNSResolver.Host := DNSServer; RetryCount :=

what does “dead beef” mean?

半世苍凉 提交于 2019-11-29 19:04:24
What does the word "dead beef" mean? I read it from a interview question. It has something to do with ipv6. I figured it could be a random hex number used for examples, like "The quick brown fox jumps over the lazy dog". Is my understanding correct? Or it has more significant meaning? Dustin Laine http://en.wikipedia.org/wiki/Hexspeak http://www.urbandictionary.com/define.php?term=dead%3Abeef "Dead beef" is a very popular sentence in programming, because it is built only from letters a-f, which are used in hexadecimal notation. Colons in the beginning and in the middle of the sentence make

ios - failing app store ipv6 but can't re-produce

女生的网名这么多〃 提交于 2019-11-29 16:43:38
I have an app that is developed in React Native and uses an API to handle all of the data. The app has already been approved with no problems and no crashing. I have (after WWDC) recently done some updates to the app and tested everything locally as well on a real device. The app works fine with no crashing at all. Apple have come back with the following response: "Performance - 2.1 Your app crashed on iPad and iPhone running iOS 10.2 connected to an IPv6 network when we: 1. Launched app 2. Tapped" The issue is that I cannot replicate the issue happening on my local machine (we use ipv4 at our

Using the name resolver of resolv.h with IPv6

喜欢而已 提交于 2019-11-29 15:35:50
I write or modify programs which perform name resolution and need a good control of the process. So I do not use getaddrinfo() , I go deeper and use res_query() / res_send() / etc in resolv.h , documented in resolver(3). Although not documented, the common way to set the resolver used is to update _res.nsaddr_list . But this array, defined in resolv.h, stores struct sockaddr_in , that is IPv4 addresses only. (IPv6 addresses are struct sockaddr_in6 , a family-independant system would use struct sockaddr .) I'm looking for a way (preferrably portable, at least among the various Unix) to tell

expand an IPv6 address so I can print it to stdout

守給你的承諾、 提交于 2019-11-29 14:24:22
问题 I am using getifaddrs() and inet_ntop() to get the ip addresses on the system. When the system is set to IPv6 the address returned is in the shortened version (using :: for zeros). Is there any way to expand that address to a full one? This is the code I am using: struct ifaddrs *myaddrs, *ifa; void *in_addr; char buf[64]; if(getifaddrs(&myaddrs) != 0) { perror("getifaddrs"); exit(1); } for (ifa = myaddrs; ifa != NULL; ifa = ifa->ifa_next) { if (ifa->ifa_addr == NULL) continue; if (!(ifa->ifa

Socket listener for IPv6 and IPv4

若如初见. 提交于 2019-11-29 14:22:46
I ported an application to support IPv6, using popular tutorials. I decided to use only one socket listener for both protocols. Now I realized I have to set IPV6_V6ONLY properly (it's only working on my x86 linux out of the box, but not on my ARM). Is this really the way to go? Some say IPV6_V6ONLY shouldn't be used (apparently it's outdated, because of IPv4 mapping over the wire), some say using one socket for both protocols is fine. So, I'm confused. What is the current state about this problem? Did I misunderstand the problem? You should always bind both sockets explicitly, with the IPv6

InetAddress.getHostAddress() ipv6 compliant?

孤人 提交于 2019-11-29 13:53:36
Is InetAddress.getHostAddress() ipv6 compliant in JDK 1.6? Specifically I am doing InetAddress.getLocalHost().getHostAddress() Is it ipv6 compliant? Does it work for both ipv4 and v6 addresses? The extended class java.net.Inet6Address is IPv6 compliant. JavaDoc: This class represents an Internet Protocol version 6 (IPv6) address. Defined by RFC 2373: IP Version 6 Addressing Architecture. Basically, if you do InetAddress.getByName() or InetAddress.getByAddress() the methods identify whether the name or address is an IPv4 or IPv6 name/address and return an extended Inet4Address / Inet6Address

For Soap NSURLConnection, Please ensure that your app supports IPv6 networks, as IPv6 compatibility is required

我的梦境 提交于 2019-11-29 12:56:01
I've submitted my app in AppStore, they reject if due to following reason. Hello, Thank you for providing this information. Upon further review, we were still unable to login to the app. Please note that apps are reviewed on an IPv6 network. Please ensure that your app supports IPv6 networks, as IPv6 compatibility is required. For information about supporting IPv6 Networks, refer to Supporting iPv6 DNS64/NAT64 Networks. For a networking overview, please see About Networking. Best regards, App Store Review I am using SOAP Envelope service to use it, Here is my code @property(retain,nonatomic

how to get IPV6 interface address using getifaddr() function [duplicate]

做~自己de王妃 提交于 2019-11-29 12:42:17
This question already has an answer here: How to know the IP address for interfaces in C using IPv6 1 answer I have getifaddrs() definition but it is for IPv4. Please guide me how to get IPv6 if address using the getifaddrs() function. getifaddrs does support IPv6. Here's an example on how to print the name and IP address of all interfaces on the system: struct ifaddrs *ifa, *ifa_tmp; char addr[50]; if (getifaddrs(&ifa) == -1) { perror("getifaddrs failed"); exit(1); } ifa_tmp = ifa; while (ifa_tmp) { if ((ifa_tmp->ifa_addr) && ((ifa_tmp->ifa_addr->sa_family == AF_INET) || (ifa_tmp->ifa_addr-