PageRenderTime 243ms queryTime 22ms sortTime 55ms getByIdsTime 66ms findMatchingLines 10ms

100+ results results for 'ipv6 repo:david-caro/puppet' (243 ms)

Not the results you expected?
ScriptMethods.java http://proxy-vole.googlecode.com/svn/trunk/ | Java | 257 lines
                    
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 */
                    
                
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
                    
94
                    
                
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_SetSecretForDomain
                    
                
107-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'.
                    
                
vector_transports.c https://github.com/torvalds/linux.git | C | 495 lines
                    
33
                    
34	bool ipv6;
                    
35	bool has_sequence;
                    
54	bool udp;
                    
55	bool ipv6;
                    
56	bool has_counter;
                    
136
                    
137	if ((!td->udp) && (!td->ipv6))
                    
138		header += sizeof(struct iphdr) /* fix for ipv4 raw */;
                    
171
                    
172	if (!td->ipv6)
                    
173		header += sizeof(struct iphdr) /* fix for ipv4 raw */;
                    
263
                    
264	td->ipv6 = false;
                    
265	if (get_uint_param(vp->parsed, "v6", &temp_int)) {
                    
                
tcp.h https://github.com/torvalds/linux.git | C Header | 362 lines
                    
88#define TCP_MSS_DEFAULT		 536U	/* IPv4 (RFC1122, RFC2581) */
                    
89#define TCP_MSS_DESIRED		1220U	/* IPv6 (tunneled), EDNS0 (RFC3226) */
                    
90
                    
                
DHTSetup.cc https://gitlab.com/yaksa/aria2 | C++ | 309 lines
                    
121      // If UDP port is already used, use the same port
                    
122      // number. Normally IPv4 port is available, then IPv6 port is
                    
123      // (especially for port >= 1024). We don't loose much by doing
                    
                
mediaconstraintsinterface.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        }
                    
                
nf_conntrack_l3proto_ipv6.c https://github.com/ido/linux.git | C | 459 lines
                    
31#include <net/netfilter/nf_conntrack_seqadj.h>
                    
32#include <net/netfilter/ipv6/nf_conntrack_ipv6.h>
                    
33#include <net/netfilter/nf_nat_helper.h>
                    
33#include <net/netfilter/nf_nat_helper.h>
                    
34#include <net/netfilter/ipv6/nf_defrag_ipv6.h>
                    
35#include <net/netfilter/nf_log.h>
                    
123	nexthdr = ipv6_hdr(skb)->nexthdr;
                    
124	protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr,
                    
125				   &frag_off);
                    
147
                    
148	protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &pnum,
                    
149				   &frag_off);
                    
433	if (ret < 0) {
                    
434		pr_err("nf_conntrack_ipv6: can't register ipv6 proto.\n");
                    
435		goto cleanup_l4proto;
                    
                
curl_security_helper.php https://github.com/mudrd8mz/moodle.git | PHP | 288 lines
                    
104     * Checks whether the host portion of a url is blocked.
                    
105     * The host portion may be a FQDN, IPv4 address or a IPv6 address wrapped in square brackets, as per standard URL notation.
                    
106     * E.g.
                    
110     * The method logic is as follows:
                    
111     * 1. Check the host component against the list of IPv4/IPv6 addresses and ranges.
                    
112     *  - This will perform a DNS forward lookup if required.
                    
126
                    
127        // Fix for square brackets in the 'host' portion of the URL (only occurs if an IPv6 address is specified).
                    
128        $host = str_replace(array('[', ']'), '', $host); // RFC3986, section 3.2.2.
                    
137            if ($blockedhosts['domain'] || $blockedhosts['domainwildcard']) {
                    
138                // DNS reverse lookup - supports both IPv4 and IPv6 address formats.
                    
139                $hostname = gethostbyaddr($host);
                    
245        foreach ($entries as $entry) {
                    
246            if (ip_utils::is_ipv6_address($entry) || ip_utils::is_ipv6_range($entry)) {
                    
247                $config['ipv6'][] = $entry;
                    
                
ip6t_LOG.c https://github.com/CyanogenMod/htc-kernel-msm7x30.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;
                    
                
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@
                    
                
xt_set.c https://github.com/dhalperi/linux-80211n-csitool.git | C | 435 lines
                    
350		.name		= "set",
                    
351		.family		= NFPROTO_IPV6,
                    
352		.revision	= 1,
                    
384		.revision	= 1,
                    
385		.family		= NFPROTO_IPV6,
                    
386		.target		= set_target_v1,
                    
404		.revision	= 2,
                    
405		.family		= NFPROTO_IPV6,
                    
406		.target		= set_target_v2,
                    
                
cvmx-wqe.h https://github.com/dhalperi/linux-80211n-csitool.git | C Header | 397 lines
                    
81		uint64_t dec_ipsec:1;
                    
82		/* the packet is IPv6 */
                    
83		uint64_t is_v6:1;
                    
137		 *	 header. Pad is allowed.
                    
138		 * - 5 = IP TTL Hop: the IPv4 TTL field or the IPv6
                    
139		 *       Hop Count field are zero.
                    
                
CorbalocURL.java https://github.com/GregBowyer/ManagedRuntimeInitiative.git | Java | 288 lines
                    
183           if( squareBracketBeginIndex != -1 ) {
                    
184               // ipv6Host should be enclosed in
                    
185               // [ ], if not it will result in a
                    
186               // BAD_PARAM exception
                    
187               String ipv6Port = getIPV6Port( hostandport );
                    
188               if( ipv6Port != null ) {
                    
188               if( ipv6Port != null ) {
                    
189                   iiopEndpointInfo.setPort( Integer.parseInt( ipv6Port ));
                    
190               }
                    
190               }
                    
191               iiopEndpointInfo.setHost( getIPV6Host( hostandport ));
                    
192               return iiopEndpointInfo;
                    
238    /**
                    
239      * Returns an IPV6 Port that is after [<ipv6>]:. There is no validation
                    
240      * done here, if it is an incorrect port then the request through
                    
                
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's
                    
                
opts_test.go https://gitlab.com/hugomarisco/docker | Go | 427 lines
                    
195		`thathost:10.0.2.1`,
                    
196		`anipv6host:2003:ab34:e::1`,
                    
197		`ipv6local:::1`,
                    
202		`thathost-nosemicolon10.0.0.1`: `bad format`,
                    
203		`anipv6host:::::1`:             `invalid IP`,
                    
204		`ipv6local:::0::`:              `invalid IP`,
                    
                
address_v6.hpp https://github.com/tizbac/ldcore.git | C++ Header | 431 lines
                    
101  /**
                    
102   * Returns the scope ID associated with the IPv6 address.
                    
103   */
                    
110  /**
                    
111   * Modifies the scope ID associated with the IPv6 address.
                    
112   */
                    
363
                    
364  /// Create an IPv4-mapped IPv6 address.
                    
365  static address_v6 v4_mapped(const address_v4& addr)
                    
372
                    
373  /// Create an IPv4-compatible IPv6 address.
                    
374  static address_v6 v4_compatible(const address_v4& addr)
                    
382private:
                    
383  // The underlying IPv6 address.
                    
384  boost::asio::detail::in6_addr_type addr_;
                    
                
ipsec_rxtx.c https://github.com/ericvh/linux.git | C | 411 lines
                    
110	unsigned int alen = crypto_aead_authsize(x->data);
                    
111	struct ipv6hdr *ipv6hdr = ipv6_hdr(skb);
                    
112	struct iphdr *ipv4hdr = ip_hdr(skb);
                    
127	} else {
                    
128		ipv6hdr->payload_len = htons(ntohs(ipv6hdr->payload_len) -
                    
129					     trailer_len);
                    
151	eseg->swp_outer_l3_offset = skb_network_offset(skb) / 2;
                    
152	if (skb->protocol == htons(ETH_P_IPV6))
                    
153		eseg->swp_flags |= MLX5_ETH_WQE_SWP_OUTER_L3_IPV6;
                    
156		eseg->swp_inner_l3_offset = skb_inner_network_offset(skb) / 2;
                    
157		if (xo->proto == IPPROTO_IPV6) {
                    
158			eseg->swp_flags |= MLX5_ETH_WQE_SWP_INNER_L3_IPV6;
                    
158			eseg->swp_flags |= MLX5_ETH_WQE_SWP_INNER_L3_IPV6;
                    
159			proto = inner_ipv6_hdr(skb)->nexthdr;
                    
160		} else {
                    
                
conn_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) {
                    
                
xt_TPROXY.c https://github.com/dhalperi/linux-80211n-csitool.git | C | 432 lines
                    
29#include <linux/netfilter_ipv6/ip6_tables.h>
                    
30#include <net/netfilter/ipv6/nf_defrag_ipv6.h>
                    
31#endif
                    
192
                    
193#ifdef XT_TPROXY_HAVE_IPV6
                    
194
                    
202
                    
203	if (!ipv6_addr_any(user_laddr))
                    
204		return user_laddr;
                    
244{
                    
245	const struct ipv6hdr *iph = ipv6_hdr(skb);
                    
246	struct tcphdr _hdr, *hp;
                    
278{
                    
279	const struct ipv6hdr *iph = ipv6_hdr(skb);
                    
280	const struct xt_tproxy_target_info_v1 *tgi = par->targinfo;
                    
                
socks5.c https://github.com/zsx/ossbuild.git | C | 424 lines
                    
276                      break;
                    
277                    case 0x04: /* IPV6 bound address */
                    
278                      ret = nice_socket_recv (priv->base_socket, from, 18, data);
                    
347    } else if (name.ss_family == AF_INET6) {
                    
348      msg[len++] = 0x04; /* IPV6 address type */
                    
349      /* Address */
                    
                
hv_kvp_daemon.c https://github.com/CyanogenMod/android_kernel_samsung_crespo.git | C | 498 lines
                    
87	NetworkAddressIPv4,
                    
88	NetworkAddressIPv6,
                    
89	OSBuildNumber,
                    
184	int ipv4_len = strlen("255.255.255.255") + 1;
                    
185	int ipv6_len = strlen("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff")+1;
                    
186	int offset = 0;
                    
248				offset += strlen(str) + 1;
                    
249				if ((length - offset) < (ipv6_len + 1))
                    
250					goto getaddr_done;
                    
441			break;
                    
442		case NetworkAddressIPv6:
                    
443			kvp_get_ip_address(AF_INET6, key_value,
                    
444					HV_KVP_EXCHANGE_MAX_VALUE_SIZE);
                    
445			strcpy(key_name, "NetworkAddressIPv6");
                    
446			break;
                    
                
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;
                    
                
Makefile https://github.com/johnnywalker/freebsd-ports.git | Makefile | 343 lines
                    
97.endif
                    
98.if !defined(WITHOUT_IPV6)
                    
99RUN_DEPENDS+=	${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-Socket-INET6
                    
                
0.88-protos.patch https://github.com/bruceg/portage.git | Patch | 544 lines
                    
268
                    
269the prototypes are added near the top to avoid conflicts w/ipv6 patch
                    
270
                    
                
vmxnet3_int.h https://github.com/jthornber/linux-2.6.git | C Header | 425 lines
                    
50#include <linux/ip.h>
                    
51#include <linux/ipv6.h>
                    
52#include <linux/in.h>
                    
109					   /* pages transmits */
                    
110	VMNET_CAP_IP6_CSUM      = 0x80000, /* Can do IPv6 csum offload. */
                    
111	VMNET_CAP_TSO6         = 0x100000, /* TSO seg. offload for IPv6 pkts. */
                    
213	bool   ipv4;
                    
214	bool   ipv6;
                    
215	u16 mss;
                    
                
Router2.h https://gitlab.com/computerphilly/openblox | C Header | 203 lines
                    
62
                    
63	/// Sets the socket family to use, either IPV4 or IPV6
                    
64	/// \param[in] socketFamily For IPV4, use AF_INET (default). For IPV6, use AF_INET6. To autoselect, use AF_UNSPEC.
                    
                
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
                    
76
                    
                
Lite.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.
                    
386
                    
                
IPTest.php https://github.com/bluelovers/mediawiki-trunk-phase3.git | PHP | 298 lines
                    
50		$this->assertFalse( IP::isIPv6( '::0:' ), 'IPv6 ending in a lone ":"' );
                    
51		$this->assertTrue( IP::isIPv6( '::' ), 'IPv6 zero address' );
                    
52		$this->assertTrue( IP::isIPv6( '::0' ) );
                    
64		$this->assertFalse( IP::isIPv6( 'fc::100:' ), 'IPv6 ending with lone ":"' );
                    
65		$this->assertFalse( IP::isIPv6( 'fc:::100' ), 'IPv6 with ":::" in the middle' );
                    
66		$this->assertTrue( IP::isIPv6( 'fc::100' ), 'IPv6 with "::" and 2 words' );
                    
68		$this->assertTrue( IP::isIPv6( 'fc::100:a:d', 'IPv6 with "::" and 4 words' ) );
                    
69		$this->assertTrue( IP::isIPv6( 'fc::100:a:d:1' ), 'IPv6 with "::" and 5 words' );
                    
70		$this->assertTrue( IP::isIPv6( 'fc::100:a:d:1:e' ), 'IPv6 with "::" and 6 words' );
                    
70		$this->assertTrue( IP::isIPv6( 'fc::100:a:d:1:e' ), 'IPv6 with "::" and 6 words' );
                    
71		$this->assertTrue( IP::isIPv6( 'fc::100:a:d:1:e:ac' ), 'IPv6 with "::" and 7 words' );
                    
72		$this->assertFalse( IP::isIPv6( 'fc::100:a:d:1:e:ac:0' ), 'IPv6 with "::" and 8 words' );
                    
72		$this->assertFalse( IP::isIPv6( 'fc::100:a:d:1:e:ac:0' ), 'IPv6 with "::" and 8 words' );
                    
73		$this->assertFalse( IP::isIPv6( 'fc::100:a:d:1:e:ac:0:1' ), 'IPv6 with 9 words' );
                    
74
                    
                
in_socketMisc.c https://github.com/xrl/opensplice_dds.git | C | 454 lines
                    
9
                    
10/* 44 octets for IPv6 addresses */
                    
11#define IN_INTF_MAX_NAME_LEN (INET6_ADDRSTRLEN)
                    
24
                    
25/* \brief converts to IPv6 address format
                    
26 *
                    
27 * Returns 16 octet vector. Using IPv4-mapping to reprensent
                    
28 * IPv4 addresses with IPv6 (RFC3493)*/
                    
29
                    
                
handler.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)
                    
191
                    
                
httpclient.py https://github.com/joetyson/tornado.git | Python | 306 lines
                    
159                 validate_cert=True, ca_certs=None,
                    
160                 allow_ipv6=None):
                    
161        if headers is None:
                    
200        self.ca_certs = ca_certs
                    
201        # allow_ipv6 may be True, False, or None for default behavior
                    
202        # that varies by httpclient implementation.
                    
202        # that varies by httpclient implementation.
                    
203        self.allow_ipv6 = allow_ipv6
                    
204        self.start_time = time.time()
                    
                
da_DK.js https://gitlab.com/Mirros/cdnjs | JavaScript | 342 lines
                    
195            ipv4: 'Udfyld venligst dette felt med en gyldig IPv4 adresse',
                    
196            ipv6: 'Udfyld venligst dette felt med en gyldig IPv6 adresse'
                    
197        },
                    
                
RrdFileConstants.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:
                    
                
znc.py https://github.com/flakes/znc.git | Python | 371 lines
                    
29			addr = ADDR_IPV4ONLY
                    
30		elif addrtype == 'ipv6':
                    
31			addr = ADDR_IPV6ONLY
                    
356HaveCAres = HaveCAres_()
                    
357HaveIPv6 = HaveIPv6_()
                    
358Version = GetVersion()
                    
                
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    {
                    
                
flow.h https://gitlab.com/pirej/UndineH20_XR2 | C Header | 183 lines
                    
79			struct {
                    
80				struct in6_addr src;	/* IPv6 source address. */
                    
81				struct in6_addr dst;	/* IPv6 destination address. */
                    
82			} addr;
                    
83			__be32 label;			/* IPv6 flow label. */
                    
84			struct {
                    
92			} nd;
                    
93		} ipv6;
                    
94	};
                    
                
checksum.h https://gitlab.com/pirej/UndineH20_XR2 | C Header | 244 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"
                    
                
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  is
                    
                
sch_teql.c https://github.com/cozybit/open80211s.git | C | 533 lines
                    
50   3. If the slave requires address resolution, only protocols using
                    
51      neighbour cache (IPv4/IPv6) will work over the equalized link.
                    
52      Other protocols are still allowed to use the slave device directly,
                    
                
server.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	}
                    
                
ip_set_hash_ip.c https://github.com/robclark/kernel-omap4.git | C | 492 lines
                    
16#include <net/ip.h>
                    
17#include <net/ipv6.h>
                    
18#include <net/netlink.h>
                    
220
                    
221/* The type variant functions: IPv6 */
                    
222
                    
236{
                    
237	return ipv6_addr_cmp(&ip1->ip.in6, &ip2->ip.in6) == 0;
                    
238}
                    
242{
                    
243	return ipv6_addr_any(&elem->ip.in6);
                    
244}
                    
254{
                    
255	ipv6_addr_set(&elem->ip.in6, 0, 0, 0, 0);
                    
256}
                    
                
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 \
                    
                
confopt.html https://github.com/GNA-SERVICES-INC/MoNGate.git | HTML | 198 lines
                    
37	class D), or (r) a reference clock address (127.127.x.x). For type m addresses
                    
38	the IANA has assigned the multicast group address IPv4 224.0.1.1 and IPv6 ff05::101
                    
39	(site local) exclusively to NTP, but other nonconflicting addresses can be used. </p>
                    
39	(site local) exclusively to NTP, but other nonconflicting addresses can be used. </p>
                    
40<p>If the Basic Socket Interface Extensions for IPv6 (RFC-2553) is detected,
                    
41	support for the IPv6 address family is generated in addition to the default
                    
41	support for the IPv6 address family is generated in addition to the default
                    
42	IPv4 address family. IPv6 addresses can be identified by the presence of colons &quot;:&quot; in
                    
43	the address field. IPv6 addresses can be used almost everywhere where IPv4 addresses
                    
46	preceding the host name forces DNS resolution to the IPv4 namespace, while a <tt>-6</tt> qualifier
                    
47	forces DNS resolution to the IPv6 namespace.</p>
                    
48<h4 id="cfg">Configuration Commands</h4>
                    
57		mode in which to operate. The <i>address</i> can be either a DNS name or a
                    
58		IPv4 or IPv6 address in standard notation. In general, multiple commands of
                    
59		each type can be used for different server and peer addresses or multicast
                    
                
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);
                    
                
README.md https://gitlab.com/hop23typhu/list-theme | Markdown | 140 lines
                    
5This is the PHP API for reading MaxMind DB files. MaxMind DB is a binary file
                    
6format that stores data indexed by IP address subnets (IPv4 or IPv6).
                    
7
                    
                
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 "::"
                    
68
                    
                
IpInfoDbTest.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.');
                    
136
                    
                
ipv4.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 Address4
                    
                
netdev_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)
                    
                
dnsrecord.c https://github.com/lauria/Samba4.git | C | 474 lines
                    
152{
                    
153#ifdef HAVE_IPV6
                    
154	uint8 *data;
                    
189			return dns_create_a_record(mem_ctx, name, 0, ss, prec);
                    
190#ifdef HAVE_IPV6
                    
191		case AF_INET6:
                    
451			break;
                    
452#ifdef HAVE_IPV6
                    
453		case AF_INET6:
                    
                
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 calling
                    
                
udp.h https://gitlab.com/Sean.W/pru-linux-drivers | C Header | 247 lines
                    
29#include <net/ip.h>
                    
30#include <linux/ipv6.h>
                    
31#include <linux/seq_file.h>
                    
36 *
                    
37 *	@header:      private variables used by IPv4/IPv6
                    
38 *	@cscov:       checksum coverage length (UDP-Lite only)
                    
43		struct inet_skb_parm	h4;
                    
44#if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE)
                    
45		struct inet6_skb_parm	h6;
                    
206
                    
207#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
                    
208#define UDPX_INC_STATS_BH(sk, field) \
                    
                
named.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 mutually
                    
                
QAbstractSocket.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# endif
                    
                
ip.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);
                    
152
                    
                
register_server.hh https://github.com/schintan/xorp.git | C++ Header | 363 lines
                    
29#include "libxorp/ipv4.hh"
                    
30#include "libxorp/ipv6.hh"
                    
31#include "libxorp/ipnet.hh"
                    
144 * The template class A is the address family: either the IPv4 class
                    
145 * or the IPv6 class.
                    
146 */
                    
209 * The template class A is the address family: either the IPv4 class
                    
210 * or the IPv6 class.
                    
211 */
                    
307
                    
308#ifdef HAVE_IPV6
                    
309    /** 
                    
325    virtual void send_route_changed(const string& module_name,
                    
326				    const IPv6Net& net,
                    
327				    const IPv6& nexthop,
                    
                
validator.js https://gitlab.com/Mirros/cdnjs | JavaScript | 373 lines
                    
45    var ipv4Maybe = /^(\d?\d?\d)\.(\d?\d?\d)\.(\d?\d?\d)\.(\d?\d?\d)$/
                    
46      , ipv6 = /^::|^::1|^([a-fA-F0-9]{1,4}::?){1,7}([a-fA-F0-9]{1,4})$/;
                    
47
                    
180        }
                    
181        return version === '6' && ipv6.test(str);
                    
182    };
                    
                
secure_messages.h git://github.com/zioproto/olsrd-gsoc2012.git | C Header | 201 lines
                    
161/*
                    
162 *IPv6
                    
163 */
                    
                
ztypes_darwin_amd64.go https://gitlab.com/brad.vanderlaan/gitlab-ci-multi-runner | Go | 458 lines
                    
215
                    
216type IPv6Mreq struct {
                    
217	Multiaddr [16]byte /* in6_addr */
                    
249
                    
250type IPv6MTUInfo struct {
                    
251	Addr RawSockaddrInet6
                    
266	SizeofIPMreq           = 0x8
                    
267	SizeofIPv6Mreq         = 0x14
                    
268	SizeofMsghdr           = 0x30
                    
271	SizeofInet6Pktinfo     = 0x14
                    
272	SizeofIPv6MTUInfo      = 0x20
                    
273	SizeofICMPv6Filter     = 0x20
                    
                
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_GETIFADDRS
                    
                
ipv6-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> ();
                    
354
                    
                
ice_tc_lib.h https://gitlab.com/sudipm/linux-next | C Header | 165 lines
                    
11#define ICE_TC_FLWR_FIELD_SRC_IPV4		BIT(4)
                    
12#define ICE_TC_FLWR_FIELD_DEST_IPV6		BIT(5)
                    
13#define ICE_TC_FLWR_FIELD_SRC_IPV6		BIT(6)
                    
18#define ICE_TC_FLWR_FIELD_ENC_SRC_IPV4		BIT(11)
                    
19#define ICE_TC_FLWR_FIELD_ENC_DEST_IPV6		BIT(12)
                    
20#define ICE_TC_FLWR_FIELD_ENC_SRC_IPV6		BIT(13)
                    
62	} ip;
                    
63#define dst_ipv6	ip.v6.dst_ip6.s6_addr32
                    
64#define dst_ipv6_addr	ip.v6.dst_ip6.s6_addr
                    
64#define dst_ipv6_addr	ip.v6.dst_ip6.s6_addr
                    
65#define src_ipv6	ip.v6.src_ip6.s6_addr32
                    
66#define src_ipv6_addr	ip.v6.src_ip6.s6_addr
                    
                
RvsHIP.cc https://gitlab.com/Cased93/ConNetFull | C++ | 126 lines
                    
27#include "RvsHIP.h"
                    
28#include "IPv6ControlInfo.h"
                    
29#include "HipMessages_m.h"
                    
29#include "HipMessages_m.h"
                    
30#include "IPv6Datagram.h"
                    
31
                    
55        {
                    
56            IPv6ControlInfo *networkControlInfo = check_and_cast<IPv6ControlInfo*>(msg->removeControlInfo());
                    
57
                    
96// Forwards I1 messages to the registered host's IP address
                    
97void RvsHIP::alterHipPacketAndSend(HIPHeaderMessage* hipHead, IPv6Address &rvsIP, IPv6Address &destIP,
                    
98        IPv6Address &fromIP)
                    
107    hipHead->setRvs_mac(1);
                    
108    IPv6ControlInfo *networkControlInfo = new IPv6ControlInfo();
                    
109    networkControlInfo->setDestAddr(destIP);
                    
                
tcp_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")
                    
                
Http.php https://gitlab.com/daigiangaitu91/magento | PHP | 224 lines
                    
35     */
                    
36    protected $validHostTypes = self::HOST_DNS_OR_IPV4_OR_IPV6_OR_REGNAME;
                    
37
                    
139     */
                    
140    public static function validateHost($host, $allowed = self::HOST_DNS_OR_IPV4_OR_IPV6)
                    
141    {
                    
                
RouteStaxUnmarshaller.java https://github.com/aws/aws-sdk-java.git | Java | 140 lines
                    
50
                    
51                if (context.testExpression("destinationIpv6CidrBlock", targetDepth)) {
                    
52                    route.setDestinationIpv6CidrBlock(StringStaxUnmarshaller.getInstance().unmarshall(context));
                    
                
ntpdc-opts.def http://opensource.apple.com/release/ios-511/ | Module-Definition | 152 lines
                    
39    value     = 4;
                    
40    flags-cant = ipv6;
                    
41    descrip   = &quot;Force IPv4 DNS name resolution&quot;;
                    
48flag = {
                    
49    name      = ipv6;
                    
50    value     = 6;
                    
51    flags-cant = ipv4;
                    
52    descrip   = &quot;Force IPv6 DNS name resolution&quot;;
                    
53    doc = &lt;&lt;-  _EndOfDoc_
                    
54	Force DNS resolution of following host names on the command line
                    
55	to the IPv6 namespace.
                    
56	_EndOfDoc_;
                    
                
DistributionSummaryStaxUnmarshaller.java https://github.com/aws/aws-sdk-java.git | Java | 168 lines
                    
137
                    
138                if (context.testExpression("IsIPV6Enabled", targetDepth)) {
                    
139                    distributionSummary.setIsIPV6Enabled(BooleanStaxUnmarshaller.getInstance().unmarshall(context));
                    
                
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#else
                    
                
address_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_;
                    
                
EC2DeleteRouteAction.java https://github.com/aws/aws-sdk-java.git | Java | 362 lines
                    
200
                    
201    public void setDestinationIpv6CidrBlock(String destinationIpv6CidrBlock) {
                    
202        this.destinationIpv6CidrBlock = destinationIpv6CidrBlock;
                    
231    public EC2DeleteRouteAction withDestinationIpv6CidrBlock(String destinationIpv6CidrBlock) {
                    
232        setDestinationIpv6CidrBlock(destinationIpv6CidrBlock);
                    
233        return this;
                    
294        if (getDestinationIpv6CidrBlock() != null)
                    
295            sb.append("DestinationIpv6CidrBlock: ").append(getDestinationIpv6CidrBlock()).append(",");
                    
296        if (getRouteTableId() != null)
                    
323            return false;
                    
324        if (other.getDestinationIpv6CidrBlock() == null ^ this.getDestinationIpv6CidrBlock() == null)
                    
325            return false;
                    
325            return false;
                    
326        if (other.getDestinationIpv6CidrBlock() != null && other.getDestinationIpv6CidrBlock().equals(this.getDestinationIpv6CidrBlock()) == false)
                    
327            return false;
                    
                
dns.c https://bitbucket.org/osmanov/pecl-event.git | C | 272 lines
                    
114 * text string, either as an IPv4 address, an IPv6 address, an IPv4 address
                    
115 * with a port (IPv4:Port), or an IPv6 address with a port ([IPv6]:Port).
                    
116 */
                    
                
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>
                    
                
DNSConstants.java https://gitlab.com/yorty.ruiz/jitsi | Java | 160 lines
                    
31    final static String MDNS_GROUP = "224.0.0.251";
                    
32    final static String MDNS_GROUP_IPV6 = "FF02::FB";
                    
33    final static int MDNS_PORT = 5353;
                    
                
AnnounceResponse.java https://github.com/predakanga/shadowolf.git | Java | 198 lines
                    
133		int ipv4Count = 0;
                    
134		int ipv6Count = 0;
                    
135		
                    
153		if(ipv6Count > 0) {
                    
154			ipv6start = ("6:peers6"+(ipv6Count*18)+":").getBytes(Charsets.UTF_8); // length 10
                    
155		}
                    
156		
                    
157		int size = ipv6start.length + ipv4start.length + (ipv6Count * 18) + (ipv4Count * 6)+1;
                    
158		
                    
166		System.arraycopy(ipv4start, 0, result, ipv4Index, ipv4start.length);
                    
167		System.arraycopy(ipv6start, 0, result, ipv6Index, ipv6start.length);
                    
168		
                    
169		ipv4Index += ipv4start.length;
                    
170		ipv6Index += ipv6start.length;
                    
171		
                    
                
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;
                    
                
 

Source

Language