100+ results results for 'ipv6 repo:imdhmd/puppet' (216 ms)
49 * Tries to resolve the host name. Returns true if succeeds to resolve 50 * the host to an IPv4 or IPv6 address. 51 * 81 /************************************************************************* 82 * Extension of the isInNet method to support IPv6. 83 * @param ipAddress an IP4 or IP6 address 241 * Sorts a list of IP4 and IP6 addresses. Separated by semicolon. 242 * Dual addresses first, then IPv6 and last IPv4. 243 * @param ipAddressList the address list.fping-ipv6-ac.patch git://github.com/repoforge/rpms.git | Patch | 462 lines
1diff -Naur fping-2.4b2_to-ipv6/config.h.in fping-2.4b2_to-ipv6-ac/config.h.in 2--- fping-2.4b2_to-ipv6/config.h.in Wed Jan 16 01:49:45 2002 97 #ifndef INADDR_NONE 98diff -Naur fping-2.4b2_to-ipv6/configure.in fping-2.4b2_to-ipv6-ac/configure.in 99--- fping-2.4b2_to-ipv6/configure.in Wed Jan 16 01:48:02 2002 113+AC_ARG_ENABLE(ipv6, 114+[ --enable-ipv6 Enable ipv6 (with ipv4) support 115+ --disable-ipv6 Disable ipv6 support], 175+ AC_DEFINE(HAVE_GETADDRINFO, 1, [Define if getaddrinfo exists and works]) 176+ AC_DEFINE(ENABLE_IPV6, 1, [Define if you want to enable IPv6 support]) 177+ 185 186diff -Naur fping-2.4b2_to-ipv6/fping.c fping-2.4b2_to-ipv6-ac/fping.c 187--- fping-2.4b2_to-ipv6/fping.c Mon Jan 21 02:06:30 2002 264-#ifndef IPV6 265+#ifndef ENABLE_IPV6 266 icp->icmp_type = ICMP_ECHO;pkt_cls.h https://bitbucket.org/sjohann81/linux-4.13.9.git | C Header | 569 lines
394 TCA_FLOWER_KEY_IPV4_DST_MASK, /* be32 */ 395 TCA_FLOWER_KEY_IPV6_SRC, /* struct in6_addr */ 396 TCA_FLOWER_KEY_IPV6_SRC_MASK, /* struct in6_addr */ 396 TCA_FLOWER_KEY_IPV6_SRC_MASK, /* struct in6_addr */ 397 TCA_FLOWER_KEY_IPV6_DST, /* struct in6_addr */ 398 TCA_FLOWER_KEY_IPV6_DST_MASK, /* struct in6_addr */ 413 TCA_FLOWER_KEY_ENC_IPV4_DST_MASK,/* be32 */ 414 TCA_FLOWER_KEY_ENC_IPV6_SRC, /* struct in6_addr */ 415 TCA_FLOWER_KEY_ENC_IPV6_SRC_MASK,/* struct in6_addr */ 415 TCA_FLOWER_KEY_ENC_IPV6_SRC_MASK,/* struct in6_addr */ 416 TCA_FLOWER_KEY_ENC_IPV6_DST, /* struct in6_addr */ 417 TCA_FLOWER_KEY_ENC_IPV6_DST_MASK,/* struct in6_addr */ntpd-opts.h git://pkgs.fedoraproject.org/ntp | C Header | 398 lines
52 INDEX_OPT_IPV4 = 0, 53 INDEX_OPT_IPV6 = 1, 54 INDEX_OPT_AUTHREQ = 2, 130# endif 131# ifdef IPV6 132# warning undefining IPV6 due to option name conflict 132# warning undefining IPV6 due to option name conflict 133# undef IPV6 134# endif 260# undef IPV4 261# undef IPV6 262# undef AUTHREQ 299#define VALUE_OPT_IPV4 '4' 300#define VALUE_OPT_IPV6 '6' 301#define VALUE_OPT_AUTHREQ 'a'PlatformCommon.c http://opensource.apple.com/release/ios-511/ | C | 179 lines
45Revision 1.10 2007/07/11 02:59:58 cheshire 46<rdar://problem/5303807> Register IPv6-only hostname and don't create port mappings for AutoTunnel services 47Add AutoTunnel parameter to mDNS_SetSecretForDomain107-libxt_ecn.patch http://wl500g.googlecode.com/svn/trunk/ | Patch | 433 lines
1extensions: add IPv6 capable ECN match extension 2 208+"[!] --ecn-tcp-ece Match ECE bit of TCP header\n" 209+"[!] --ecn-ip-ect [0..3] Match ECN codepoint in IPv4/IPv6 header\n"); 210+} 347@@ -0,0 +1,11 @@ 348+This allows you to match the ECN bits of the IPv4/IPv6 and TCP header. ECN is the Explicit Congestion Notification mechanism as specified in RFC3168 349+.TP 356+[\fB!\fP] \fB\-\-ecn\-ip\-ect\fP \fInum\fP 357+This matches a particular IPv4/IPv6 ECT (ECN-Capable Transport). You have to specify 358+a number between `0' and `3'.ipam.md https://github.com/dotcloud/docker.git | Markdown | 274 lines
47```go 48func NetworkOptionIpam(ipamDriver string, addrSpace string, ipV4 []*IpamConf, ipV6 []*IpamConf, opts map[string]string) NetworkOption 49``` 50 51The caller has to provide the IPAM driver name and may provide the address space and a list of `IpamConf` structures for IPv4 and a list for IPv6. The IPAM driver name is the only mandatory field. If not provided, network creation will fail. 52 79If the list of IPv4 configurations is empty, libnetwork will automatically add one empty `IpamConf` structure. This will cause libnetwork to request IPAM driver an IPv4 address pool of the driver's choice on the configured address space, if specified, or on the IPAM driver default address space otherwise. If the IPAM driver is not able to provide an address pool, network creation will fail. 80If the list of IPv6 configurations is empty, libnetwork will not take any action. 81The data retrieved from the IPAM driver during the execution of point 1) to 3) will be stored in the network structure as a list of `IpamInfo` structures for IPv4 and a list for IPv6. 851. Request an IPv4 address from the IPv4 pool and assign it to the endpoint interface IPv4 address. If successful, stop iterating. 862. Request an IPv6 address from the IPv6 pool (if exists) and assign it to the endpoint interface IPv6 address. If successful, stop iterating. 87 921. Release the endpoint interface IPv4 address 932. Release the endpoint interface IPv6 address if present 94mediaconstraintsinterface.cc https://bitbucket.org/vionika/spin.android.git | C++ | 275 lines
143const char MediaConstraintsInterface::kEnableDscp[] = "googDscp"; 144const char MediaConstraintsInterface::kEnableIPv6[] = "googIPv6"; 145const char MediaConstraintsInterface::kEnableVideoSuspendBelowMinBitrate[] = 190 191 bool enable_ipv6; 192 if (FindConstraint(constraints, MediaConstraintsInterface::kEnableIPv6, 193 &enable_ipv6, nullptr)) { 194 configuration->disable_ipv6 = !enable_ipv6; 195 }FFWDModelPopupBox.php https://bitbucket.org/lovetheidea/hop-website.git | PHP | 275 lines
104 if(curl_errno($ch) == 7) { 105 print '<p><strong>Your server cannot communicate with Facebook\'s servers. This means your server does not support IPv6 or is having issues resolving facebook.com. Please contact your hosting provider.'; 106 }Makefile.in http://peerblock.googlecode.com/svn/trunk/ | Autoconf | 432 lines
130INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 131IPV6_ENABLED = @IPV6_ENABLED@ 132KRB4_ENABLED = @KRB4_ENABLED@ip6t_LOG.c https://github.com/planetbeing/iphonelinux-kernel.git | C | 504 lines
21#include <net/tcp.h> 22#include <net/ipv6.h> 23#include <linux/netfilter.h> 24#include <linux/netfilter/x_tables.h> 25#include <linux/netfilter_ipv6/ip6_tables.h> 26#include <net/netfilter/nf_log.h> 28MODULE_AUTHOR("Jan Rekorajski <baggins@pld.org.pl>"); 29MODULE_DESCRIPTION("Xtables: IPv6 packet logging to syslog"); 30MODULE_LICENSE("GPL"); 33#include <net/route.h> 34#include <linux/netfilter_ipv6/ip6t_LOG.h> 35 45 int fragment; 46 struct ipv6hdr _ip6h; 47 const struct ipv6hdr *ih;mock_host_resolver.h https://bitbucket.org/lotiuss/qt-5.11.0.git | C Header | 332 lines
27// Fills |*addrlist| with a socket address for |host_list| which should be a 28// comma-separated list of IPv4 or IPv6 literal(s) without enclosing brackets. 29// If |canonical_name| is non-empty it is used as the DNS canonical name for 200 201 // Same as AddRule(), but the replacement is expected to be an IPv4 or IPv6 202 // literal. This can be used in place of AddRule() to bypass the system'sconn_object.c https://gitlab.com/sunny256/linux.git | C | 471 lines
90 91 /* We may have to handle mixing IPv4 and IPv6 */ 92 if (srx.transport.family != local->srx.transport.family) { 138 break; 139#ifdef CONFIG_AF_RXRPC_IPV6 140 case AF_INET6:nsHttpNTLMAuth.cpp https://github.com/aptana/Jaxer.git | C++ | 367 lines
81 82 // XXX this does not work for IPv6-literals 83 const char *hostEnd = strchr(hostStart, ':');udp.c https://github.com/Caustic/netfpga.git | C | 427 lines
199 pbuf_header(p, UDP_HLEN); 200#ifdef IPv6 201 if(iphdr->nexthdr == IP_PROTO_UDPLITE) {MIPv6CDSMobileNode.h https://github.com/revenant/ipv6suite.git | C Header | 360 lines
160 ///Return the homeagent with link local address in addr 161 boost::shared_ptr<MIPv6RouterEntry> findRouter(const ipv6_addr& ll_addr); 162 243 ///returns addresses of CNs where coa registered prefix matches addr 244 std::vector<ipv6_addr> findBUToCNCoaMatchPrefix(const ipv6_addr& addr); 245 ///returns address of HA from which coa was formed from 258 259 ipv6_addr formCareOfAddress(boost::weak_ptr<MIPv6RouterEntry> re, 260 InterfaceEntry *ie) const; 268 269 ipv6_prefix formHomeAddress(boost::weak_ptr<MIPv6RouterEntry> re, 270 InterfaceEntry *ie, bool primaryHoa); 290 291 typedef std::list<boost::shared_ptr<MIPv6RouterEntry> > MIPv6RouterList; 292 typedef MIPv6RouterList::iterator MRLI;wslua_field.c https://bitbucket.org/stevexiao/wireshark.git | C | 485 lines
117 } 118 case FT_IPv6: { 119 Address ipv6 = g_malloc(sizeof(address)); 119 Address ipv6 = g_malloc(sizeof(address)); 120 ipv6->type = AT_IPv6; 121 ipv6->len = fi->length; 121 ipv6->len = fi->length; 122 ipv6->data = tvb_memdup(fi->ds_tvb,fi->start,fi->length); 123 pushAddress(L,ipv6);BindingUpdateList.cc https://github.com/zarrar/xMIPv6.git | C++ | 454 lines
111 112void BindingUpdateList::addOrUpdateBUL(const IPv6Address& dest, const IPv6Address& hoa, const IPv6Address& coa, const uint lifetime, const uint seq, const simtime_t buSentTime)//,const simtime_t& nextBUSentTime) 113{ 178 179void BindingUpdateList::addOrUpdateBUL(const IPv6Address& dest, const IPv6Address& addr, const simtime_t sentTime, const int cookie, bool HoTI = false) 180{ 243 244int BindingUpdateList::generateBAuthData(const IPv6Address& dest, const IPv6Address& CoA) 245{ 334 335const IPv6Address& BindingUpdateList::getCoA(const IPv6Address& dest) 336{ 345 346bool BindingUpdateList::isInBindingUpdateList(const IPv6Address& dest, const IPv6Address& HoA) 347{net.c https://bitbucket.org/freebsd/freebsd-head/ | C | 525 lines
44 * portability variants: some use sysctl (but the sysctl names vary), some use 45 * system-specific interfaces, some have the same interface for IPv4 and IPv6, 46 * some separate them, etc... 87 IPCTL_IPPORT_HILASTAUTO } 88/* Same for IPv6 */ 89#define SYSCTL_V6PORTRANGE_LOW SYSCTL_V4PORTRANGE_LOW 94 95#if defined(ISC_PLATFORM_HAVEIPV6) 96# if defined(ISC_PLATFORM_NEEDIN6ADDRANY) 275 on = 1; 276 if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)) < 0) { 277 ipv6only_result = ISC_R_NOTFOUND; 298 on = 1; 299 if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)) < 0) { 300 ipv6only_result = ISC_R_NOTFOUND;TODO.md git://github.com/bbkr/mongo-perl6-driver.git | Markdown | 75 lines
69## [Issue #25 Connect failure on windows](https://github.com/MARTIMM/mongo-perl6-driver/issues/25) 70When there is a dual-stack (those machines that understand both IPv4 and IPv6) there is a chance that the DNS resolver returns an ipv6 address instead of ipv4 and vice verso. If that is the case one can explicitly use e.g. `127.0.0.1` for the hostname `localhost`. 71 71 72## [Issue #26, ipv6 in Uri and Server](https://github.com/MARTIMM/mongo-perl6-driver/issues/26) 73ipv4 is accepted as well as hostnames. The problem is also that the syntax cannot cope with the ip6 spec. According to Wikipedia and StackOverflow, the following must be written and accepted E.g. a localhost address ::1 must then be written as [::1]:27017. So a url can then be specified as mongodb://[::1]:27017. 74 75The Server class also needs a change here and there to cope with ipv6 but that will be small 76Lite.pm https://github.com/kazeburo/Plack-Middleware-ServerStatus-Lite.git | Perl | 436 lines
25 my @ipv4; 26 my @ipv6; 27 for (@ip) { 29 if (/:/) { 30 push @ipv6, $_; 31 } else { 39 } 40 if ( @ipv6 ) { 41 my $cidr6 = Net::CIDR::Lite->new(); 41 my $cidr6 = Net::CIDR::Lite->new(); 42 $cidr6->add_any($_) for @ipv6; 43 $self->{__cidr6} = $cidr6; 384 385host based access control of a page of server status. supports IPv6 address. 386handler.py https://bitbucket.org/m_eide/nav-3.9.x | Python | 377 lines
42from nav.report.matrixIPv4 import MatrixIPv4 43from nav.report.matrixIPv6 import MatrixIPv6 44from nav.report.metaIP import MetaIP 189 end_net = getMaxLeaf(tree) 190 matrix = MatrixIPv6(scope, end_net=end_net) 191RrdFileConstants.java https://gitlab.com/th/opennms.git | Java | 389 lines
46 static { 47 // IPv6: ':' and '%' 48 if (File.separatorChar == '\\') {network.py https://github.com/bfosberry/mopidy.git | Python | 396 lines
16 17def try_ipv6_socket(): 18 """Determine if system really supports IPv6""" 18 """Determine if system really supports IPv6""" 19 if not socket.has_ipv6: 20 return False 24 except IOError, e: 25 logger.debug(u'Platform supports IPv6, but socket ' 26 'creation failed, disabling: %s', e) 29#: Boolean value that indicates if creating an IPv6 socket will succeed. 30has_ipv6 = try_ipv6_socket() 31 36 # Explicitly configure socket to work for both IPv4 and IPv6 37 sock.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_V6ONLY, 0) 38 else:IPv6Send.cc https://github.com/revenant/ipv6suite.git | C++ | 415 lines
50#include "IPv6ControlInfo_m.h" 51#include "ipv6addrconv.h" //ipv6/ipv4 addr trans 52#include "HdrExtRteProc.h" 189 { 190 MobileIPv6::MIPv6MStateMobileNode* mstateMN = 191 boost::polymorphic_downcast<MobileIPv6::MIPv6MStateMobileNode*>(mob->role); 245 assert(ift->numInterfaceGates() > info->ifIndex()); 246 MobileIPv6::MIPv6CDSMobileNode* mipv6cdsMN = rt->mipv6cds->mipv6cdsMN; 247 if (mipv6cdsMN && mipv6cdsMN->currentRouter().get() != 0 && 282 { 283 ipv6_addr unready = ie->ipv6()->tentativeAddrs[ie->ipv6()->tentativeAddrs.size()-1]; 284 Dout(dc::send|dc::mipv6, rt->nodeName()<<" "<<simTime() 296 } 297 else if (mipv6cdsMN && mipv6cdsMN->currentRouter().get() == 0) 298 {timers.c https://bitbucket.org/frodo_man/vvn.io.git | C | 545 lines
223 224#if LWIP_IPV6 225/** 238 239#if LWIP_IPV6_REASS 240/** 252} 253#endif /* LWIP_IPV6_REASS */ 254 254 255#if LWIP_IPV6_MLD 256/** 268} 269#endif /* LWIP_IPV6_MLD */ 270#endif /* LWIP_IPV6 */pdb.h git://github.com/torvalds/linux.git | C Header | 599 lines
21 * if IPv4, decrement the inner IP header TTL field (byte 8); 22 * if IPv6 decrement the inner IP header Hop Limit field (byte 7). 23*/ 26/* 27 * Decap - DiffServ Copy - Copy the IPv4 TOS or IPv6 Traffic Class byte 28 * from the outer IP header to the inner IP header. 58#define PDBOPTS_ESP_INCIPHDR 0x04 /* Prepend IP header to output frame */ 59#define PDBOPTS_ESP_IPVSN 0x02 /* process IPv6 header */ 60#define PDBOPTS_ESP_AOFL 0x04 /* adjust out frame len (decap, SEC>=5.3)*/ 61#define PDBOPTS_ESP_TUNNEL 0x01 /* tunnel mode next-header byte */ 62#define PDBOPTS_ESP_IPV6 0x02 /* ip header version is V6 */ 63#define PDBOPTS_ESP_DIFFSERV 0x40 /* copy TOS/TC from inner iphdr */smtp-sink.1.html https://bitbucket.org/jlh/postfix-xtls_policy.git | HTML | 279 lines
28 29 Connections can be accepted on IPv4 or IPv6 endpoints, or 30 on UNIX-domain sockets. IPv4 and IPv6 are the default. 40 <b>-4</b> Support IPv4 only. This option has no effect when 41 Postfix is built without IPv6 support. 42 42 43 <b>-6</b> Support IPv6 only. This option is not available 44 when Postfix is built without IPv6 support. 218 <b>X-Client-Addr:</b> <i>text</i> 219 The client IP address without enclosing []. An IPv6 220 address is prefixed with "ipv6:". This record isserver.c git://github.com/welterde/lua-moo.git | C | 160 lines
119 memset(&hints, 0, sizeof hints); 120 hints.ai_family = AF_UNSPEC; // use IPv4 or IPv6, whichever 121 hints.ai_socktype = SOCK_STREAM;mod-udp.c git://pkgs.fedoraproject.org/traceroute | C | 235 lines
159 curr_port++; 160 dest_addr.sin.sin_port = htons (curr_port); /* both ipv4 and ipv6 */ 161 }build_android_x86.sh https://code.google.com/p/dolphin-player/ | Shell | 72 lines
44# --sysroot=$PLATFORM \ 45# --extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " \ 46# --disable-shared \interface_solaris2.c https://bitbucket.org/koitsu2018/freshtomato-arm.git | C | 364 lines
28#ifdef SOLARIS_HAVE_IPV6_MIB_SUPPORT 29static int _get_v6addr(mib2_ifEntry_t *ife, mib2_ipv6AddrEntry_t *ipv6e); 30static int _match_ifname_v6addr(void *ifname, void *ipaddr); 250#ifdef SOLARIS_HAVE_IPV6_MIB_SUPPORT 251 mib2_ipv6AddrEntry_t ipv6e; 252 323{ 324 DeviceName *devname = &((mib2_ipv6AddrEntry_t*)ipaddr)->ipv6AddrIfIndex; 325 342 343 if ((rc = getMibstat(MIB_IP6_ADDR, ipv6e, sizeof(*ipv6e), GET_EXACT, 344 &_match_ifname_v6addr, &ife->ifDescr.o_bytes)) == 0) { 346 } 347 memset(ipv6e, '\0', sizeof(*ipv6e)); 348 return (0);HostsFile.cpp git://pkgs.fedoraproject.org/libfwbuilder | C++ | 180 lines
103 { 104 // IPv6 addresses are not supported 105 // thus, we just skip it.UdpGravityChannel.as git://github.com/graniteds/graniteds.git | ActionScript | 127 lines
66 private var _defaultLocalPort:int = 0; 67 private var _defaultLocalAddress:String = "0.0.0.0"; // For IPv6, use "::" 68IpInfoDbTest.php git://github.com/willdurand/Geocoder.git | PHP | 181 lines
80 81 public function testGeocodeWithLocalhostIPv6() 82 { 83 $this->expectException(\Geocoder\Exception\UnsupportedOperation::class); 84 $this->expectExceptionMessage('The IpInfoDb provider does not support IPv6 addresses, only IPv4 addresses.'); 85 131 132 public function testGeocodeWithRealIPv6() 133 { 134 $this->expectException(\Geocoder\Exception\UnsupportedOperation::class); 135 $this->expectExceptionMessage('The IpInfoDb provider does not support IPv6 addresses, only IPv4 addresses.'); 136ipv4.js git://github.com/beaugunderson/javascript-ipv6.git | JavaScript | 320 lines
149/** 150 * Converts an IPv4 address object to an IPv6 address group 151 * @memberof Address4netdev_features.h https://bitbucket.org/sjohann81/linux-4.13.9.git | C Header | 215 lines
21 NETIF_F_HW_CSUM_BIT, /* Can checksum all the packets. */ 22 NETIF_F_IPV6_CSUM_BIT, /* Can checksum TCP/UDP over IPV6 */ 23 NETIF_F_HIGHDMA_BIT, /* Can DMA to high memory. */ 106#define NETIF_F_IP_CSUM __NETIF_F(IP_CSUM) 107#define NETIF_F_IPV6_CSUM __NETIF_F(IPV6_CSUM) 108#define NETIF_F_LLTX __NETIF_F(LLTX) 161/* List of IP checksum features. Note that NETIF_F_ HW_CSUM should not be 162 * set in features when NETIF_F_IP_CSUM or NETIF_F_IPV6_CSUM are set-- 163 * this would be contradictory 164 */ 165#define NETIF_F_CSUM_MASK (NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | \ 166 NETIF_F_HW_CSUM)Remctl.pm.in git://pkgs.fedoraproject.org/remctl | Autoconf | 377 lines
30=for stopwords 31remctl libremctl GSS-API HOSTNAME remctld IPv4 IPv6 NUL CNAME DNS Allbery 32MERCHANTABILITY sublicense NONINFRINGEMENT libdefaults CCACHE IP DNS-based 193Sets the source IP for outgoing connections to SOURCE, which can be either 194an IPv4 or an IPv6 address (if IPv6 is supported). It must be an IP 195address, not a host name. This method must be called prior to callingnamed.html git://pkgs.fedoraproject.org/bind | HTML | 310 lines
53<dd><p> 54 Use IPv4 only even if the host machine is capable of IPv6. 55 <code class="option">-4</code> and <code class="option">-6</code> are mutually 59<dd><p> 60 Use IPv6 only even if the host machine is capable of IPv4. 61 <code class="option">-4</code> and <code class="option">-6</code> are mutuallyQAbstractSocket.cs git://pkgs.fedoraproject.org/qyoto | C# | 256 lines
22 IPv4Protocol = 0, 23 IPv6Protocol = 1, 24 UnknownNetworkLayerProtocol = -1,DefaultExceptionHandlerTest.java https://github.com/apache/maven.git | Java | 105 lines
42 /** 43 * Running Maven under JDK7 may cause connection issues because IPv6 is used by default. 44 * <p> 52 @Test 53 public void testJdk7ipv6() 54 {inet_listen.c git://pkgs.fedoraproject.org/postfix | C | 176 lines
141 msg_fatal("socket: %m"); 142#ifdef HAS_IPV6 143# if defined(IPV6_V6ONLY) && !defined(BROKEN_AI_PASSIVE_NULL_HOST) 144 if (res->ai_family == AF_INET6 145 && setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, 146 (char *) &on, sizeof(on)) < 0) 146 (char *) &on, sizeof(on)) < 0) 147 msg_fatal("setsockopt(IPV6_V6ONLY): %m"); 148# endifip.go http://goesmtp.googlecode.com/svn/trunk/ | Go | 441 lines
6// 7// IPv4 addresses are 4 bytes; IPv6 addresses are 16 bytes. 8// An IPv4 address can be converted to an IPv6 address by 17 IPv4len = 4 18 IPv6len = 16 19) 28// Note that in this documentation, referring to an 29// IP address as an IPv4 address or an IPv6 address 30// is a semantic property of the address, not just the 40func IPv4(a, b, c, d byte) IP { 41 p := make(IP, IPv6len) 42 for i := 0; i < 10; i++ { 56func IPv4Mask(a, b, c, d byte) IPMask { 57 p := make(IPMask, IPv6len) 58 for i := 0; i < 12; i++ {GHStreamSocketSSL.jvm.cs git://github.com/mono/mono.git | C# | 621 lines
317 { 318 case SocketOptionLevel.IPv6: 319 error = 10042; //WSAENOPROTOOPT (Bad protocol option) 460 { 461 case SocketOptionLevel.IPv6: 462 error = 10042; //WSAENOPROTOOPT (Bad protocol option)xfrm6_state.c git://github.com/CyanogenMod/cm-kernel.git | C | 188 lines
29 ipv6_addr_copy((struct in6_addr *)&x->sel.daddr, &fl->fl6_dst); 30 ipv6_addr_copy((struct in6_addr *)&x->sel.saddr, &fl->fl6_src); 31 x->sel.dport = xfrm_flowi_dport(fl); 43 memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); 44 if (ipv6_addr_any((struct in6_addr*)&x->props.saddr)) 45 memcpy(&x->props.saddr, saddr, sizeof(x->props.saddr)); 96 return 3; 97#if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) 98 case XFRM_MODE_ROUTEOPTIMIZATION: 129 return 1; 130#if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) 131 case XFRM_MODE_ROUTEOPTIMIZATION: 150{ 151 struct ipv6hdr *iph = ipv6_hdr(skb); 152secure_messages.h git://github.com/zioproto/olsrd-gsoc2012.git | C Header | 201 lines
161/* 162 *IPv6 163 */ZDeviceLite.java http://xerela.googlecode.com/svn/trunk/ | Java | 417 lines
292 /** 293 * Get the IPv4 or IPv6 IP address of the device. 294 *CreateFirewallRuleWithAccountParameters.java git://github.com/WindowsAzure/azure-sdk-for-java.git | Java | 128 lines
26 * The start IP address for the firewall rule. This can be either ipv4 or 27 * ipv6. Start and End should be in the same protocol. 28 */ 33 * The end IP address for the firewall rule. This can be either ipv4 or 34 * ipv6. Start and End should be in the same protocol. 35 */ 59 /** 60 * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6. 61 * Start and End should be in the same protocol. 69 /** 70 * Set the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6. 71 * Start and End should be in the same protocol. 81 /** 82 * Get the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start 83 * and End should be in the same protocol.Network.h git://pkgs.fedoraproject.org/tog-pegasus | C Header | 273 lines
71# include <wincrypt.h> 72# ifdef PEGASUS_ENABLE_IPV6 73# include <ws2tcpip.h> 76 77#ifdef PEGASUS_ENABLE_IPV6 78# ifdef PEGASUS_HAS_GETIFADDRSipv6-interface.cc https://bitbucket.org/DiiManut/ns19-vanet-routing.git | C++ | 500 lines
95 { 96 Ipv6InterfaceAddress ifaddr = Ipv6InterfaceAddress (Ipv6Address::MakeAutoconfiguredLinkLocalAddress (Mac64Address::ConvertFrom (addr)), Ipv6Prefix (64)); 97 AddAddress (ifaddr); 100 { 101 Ipv6InterfaceAddress ifaddr = Ipv6InterfaceAddress (Ipv6Address::MakeAutoconfiguredLinkLocalAddress (Mac48Address::ConvertFrom (addr)), Ipv6Prefix (64)); 102 AddAddress (ifaddr); 105 { 106 Ipv6InterfaceAddress ifaddr = Ipv6InterfaceAddress (Ipv6Address::MakeAutoconfiguredLinkLocalAddress (Mac16Address::ConvertFrom (addr)), Ipv6Prefix (64)); 107 AddAddress (ifaddr); 330 331Ipv6InterfaceAddress Ipv6Interface::GetAddressMatchingDestination (Ipv6Address dst) 332{ 352 NS_LOG_FUNCTION (this << p << dest); 353 Ptr<Ipv6L3Protocol> ipv6 = m_node->GetObject<Ipv6L3Protocol> (); 354tcp_test.go git://github.com/axw/llgo.git | Go | 587 lines
32func BenchmarkTCP6OneShot(b *testing.B) { 33 if !supportsIPv6 { 34 b.Skip("ipv6 is not supported") 39func BenchmarkTCP6OneShotTimeout(b *testing.B) { 40 if !supportsIPv6 { 41 b.Skip("ipv6 is not supported") 46func BenchmarkTCP6Persistent(b *testing.B) { 47 if !supportsIPv6 { 48 b.Skip("ipv6 is not supported") 53func BenchmarkTCP6PersistentTimeout(b *testing.B) { 54 if !supportsIPv6 { 55 b.Skip("ipv6 is not supported") 163func BenchmarkTCP6ConcurrentReadWrite(b *testing.B) { 164 if !supportsIPv6 { 165 b.Skip("ipv6 is not supported")ntpdc-opts.def http://opensource.apple.com/release/ios-511/ | Module-Definition | 152 lines
39 value = 4; 40 flags-cant = ipv6; 41 descrip = "Force IPv4 DNS name resolution"; 48flag = { 49 name = ipv6; 50 value = 6; 51 flags-cant = ipv4; 52 descrip = "Force IPv6 DNS name resolution"; 53 doc = <<- _EndOfDoc_ 54 Force DNS resolution of following host names on the command line 55 to the IPv6 namespace. 56 _EndOfDoc_;extconf.rb http://rubyworks.googlecode.com/svn/trunk/ | Ruby | 283 lines
38default_ipv6 = /cygwin/ !~ RUBY_PLATFORM 39if enable_config("ipv6", default_ipv6) 40 if checking_for("ipv6") {try_link(<<EOF)} 70 have_library(ipv6lib = "inet6") and "zeta" 71 elsif ipv6lib = with_config("ipv6-lib") 72 warn <<EOS 72 warn <<EOS 73--with-ipv6-lib and --with-ipv6-libdir option will be obsolete, use 74--with-inet6lib and --with-inet6-{include,lib} options instead. 75EOS 76 find_library(ipv6lib, nil, with_config("ipv6-libdir", ldirs)) and 77 ipv6lib 221 222Fatal: --enable-ipv6 is specified, and your OS seems to support IPv6 feature. 223But your getaddrinfo() and getnameinfo() are appeared to be broken. Sorry,INET_Addr.inl git://github.com/insider42/mangos.git | C++ Header | 255 lines
22 } 23#if defined (ACE_HAS_IPV6) 24 else if (this->get_type() == AF_INET6) 30 } 31#endif /* ACE_HAS_IPV6 */ 32} 36{ 37#if defined (ACE_HAS_IPV6) 38# if defined (ACE_USES_IPV4_IPV6_MIGRATION) 38# if defined (ACE_USES_IPV4_IPV6_MIGRATION) 39 return ACE::ipv6_enabled () ? AF_INET6 : AF_INET; 40# else 41 return AF_INET6; 42# endif /* ACE_USES_IPV4_IPV6_MIGRATION */ 43#elseaddress_v6.hpp git://github.com/mongodb/mongo.git | C++ Header | 249 lines
83 /** 84 * Returns the scope ID associated with the IPv6 address. 85 */ 92 /** 93 * Modifies the scope ID associated with the IPv6 address. 94 */ 202 203 /// Create an IPv4-mapped IPv6 address. 204 BOOST_ASIO_DECL static address_v6 v4_mapped(const address_v4& addr); 205 206 /// Create an IPv4-compatible IPv6 address. 207 BOOST_ASIO_DECL static address_v6 v4_compatible(const address_v4& addr); 209private: 210 // The underlying IPv6 address. 211 boost::asio::detail::in6_addr_type addr_;logentry.cpp git://github.com/acaudwell/Logstalgia.git | C++ | 286 lines
42 43Regex logentry_ipv6("(?i)^[a-f0-9:]+$"); 44 50 51 // could be an ipv6 address 52 if(logentry_ipv6.match(hostname) && hostname.find(":") != std::string::npos) {ip__basic_resolver_query.html git://github.com/barrbrain/asio.git | HTML | 317 lines
192 Only return IPv4 addresses if a non-loopback IPv4 address is configured 193 for the system. Only return IPv6 addresses if a non-loopback IPv6 194 address is configured for the system. 205 <p> 206 If used with v4_mapped, return all matching IPv6 and IPv4 addresses. 207 </p> 230 Host name should be treated as a numeric string defining an IPv4 231 or IPv6 address and no name resolution should be attempted. 232 </p> 269 If the query protocol family is specified as IPv6, return IPv4-mapped 270 IPv6 addresses on finding no IPv6 addresses. 271 </p>Core.h git://github.com/gunnarbeutner/shroudbnc.git | C Header | 281 lines
87 CSocketEvents *Listener; /**< IPv4 listener object */ 88 CSocketEvents *ListenerV6; /**< IPv6 listener object */ 89} additionallistener_t;network_interfaces_linux.cc git://github.com/chromium/chromium.git | C++ | 236 lines
39 40// When returning true, the platform native IPv6 address attributes were 41// successfully converted to net IP address attributes. Otherwise, returningUri.js https://openerp.svn.codeplex.com/svn | JavaScript | 114 lines
38 39 // TODO: support for IPv6, see RFC 2732 40dns.h https://bitbucket.org/benchmark-electronics/nuttx.git | C Header | 222 lines
66#define DNS_RECTYPE_A 1 /* RFC 1035 IPv4 address record */ 67#define DNS_RECTYPE_AAAA 28 /* RFC 3596 IPv6 address record */ 68#define DNS_RECTYPE_AFSDB 18 /* RFC 1183 AFS database record */ 160#endif 161#ifdef CONFIG_NET_IPv6 162 struct in6_addr ipv6;checksum.h git://github.com/torvalds/linux.git | C++ Header | 245 lines
179 180#define _HAVE_ARCH_IPV6_CSUM 181static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, 186 __asm__ __volatile__( 187 ".set\tvolatile\t\t\t# csum_ipv6_magic\n\t" 188 "add\t%0, %0, %5\t\t\t# proto (long in network byte order)\n\t"esp6_offload.c https://bitbucket.org/sjohann81/linux-4.13.9.git | C | 334 lines
1/* 2 * IPV6 GSO/GRO offload support 3 * Linux INET implementation 32 33static __u16 esp6_nexthdr_esp_offset(struct ipv6hdr *ipv6_hdr, int nhlen) 34{ 35 int off = sizeof(struct ipv6hdr); 36 struct ipv6_opt_hdr *exthdr; 37 77 x = xfrm_state_lookup(dev_net(skb->dev), skb->mark, 78 (xfrm_address_t *)&ipv6_hdr(skb)->daddr, 79 spi, IPPROTO_ESP, AF_INET6); 120 struct ip_esp_hdr *esph; 121 struct ipv6hdr *iph = ipv6_hdr(skb); 122 struct xfrm_offload *xo = xfrm_offload(skb);setup.py git://github.com/aol/trigger.git | Python | 182 lines
121 'IPv4', 122 'IPv6', 123 'Firewall',Ipv6Address.cpp git://github.com/skyne/NeoCore.git | C++ | 271 lines
37 38Ipv6Address::Ipv6Address(port_t port) : m_valid(true) 39{ 45 46Ipv6Address::Ipv6Address(struct in6_addr& a,port_t port) : m_valid(true) 47{ 54 55Ipv6Address::Ipv6Address(const std::string& host,port_t port) : m_valid(false) 56{ 70 71Ipv6Address::Ipv6Address(struct sockaddr_in6& sa) 72{ 77 78Ipv6Address::~Ipv6Address() 79{config.mk git://github.com/zpao/spidernode.git | Makefile | 201 lines
158 159ifeq ($(USE_IPV6),1) 160DEFINES += -D_PR_INET6m9s12_emac.h https://bitbucket.org/hg42/nuttx.git | C Header | 248 lines
142#define EMAC_ETCTL_FARP (1 << 2) /* Bit 2: Address Resolution Protocol (ARP) Ethertype */ 143#define EMAC_ETCTL_FIPV6 (1 << 3) /* Bit 3: Internet Protocol Version 6 (IPv6) Ethertype */ 144#define EMAC_ETCTL_FEMW (1 << 4) /* Bit 4: Emware Ethertype */getnameinfo.c git://pkgs.fedoraproject.org/remctl | C | 184 lines
7 * 8 * - IPv4 support only. IPv6 is not supported. 9 * - NI_NOFQDN is ignored. 12 * The last two issues could probably be easily remedied, but haven't been 13 * needed so far. Adding IPv6 support isn't worth it; systems with IPv6 14 * support should already support getnameinfo natively.content_settings_pattern.h git://github.com/chromium/chromium.git | C Header | 265 lines
97 // Normalized string that is either of the following: 98 // - IPv4 or IPv6 99 // - hostname 173 // - a.b.c.d (matches an exact IPv4 ip) 174 // - [a:b:c:d:e:f:g:h] (matches an exact IPv6 ip) 175 static ContentSettingsPattern FromString(base::StringPiece pattern_spec);index.php git://github.com/shupp/VegaDNS.git | PHP | 263 lines
43 44// Get IPv6 Functions 45require_once 'src/Net/IPv6.php';ip6_fib.h https://github.com/mdombroski/linux-2.6.git | C Header | 321 lines
15 16#include <linux/ipv6_route.h> 17#include <linux/rtnetlink.h> 23 24#ifdef CONFIG_IPV6_MULTIPLE_TABLES 25#define FIB6_TABLE_HASHSZ 256 56 struct fib6_node *right; 57#ifdef CONFIG_IPV6_SUBTREES 58 struct fib6_node *subtree; 67 68#ifndef CONFIG_IPV6_SUBTREES 69#define FIB6_SUBTREE(fn) NULL 250 251#ifdef CONFIG_IPV6_MULTIPLE_TABLES 252#define FIB6_TABLE_MIN 1NetworkTranslate.cs https://ClusterAware.svn.codeplex.com/svn | C# | 74 lines
29 clsnet.Ipv4PrefixLengths = queryObj.PropertyValue<string[]>("Ipv4PrefixLengths"); 30 clsnet.Ipv6Addresses = queryObj.PropertyValue<string[]>("Ipv6Addresses"); 31 clsnet.Ipv6PrefixLengths = queryObj.PropertyValue<string[]>("Ipv6PrefixLengths");CustomServiceDialogTest.cpp git://pkgs.fedoraproject.org/fwbuilder | C++ | 204 lines
54#include "fwbuilder/IPv4.h" 55#include "fwbuilder/IPv6.h" 56#include "FWBTree.h" 117 QRadioButton *ipv4 = dialog->findChild<QRadioButton*>("ipv4"); 118 QRadioButton *ipv6 = dialog->findChild<QRadioButton*>("ipv6"); 119 TextEditWidget *comment = dialog->findChild<TextEditWidget*>("comment"); 181 dialog->platformChanged(); 182 QTest::mouseClick(ipv6, Qt::LeftButton, Qt::NoModifier, QPoint(10,10)); 183 QVERIFY(service->getAddressFamily() == 10); 196 QVERIFY(oldprotocol == service->getProtocol()); 197 QTest::mouseClick(ipv6, Qt::LeftButton, Qt::NoModifier, QPoint(10,10)); 198 QVERIFY(service->getAddressFamily() == 10);100-generic.patch http://wl500g.googlecode.com/svn/trunk/ | Patch | 208 lines
119 #ifdef INET6 120-#define _PATH_IPV6UP _ROOT_PATH "/etc/ppp/ipv6-up" 121-#define _PATH_IPV6DOWN _ROOT_PATH "/etc/ppp/ipv6-down" 121-#define _PATH_IPV6DOWN _ROOT_PATH "/etc/ppp/ipv6-down" 122+#define _PATH_IPV6UP _ROOT_PATH "/ppp/ipv6-up" 123+#define _PATH_IPV6DOWN _ROOT_PATH "/ppp/ipv6-down"ListenSocket.h git://github.com/skyne/NeoCore.git | C Header | 421 lines
104 { 105 Ipv6Address ad(port); 106 return Bind(ad, depth); 131 int Bind(port_t port,const std::string& protocol,int depth = 20) { 132#ifdef ENABLE_IPV6 133#ifdef IPPROTO_IPV6 185#ifdef ENABLE_IPV6 186#ifdef IPPROTO_IPV6 187 if (IsIpv6()) 188 { 189 Ipv6Address ad(intf, port); 190 if (ad.IsValid()) 333#ifdef ENABLE_IPV6 334 tmp -> SetIpv6( IsIpv6() ); 335#endifSMTP.pm git://pkgs.fedoraproject.org/perl-Net-SSLGlue | Perl | 204 lines
16 my $host = $self->host; 17 # for name verification strip port from domain:port, ipv4:port, [ipv6]:port 18 $host =~s{(?<!:):\d+$}{};realhostname.c https://gitlab.com/kidaa/crossbridge.git | C | 200 lines
109#ifdef INET6 110 /* IPv4 mapped IPv6 addr consideraton, specified in rfc2373. */ 111 if (addr->sa_family == AF_INET6 &&neighbor_add.c https://bitbucket.org/hg42/nuttx.git | C | 134 lines
71 * dev - Driver instance associated with the MAC 72 * ipaddr - The IPv6 address of the mapping. 73 * addr - The link layer address of the mapping 79 80void neighbor_add(FAR struct net_driver_s *dev, FAR net_ipv6addr_t ipaddr, 81 FAR uint8_t *addr) 95 96 for (i = 0; i < CONFIG_NET_IPv6_NCONF_ENTRIES; ++i) 97 { 104 if (g_neighbors[i].ne_addr.na_lltype == lltype && 105 net_ipv6addr_cmp(g_neighbors[i].ne_ipaddr, ipaddr)) 106 { 122 g_neighbors[oldest_ndx].ne_time = 0; 123 net_ipv6addr_copy(g_neighbors[oldest_ndx].ne_ipaddr, ipaddr); 124tcp.hpp https://code.google.com/p/dreamofgame/ | C++ Header | 163 lines
62 63 /// Construct to represent the IPv6 TCP protocol. 64 static tcp v6()PDNType.java http://mobicents.googlecode.com/svn/trunk/ | Java | 113 lines
39 * IPv6 (1) 40 * This value shall be used to indicate that the PDN can be accessed only in IPv6 mode. 41 * 47 * This value shall be used to indicate that the PDN can be accessed either in IPv4 mode, or in 48 * IPv6 mode, but not from UEs supporting dualstack IPv4v6. It should be noted that this value 49 * will never be used as a requested PDN Type from the UE, since UEs will only use one of their 49 * will never be used as a requested PDN Type from the UE, since UEs will only use one of their 50 * supported PDN Types, i.e., IPv4 only, IPv6 only or IPv4v6 (dualstack). This value is only used 51 * as part of the APN subscription context, as an authorization mechanism between HSS and MME. 68 public static final PDNType IPv4 = new PDNType(_IPv4); 69 public static final PDNType IPv6 = new PDNType(_IPv6); 70 public static final PDNType IPv4v6 = new PDNType(_IPv4v6); 70 public static final PDNType IPv4v6 = new PDNType(_IPv4v6); 71 public static final PDNType IPv4_OR_IPv6 = new PDNType(_IPv4_OR_IPv6); 72913-dead-code.patch http://wl500g.googlecode.com/svn/trunk/ | Patch | 113 lines
50 t = ip6t_get_target((struct ip6t_entry *)fw); 51- flags = fw->ipv6.flags; 52ipcalc_test.py http://simian.googlecode.com/svn/trunk/ | Python | 132 lines
56 57 def testIpToIntWhenIpv6(self): 58 """Test IpToInt() when passed ipv6.""" 81 82 def testIpMaskToIntsWhenIpv6(self): 83 """Test IpMaskToInts() when ipv6."""GeoIP_impl.h http://urtconnector.googlecode.com/svn/trunk/ | C Header | 253 lines
54/* 128 bit address in network order */ 55typedef struct in6_addr geoipv6_t; 56 160/* */ 161GEOIP_API const char *GeoIP_country_name_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum); 162GEOIP_API const char *GeoIP_country_code_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum); 162GEOIP_API const char *GeoIP_country_code_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum); 163GEOIP_API const char *GeoIP_country_code3_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum); 164 171 172GEOIP_API char *GeoIP_org_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum); 173GEOIP_API char *GeoIP_org_by_addr_v6 (GeoIP* gi, const char *addr); 183GEOIP_API int GeoIP_id_by_name_v6 (GeoIP* gi, const char *host); 184GEOIP_API int GeoIP_id_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum); 185gen_udp.erl git://github.com/erlang/otp.git | Erlang | 286 lines
58 {recvttl, boolean()} | 59 {ipv6_v6only, boolean()}. 60-type option_name() :: 89 pktoptions | 90 ipv6_v6only. 91-type socket() :: port().__init__.py https://bitbucket.org/mtajiki/pyroute2.git | Python | 245 lines
46ETH_P_IPX = 0x8137 # IPX over DIX 47ETH_P_IPV6 = 0x86DD # IPv6 over bluebook 48ETH_P_PAUSE = 0x8808 # IEEE Pause frames. See = 802.3 = 31Bnetbase_tests.cpp https://bitbucket.org/gincoin-dev/gincoin-core.git | C++ | 291 lines
37 BOOST_CHECK(ResolveIP("8.8.8.8").GetNetwork() == NET_IPV4); 38 BOOST_CHECK(ResolveIP("2001::8888").GetNetwork() == NET_IPV6); 39 BOOST_CHECK(ResolveIP("FD87:D87E:EB43:edb1:8e4:3588:e546:35ca").GetNetwork() == NET_TOR); 47 BOOST_CHECK(ResolveIP("::FFFF:192.168.1.1").IsIPv4()); 48 BOOST_CHECK(ResolveIP("::1").IsIPv6()); 49 BOOST_CHECK(ResolveIP("10.0.0.1").IsRFC1918()); 145 BOOST_CHECK(ResolveSubNet("1.2.2.20/26").Match(ResolveIP("1.2.2.63"))); 146 // All-Matching IPv6 Matches arbitrary IPv4 and IPv6 147 BOOST_CHECK(ResolveSubNet("::/0").Match(ResolveIP("1:2:3:4:5:6:7:1234"))); 148 BOOST_CHECK(ResolveSubNet("::/0").Match(ResolveIP("1.2.3.4"))); 149 // All-Matching IPv4 does not Match IPv6 150 BOOST_CHECK(!ResolveSubNet("0.0.0.0/0").Match(ResolveIP("1:2:3:4:5:6:7:1234"))); 286 BOOST_CHECK(ResolveIP("2001:470:abcd:9999:9999:9999:9999:9999").GetGroup() == boost::assign::list_of((unsigned char)NET_IPV6)(32)(1)(4)(112)(175)); //he.net 287 BOOST_CHECK(ResolveIP("2001:2001:9999:9999:9999:9999:9999:9999").GetGroup() == boost::assign::list_of((unsigned char)NET_IPV6)(32)(1)(32)(1)); //IPv6 288ip_set.h git://github.com/torvalds/linux.git | C Header | 312 lines
133 IPSET_ATTR_IPADDR_IPV4 = IPSET_ATTR_UNSPEC + 1, 134 IPSET_ATTR_IPADDR_IPV6, 135 __IPSET_ATTR_IPADDR_MAX, 154 IPSET_ERR_IPADDR_IPV4, 155 IPSET_ERR_IPADDR_IPV6, 156 IPSET_ERR_COUNTER,test_asyncio.py git://github.com/chromium/chromium.git | Python | 374 lines
123 124 @skipIf("ipv6" in SKIP_TESTS, "Skipping IPv6 tests") 125 def test_connect_and_serve_ipv6(self):php-ssl.c git://github.com/mongodb/mongo-php-driver.git | C | 238 lines
109 } 110 /* No, we aren't bothering to check IPv6 addresses. Why? 111 * Because IP SAN names are officially deprecated and areipsec.secrets.5.in git://pkgs.fedoraproject.org/strongswan | Autoconf | 182 lines
51address, a selector of \fB%any\fP will match the peer's IP address if IPV4 52and \fB%any6\fP will match a the peer's IP address if IPV6. 53Currently, the obsolete notation \fB0.0.0.0\fP may be used in place ofudpsock_plan9.go git://github.com/axw/llgo.git | Go | 215 lines
81 h.laddr = c.fd.laddr.(*UDPAddr).IP.To16() 82 h.ifcaddr = IPv6zero // ignored (receive only) 83 h.rport = uint16(addr.Port) 211// applications. There are golang.org/x/net/ipv4 and 212// golang.org/x/net/ipv6 packages for general purpose uses. 213func ListenMulticastUDP(network string, ifi *Interface, gaddr *UDPAddr) (*UDPConn, error) {inetpeer.h https://bitbucket.org/pradeep_7/android_kernel_gucci.git | C Header | 186 lines
14#include <linux/rtnetlink.h> 15#include <net/ipv6.h> 16#include <linux/atomic.h>SOCK_Acceptor.cpp git://github.com/TrinityCore/TrinityCore.git | C++ | 407 lines
141 142 // Reset the size of the addr, so the proper UNIX/IPv4/IPv6 family 143 // is known. 227 228#if defined (ACE_HAS_IPV6) 229 if (protocol_family == PF_INET6) 362 { 363#if defined (ACE_HAS_IPV6) 364 protocol_family = ACE::ipv6_enabled () ? PF_INET6 : PF_INET; 366 protocol_family = PF_INET; 367#endif /* ACE_HAS_IPV6 */ 368 }ib.h https://github.com/tytso/ext4.git | C Header | 471 lines
59/* This is the common structure for the IB private data exchange in setting up 60 * an RDS connection. The exchange is different for IPv4 and IPv6 connections. 61 * The reason is that the address size is different and the addressesipv6ScopeZoneIndexTable_interface.h git://pkgs.fedoraproject.org/net-snmp | C Header | 99 lines
43 44#include "ipv6ScopeZoneIndexTable.h" 45 55 void 56 _ipv6ScopeZoneIndexTable_initialize_interface 57 (ipv6ScopeZoneIndexTable_registration * user_ctx, u_long flags); 66 *ipv6ScopeZoneIndexTable_registration_set 67 (ipv6ScopeZoneIndexTable_registration * newreg); 68 72 ipv6ScopeZoneIndexTable_rowreq_ctx 73 *ipv6ScopeZoneIndexTable_allocate_rowreq_ctx(ipv6ScopeZoneIndexTable_data *, void *); 74 void 83 oid_idx, 84 ipv6ScopeZoneIndexTable_mib_index 85 * mib_idx);serverhelp.pm git://github.com/mono/moon.git | Perl | 238 lines
74 75 if($server =~ /^((ftp|http|imap|pop3|smtp)s?)(\d*)(-ipv6|)$/) { 76 $proto = $1; 79 } 80 elsif($server =~ /^(tftp|sftp|socks|ssh|rtsp)(\d*)(-ipv6|)$/) { 81 $proto = $1; 103 die "unsupported IP version: $ipver" unless($ipver && 104 ($ipver =~ /^(4|6|ipv4|ipv6|-ipv4|-ipv6)$/)); 105 $ipver = ($ipver =~ /6$/) ? '-IPv6' : '';dns.h https://bitbucket.org/hg42/nuttx.git | C Header | 222 lines
66#define DNS_RECTYPE_A 1 /* RFC 1035 IPv4 ddress record */ 67#define DNS_RECTYPE_AAAA 28 /* RFC 3596 IPv6 address record */ 68#define DNS_RECTYPE_AFSDB 18 /* RFC 1183 AFS database record */ 160#endif 161#ifdef CONFIG_NET_IPv6 162 struct in6_addr ipv6;access.c git://pkgs.fedoraproject.org/kdebase3 | C | 469 lines
50#include <netdb.h> 51#if defined(IPv6) && defined(AF_INET6) 52# include <arpa/inet.h> 106 if (!haveLocalAddress) { 107#if defined(IPv6) && defined(AF_INET6) 108 struct addrinfo *ai; 196#endif 197#if defined(IPv6) && defined(AF_INET6) 198 case AF_INET6:flow_offload.h https://bitbucket.org/mirror/linux.git | C Header | 545 lines
39 40struct flow_match_ipv6_addrs { 41 struct flow_dissector_key_ipv6_addrs *key, *mask; 91 struct flow_match_ipv4_addrs *out); 92void flow_rule_match_ipv6_addrs(const struct flow_rule *rule, 93 struct flow_match_ipv6_addrs *out); 107 struct flow_match_ipv4_addrs *out); 108void flow_rule_match_enc_ipv6_addrs(const struct flow_rule *rule, 109 struct flow_match_ipv6_addrs *out);genSocketOptionRegistry.c git://pkgs.fedoraproject.org/java-1.7.0-openjdk | C | 131 lines
112#ifdef AF_INET6 113 emit_inet6("StandardSocketOptions.IP_MULTICAST_IF", IPPROTO_IPV6, IPV6_MULTICAST_IF); 114 emit_inet6("StandardSocketOptions.IP_MULTICAST_TTL", IPPROTO_IPV6, IPV6_MULTICAST_HOPS); 114 emit_inet6("StandardSocketOptions.IP_MULTICAST_TTL", IPPROTO_IPV6, IPV6_MULTICAST_HOPS); 115 emit_inet6("StandardSocketOptions.IP_MULTICAST_LOOP", IPPROTO_IPV6, IPV6_MULTICAST_LOOP); 116#endifnet.c git://pkgs.fedoraproject.org/bind | C | 335 lines
35 * portability variants: some use sysctl (but the sysctl names vary), some use 36 * system-specific interfaces, some have the same interface for IPv4 and IPv6, 37 * some separate them, etc... 49 50#if defined(ISC_PLATFORM_HAVEIPV6) && defined(ISC_PLATFORM_NEEDIN6ADDRANY) 51const struct in6_addr isc_net_in6addrany = IN6ADDR_ANY_INIT; 54static isc_once_t once = ISC_ONCE_INIT; 55static isc_once_t once_ipv6only = ISC_ONCE_INIT; 56static isc_once_t once_ipv6pktinfo = ISC_ONCE_INIT; 168 on = 1; 169 if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, (const char *)&on, 170 sizeof(on)) < 0) { 192 on = 1; 193 if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, (const char *)&on, 194 sizeof(on)) < 0) {prefix.h git://git.savannah.nongnu.org/quagga.git | C Header | 238 lines
148#define IPV6_MAX_PREFIXLEN 128 149#define IPV6_ADDR_CMP(D,S) memcmp ((D), (S), IPV6_MAX_BYTELEN) 150#define IPV6_ADDR_SAME(D,S) (memcmp ((D), (S), IPV6_MAX_BYTELEN) == 0) 150#define IPV6_ADDR_SAME(D,S) (memcmp ((D), (S), IPV6_MAX_BYTELEN) == 0) 151#define IPV6_ADDR_COPY(D,S) memcpy ((D), (S), IPV6_MAX_BYTELEN) 152 209extern struct prefix_ipv6 *prefix_ipv6_new (void); 210extern void prefix_ipv6_free (struct prefix_ipv6 *); 211extern int str2prefix_ipv6 (const char *, struct prefix_ipv6 *); 211extern int str2prefix_ipv6 (const char *, struct prefix_ipv6 *); 212extern void apply_mask_ipv6 (struct prefix_ipv6 *); 213 214#define PREFIX_COPY_IPV6(DST, SRC) \ 215 *((struct prefix_ipv6 *)(DST)) = *((const struct prefix_ipv6 *)(SRC)); 216synaip.pas git://github.com/tristan2468/hgdc-x.git | Pascal | 422 lines
67type 68{:binary form of IPv6 adress (for string conversion routines)} 69 TIp6Bytes = array [0..15] of Byte; 69 TIp6Bytes = array [0..15] of Byte; 70{:binary form of IPv6 adress (for string conversion routines)} 71 TIp6Words = array [0..7] of Word; 75 76{:Returns @TRUE, if "Value" is a valid IPv6 address. Cannot be a symbolic Name!} 77function IsIP6(const Value: string): Boolean; 81 82{:Convert IPv6 address from their string form to binary byte array.} 83function StrToIp6(value: string): TIp6Bytes; 84 85{:Convert IPv6 address from binary byte array to string form.} 86function Ip6ToStr(value: TIp6Bytes): string;version.h git://pkgs.fedoraproject.org/openser | C Header | 200 lines
37#ifdef USE_IPV6 38#define USE_IPV6_STR ", USE_IPV6" 39#else 39#else 40#define USE_IPV6_STR "" 41#endif 190#define OPENSER_COMPILE_FLAGS \ 191 STATS_STR EXTRA_DEBUG_STR USE_IPV6_STR USE_TCP_STR USE_TLS_STR \ 192 USE_SCTP_STR DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR \