100+ results results for 'ipv6 repo:jrossi/metasploit' (39 ms)
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.tcp.h https://github.com/kvaneesh/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) */ 90vector_transports.c https://github.com/kvaneesh/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)) {pkt_cls.h https://github.com/gby/linux.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 */xt_set.c https://bitbucket.org/Don2x/mod-kernel-m7-sources.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,ip_set_hash_ip.c https://github.com/iksaif/platform-drivers-x86.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_equal(&ip1->ip.in6, &ip2->ip.in6); 238} 242{ 243 return ipv6_addr_any(&elem->ip.in6); 244} 254{ 255 ipv6_addr_set(&elem->ip.in6, 0, 0, 0, 0); 256}ip_set_hash_ip.c https://bitbucket.org/Tofe/picasso-kernel.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}ip6t_LOG.c https://github.com/defer/kernel_zte_blade.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;dev_ioctl.c https://gitlab.com/kush/linux | C | 520 lines
15 * We need this ioctl for efficient implementation of the 16 * if_indextoname() function required by the IPv6 API. Without 17 * it, we would have to search all the interfaces to find ahv_kvp_daemon.c https://bitbucket.org/bagyusz/android_kernel_alcatel_cocktail.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;address_v6.hpp https://github.com/llazarus1/YAGE.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_;ipam.md https://gitlab.com/unofficial-mirrors/openshift-origin | 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 94ipsec_rxtx.c https://gitlab.com/Skylake/linux-kernel | 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 {xt_TPROXY.c https://github.com/haokexin/linux.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;opts_test.go https://gitlab.com/liwh/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`,in_socketMisc.c https://github.com/xrl/opensplice.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)*/ 29conn_object.c https://gitlab.com/oyvholm/linux | 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:ident.c https://gitlab.com/mayakarya/git | C | 517 lines
98 99#ifndef NO_IPV6 100 struct addrinfo hints, *ai; 115 } 116#endif /* NO_IPV6 */ 117test_sockmap_kern.h https://gitlab.com/kush/linux | C Header | 458 lines
8#include <linux/ip.h> 9#include <linux/ipv6.h> 10#include <linux/in.h>ioctl.c https://github.com/SgtPepperKSU/TomatoVPN.git | C | 539 lines
70 71#ifdef HAVE_IPV6 72int 72int 73if_ioctl_ipv6 (u_long request, caddr_t buffer) 74{ 99} 100#endif /* HAVE_IPV6 */ 101 396 397#ifdef HAVE_IPV6 398 398 399#ifdef LINUX_IPV6 400#ifndef _LINUX_IN6_Hsch_teql.c https://gitlab.com/minsuu/osproj3 | 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,ef100_tx.c https://github.com/penberg/linux.git | C | 408 lines
100 if (skb_is_gso_v6(skb)) { 101 tcphdr->check = ~csum_ipv6_magic(&ipv6_hdr(skb)->saddr, 102 &ipv6_hdr(skb)->daddr,dns_resolver.go https://gitlab.com/ipernet/gitlab-shell | Go | 436 lines
59 // between host and port is not allowed. E.g. "::" is a valid address as 60 // it is an IPv6 address (host only) and "[::]:" is invalid as it ends with 61 // a colon as the host and port separator 334// If addr is an IPv4 address, return the addr and ok = true. 335// If addr is an IPv6 address, return the addr enclosed in square brackets and ok = true. 336func formatIP(addr string) (addrIP string, ok bool) { 348// If target doesn't specify a port, set the port to be the defaultPort. 349// If target is in IPv6 format and host-name is enclosed in sqarue brackets, brackets 350// are strippd when setting the host. 353// target: "ipv4-host:80" defaultPort: "443" returns host: "ipv4-host", port: "80" 354// target: "[ipv6-host]" defaultPort: "443" returns host: "ipv6-host", port: "443" 355// target: ":80" defaultPort: "443" returns host: "localhost", port: "80" 360 if ip := net.ParseIP(target); ip != nil { 361 // target is an IPv4 or IPv6(without brackets) address 362 return target, defaultPort, nilREADME.rst https://github.com/takano32/ipv6.git | ReStructuredText | 563 lines
99 100IPv6の前にIPv4もコワイ 101 131.. 132 - IPv6ではメインの通信というより、アドレスの自動設定や近隣探索に利用 133 222 223 - IPv6にしても困らないって声を大にして言ってるところのブラウザ 224 301 302IPv6というものは **アウト・オブ・眼中** という例 303 407 def handle(self, addrport='', *args, **options): 408 self.use_ipv6 = options.get('use_ipv6') 409 if self.use_ipv6 and not socket.has_ipv6: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-INET6ip_address_unittest.cc https://gitlab.com/0072016/Facebook-SDK- | C++ | 369 lines
165 EXPECT_TRUE(ipv6_address.AssignFromIPLiteral("::1")); 166 EXPECT_FALSE(ipv6_address.IsIPv4MappedIPv6()); 167 350 0, 0, 0, 0, 0, 0, 100}; 351 EXPECT_FALSE(IPAddressStartsWith(ipv6_address, ipv6_prefix2)); 352 354 0, 0, 0, 0, 0, 0, 0, 100}; 355 EXPECT_TRUE(IPAddressStartsWith(ipv6_address, ipv6_prefix3)); 356 358 0, 0, 0, 0, 0, 0, 0, 0}; 359 EXPECT_FALSE(IPAddressStartsWith(ipv6_address, ipv6_prefix4)); 360 363 0, 0, 0, 0, 0, 0, 0, 10}; 364 EXPECT_FALSE(IPAddressStartsWith(ipv6_address, ipv6_prefix5)); 365}0.88-protos.patch https://gitlab.com/redcore/portage | Patch | 544 lines
268 269the prototypes are added near the top to avoid conflicts w/ipv6 patch 270ScriptMethods.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;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'.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 doingmediaconstraintsinterface.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 }pdb.h https://github.com/kvaneesh/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 */xt_ecn.c https://github.com/mturquette/linux.git | C | 179 lines
1/* 2 * Xtables module for matching the value of the IPv4/IPv6 and TCP ECN bits 3 * 21#include <linux/netfilter_ipv4/ip_tables.h> 22#include <linux/netfilter_ipv6/ip6_tables.h> 23 106 107static inline bool match_ipv6(const struct sk_buff *skb, 108 const struct xt_ecn_info *einfo) 109{ 110 return (((ipv6_hdr(skb)->flow_lbl[0] >> 4) & XT_ECN_IP_MASK) == 111 einfo->ip_ect) ^ 118 119 if (info->operation & XT_ECN_OP_MATCH_IP && !match_ipv6(skb, info)) 120 return false;xfrm6_state.c https://github.com/dmitriy103/bravo_kernel-2.6.35.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); 152xt_dccp.c https://github.com/mstsirkin/linux.git | C | 188 lines
21#include <linux/netfilter_ipv4/ip_tables.h> 22#include <linux/netfilter_ipv6/ip6_tables.h> 23 151 .name = "dccp", 152 .family = NFPROTO_IPV6, 153 .checkentry = dccp_mt_check,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;NetworkTopologyDiscoveryServiceImpl.java https://bitbucket.org/psymes/34cs-st2071.git | Java | 432 lines
144 145 private boolean useIPv6; 146 155 156 public NetworkTopologyDiscoveryServiceImpl(boolean useIPv6, boolean useSiteLocal, boolean useVirtual, boolean useLoopback) 157 { 157 { 158 this.useIPv6 = useIPv6; 159 this.useSiteLocal = useSiteLocal; 241 242 public boolean isMonitoringIPv6() 243 { 243 { 244 return useIPv6; 245 }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;GHStreamSocketSSL.jvm.cs https://github.com/iainlane/mono.git | C# | 620 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)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@resolver_query_base.hpp https://bitbucket.org/wlitzlbauer/spacecrafts.git | C++ Header | 157 lines
44 45 /// Host name should be treated as a numeric string defining an IPv4 or IPv6 46 /// address and no name resolution should be attempted. 53 /// If the query protocol family is specified as IPv6, return IPv4-mapped 54 /// IPv6 addresses on finding no IPv6 addresses. 55 static const flags v4_mapped = implementation_defined; 56 57 /// If used with v4_mapped, return all matching IPv6 and IPv4 addresses. 58 static const flags all_matching = implementation_defined; 60 /// Only return IPv4 addresses if a non-loopback IPv4 address is configured 61 /// for the system. Only return IPv6 addresses if a non-loopback IPv6 address 62 /// is configured for the system.ice_tc_lib.h https://github.com/tiwai/sound.git | 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_addrpmd-cli.md https://gitlab.com/unofficial-mirrors/vmware-photon | Markdown | 486 lines
150 151Get IPv6 address(es) for the specified interface. 152~~~~ 154~~~~ 155Add one or more IPv6 addresses (comma-separated list in colon-separated/prefix notation) to the specified interface. 156~~~~ 156~~~~ 157pmd-cli net ip6_address --add --interface <ifname> --addrlist <IPv6Addr1/prefix,IPv6Addr2/prefix,...> 158~~~~ 160~~~~ 161pmd-cli net ip6_address --del --interface <ifname> --addrlist <IPv6Addr1/prefix,IPv6Addr2/prefix,...> 162~~~~ 278~~~~ 279pmd-cli net wait_for_ip --interface <ifname> --timeout <timeout> --addrtype <ipv4,ipv6,static_ipv4,static_ipv6,dhcp_ipv4,dhcp_ipv6,auto_ipv6,link_local_ipv6> 280~~~~prefix.h https://gitlab.com/envieidoc/tomato | C Header | 161 lines
56#ifdef HAVE_IPV6 57struct prefix_ipv6 58{ 107#define IPV6_MAX_PREFIXLEN 128 108#define IPV6_ADDR_CMP(D,S) memcmp ((D), (S), IPV6_MAX_BYTELEN) 109#define IPV6_ADDR_SAME(D,S) (memcmp ((D), (S), IPV6_MAX_BYTELEN) == 0) 109#define IPV6_ADDR_SAME(D,S) (memcmp ((D), (S), IPV6_MAX_BYTELEN) == 0) 110#define IPV6_ADDR_COPY(D,S) memcpy ((D), (S), IPV6_MAX_BYTELEN) 111 141#ifdef HAVE_IPV6 142struct prefix_ipv6 *prefix_ipv6_new (); 143void prefix_ipv6_free (); 145int str2prefix_ipv6 (char *str, struct prefix_ipv6 *p); 146void apply_mask_ipv6 (struct prefix_ipv6 *p); 147void str2in6_addr (char *str, struct in6_addr *addr);section_03.yml https://gitlab.com/PotatoSkin15/ansible | YAML | 168 lines
2 3 - name: 3.1.1 Ensure IPv6 is disabled (Not Scored) 4 lineinfile: 6 regexp: '^GRUB_CMDLINE_LINUX="(.*)"' 7 line: 'GRUB_CMDLINE_LINUX="\1 ipv6.disable=1"' 8 backup: yes 10 when: 11 - use_ipv6 == "no" 12 - ansible_virtualization_type != "docker" 66 67 - name: 3.3.9 Ensure IPv6 router advertisements are not accepted (Not Scored) 68 copy: 68 copy: 69 src: files/etc/sysctl.d/60-cis_sysctl_ipv6.conf 70 dest: /etc/sysctl.d/60-cis_sysctl_ipv6.confREADME.md https://gitlab.com/rdeterre/contiki | Markdown | 120 lines
1README file for Contiki's IPv6 multicast core 2 6=============== 7These files, alongside some core modifications, add support for IPv6 multicast 8to contiki's uIPv6 engine. 48============== 49The best place in `examples/ipv6/multicast` 50 54========== 55Look in `core/net/ipv6/multicast/uip-mcast6-engines.h` for a list of supported 56multicast engines. 70 71 MODULES += core/net/ipv6/multicast 72 104- Open `uip-mcast6.h` and add a section in the `#if` spree. This aims to 105 configure the uIPv6 core. More specifically, you need to: 106 * Specify if you want to put RPL in MOP3 by definingData.idr https://github.com/idris-lang/Idris-dev.git | Idris | 172 lines
64 65 ||| IP / UDP etc. IPv6 66 AF_INET6 : SocketFamily 119 ||| Not implemented (yet) 120 IPv6Addr : SocketAddress 121 128 show (IPv4Addr i1 i2 i3 i4) = concat $ Prelude.List.intersperse "." (map show [i1, i2, i3, i4]) 129 show IPv6Addr = "NOT IMPLEMENTED YET" 130 show (Hostname host) = hostip_set.h https://github.com/mturquette/linux.git | C Header | 304 lines
128 IPSET_ATTR_IPADDR_IPV4 = IPSET_ATTR_UNSPEC + 1, 129 IPSET_ATTR_IPADDR_IPV6, 130 __IPSET_ATTR_IPADDR_MAX, 149 IPSET_ERR_IPADDR_IPV4, 150 IPSET_ERR_IPADDR_IPV6, 151 IPSET_ERR_COUNTER,ip6table_filter.c https://github.com/defer/kernel_zte_blade.git | C | 177 lines
13#include <linux/moduleparam.h> 14#include <linux/netfilter_ipv6/ip6_tables.h> 15 57 .me = THIS_MODULE, 58 .af = NFPROTO_IPV6, 59}; 69 return ip6t_do_table(skb, hook, in, out, 70 dev_net(in)->ipv6.ip6table_filter); 71} 90 return ip6t_do_table(skb, hook, in, out, 91 dev_net(out)->ipv6.ip6table_filter); 92} 97 .owner = THIS_MODULE, 98 .pf = NFPROTO_IPV6, 99 .hooknum = NF_INET_LOCAL_IN,d6_packet.c https://gitlab.com/openbar/busybox | C | 172 lines
28 29int FAST_FUNC d6_recv_kernel_packet(struct in6_addr *peer_ipv6 30 UNUSED_PARAM 51 52/* Construct a ipv6+udp header for a packet, send packet */ 53int FAST_FUNC d6_send_raw_packet( 54 struct d6_packet *d6_pkt, unsigned d6_pkt_size, 55 struct in6_addr *src_ipv6, int source_port, 56 struct in6_addr *dst_ipv6, int dest_port, const uint8_t *dest_arp, 64 65 fd = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IPV6)); 66 if (fd < 0) { 75 dest_sll.sll_family = AF_PACKET; 76 dest_sll.sll_protocol = htons(ETH_P_IPV6); 77 dest_sll.sll_ifindex = ifindex;ib.h https://github.com/penberg/linux.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 addressesutilities.c https://bitbucket.org/freebsd/freebsd-base.git | C | 205 lines
16void test_IPv4Address(void); 17void test_IPv6Address(void); 18void test_SetLiVnMode1(void); 97void 98test_IPv6Address(void) { 99 const struct in6_addr address = { { {functions.sh https://github.com/kvaneesh/linux.git | Shell | 339 lines
178 179# Extend shrunken IPv6 address. 180# fe80::42:bcff:fe84:e10a => fe80:0:0:0:42:bcff:fe84:e10aaddrinfo.h https://gitlab.com/storedmirrors/minix | C Header | 117 lines
61 62#define AI_ALL 0x00000100 /* IPv6 and IPv4-mapped (with AI_V4MAPPED) */ 63#define AI_V4MAPPED_CFG 0x00000200 /* accept IPv4-mapped if kernel supports */ 64#define AI_ADDRCONFIG 0x00000400 /* only if any address is assigned */ 65#define AI_V4MAPPED 0x00000800 /* accept IPv4-mapped IPv6 address */ 66/* special recommended flags for getipnodebyname */ 72 int ai_socktype; /* SOCK_xxx */ 73 int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */ 74 size_t ai_addrlen; /* length of ai_addr */tap-follow.c https://gitlab.com/crondaemon/wireshark-legacy | C | 539 lines
176 address_to_str_buf(&follow_info->client_ip, buf, sizeof buf); 177 if (follow_info->client_ip.type == AT_IPv6) 178 printf("Node 0: [%s]:%u\n", buf, follow_info->client_port); 182 address_to_str_buf(&follow_info->server_ip, buf, sizeof buf); 183 if (follow_info->client_ip.type == AT_IPv6) 184 printf("Node 1: [%s]:%u\n", buf, follow_info->server_port); 335 cli_follow_info_t* cli_follow_info = (cli_follow_info_t*)follow_info->gui_data; 336 gboolean is_ipv6; 337 355 { 356 is_ipv6 = TRUE; 357 } 359 { 360 is_ipv6 = FALSE; 361 }test-udp-ipv6.c https://github.com/mmalecki/libuv.git | C | 173 lines
70 71static void ipv6_recv_fail(uv_udp_t* handle, 72 ssize_t nread, 79 80static void ipv6_recv_ok(uv_udp_t* handle, 81 ssize_t nread, 155#else 156 do_test(ipv6_recv_ok, 0); 157 166TEST_IMPL(udp_ipv6_only) { 167 do_test(ipv6_recv_fail, UV_UDP_IPV6ONLY); 168timers.c https://gitlab.com/longkas/Potatso-iOS | 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 */ip.h https://gitlab.com/karrei/inel-imx6-kernel | C Header | 511 lines
389 390#if IS_ENABLED(CONFIG_IPV6) 391#include <linux/ipv6.h> 396 inet_sk(sk)->inet_rcv_saddr = inet_sk(sk)->inet_saddr = 0; 397#if IS_ENABLED(CONFIG_IPV6) 398 if (sk->sk_family == PF_INET6) { 398 if (sk->sk_family == PF_INET6) { 399 struct ipv6_pinfo *np = inet6_sk(sk); 400 415 return inet_sk(sk)->mc_loop; 416#if IS_ENABLED(CONFIG_IPV6) 417 case AF_INET6:netdev_features.h https://github.com/gby/linux.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)inetpeer.h https://gitlab.com/abhishekr700/ASUS_ZenFone_ZE550KL | C Header | 186 lines
14#include <linux/rtnetlink.h> 15#include <net/ipv6.h> 16#include <linux/atomic.h>Makefile.in https://bitbucket.org/killerpenguinassassins/open_distrib_devel.git | Autoconf | 134 lines
34# Alphabetically 35UNIXOBJS = @ISC_ISCIPV6_O@ \ 36 unix/app.@O@ unix/dir.@O@ unix/entropy.@O@ \ppp_2.4.5.bb https://github.com/dlazzari/oe-core.git | Bitbake | 91 lines
18 file://pppd-resolv-varrun.patch \ 19 file://enable-ipv6.patch \ 20 file://makefile-remove-hard-usr-reference.patch \secure_messages.h https://bitbucket.org/clauz/olsrd-ccninfo.git | C Header | 201 lines
161/* 162 *IPv6 163 */ml2_ovs_devstack.rst https://github.com/openstack/neutron.git | ReStructuredText | 135 lines
66 This is your host IP address: 172.16.189.6 67 This is your host IPv6 address: ::1 68 Horizon is now available at http://172.16.189.6/dashboard 121 This is your host IP address: 172.16.189.30 122 This is your host IPv6 address: ::1 123 2017-03-09 18:39:27.058 | stack.sh completed in 1149 seconds.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 throughsnmp.h https://gitlab.com/envieidoc/tomato | C Header | 237 lines
3 * 4 * Author: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> 5 */ 14 * RFC 2863: Interfaces Group MIB 15 * RFC 2465: IPv6 MIB: General Group 16 * draft-ietf-ipv6-rfc2011-update-10.txt: MIB for IP: IP Statistics Tablesares_config.h https://github.com/bmeck/node.git | C Header | 505 lines
138 139/* Define to 1 if you have a IPv6 capable working inet_net_pton function. */ 140/* #undef HAVE_INET_NET_PTON */ 141 142/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ 143#define HAVE_INET_NTOP 1 144 145/* Define to 1 if you have a IPv6 capable working inet_pton function. */ 146#define HAVE_INET_PTON 1html-output.cite.html https://gitlab.com/dkg/gmime | HTML | 45 lines
18> - web url w/ user and domain literal: <a href="http://user@[127.0.0.1]/index.html">http://user@[127.0.0.1]/index.html</a><br> 19> - web url w/ IPv6 domain literals:<br> 20> - <a href="http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html">http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html</a><br>lump_struct.h https://gitlab.com/oded/kamailio | C Header | 122 lines
62 REALM= ip_addr:port:proto 63 af = address family (ipv4 or ipv6) 64 proto = protocol (tcp, udp, tls)ip_vs_proto.c https://gitlab.com/kush/linux | C | 389 lines
249 250#ifdef CONFIG_IP_VS_IPV6 251static void 257 char buf[192]; 258 struct ipv6hdr _iph, *ih; 259 267 268 pptr = skb_header_pointer(skb, offset + sizeof(struct ipv6hdr), 269 sizeof(_ports), _ports); 289{ 290#ifdef CONFIG_IP_VS_IPV6 291 if (af == AF_INET6)ConfigurationBuilder.java https://github.com/an1310/infinispan.git | Java | 363 lines
38 39 // Match IPv4 (host:port) or IPv6 ([host]:port) addresses 40 private static final Pattern ADDRESS_PATTERN = Patternnstats-0.4-glibc24.patch https://gitlab.com/rindeal/gentoo-cvs-history-archive | Patch | 102 lines
3@@ -148,9 +148,9 @@ 4 stats.ip.ipv6.icmp.dst_unreach.s_admin += hdr->len; 5 break; 7- case ICMP6_DST_UNREACH_NOTNEIGHBOR: 8- stats.ip.ipv6.icmp.dst_unreach.notneighbor++; 9- stats.ip.ipv6.icmp.dst_unreach.s_notneighbor += hdr->len; 10+ case ICMP6_DST_UNREACH_BEYONDSCOPE: 11+ stats.ip.ipv6.icmp.dst_unreach.beyondscope++; 12+ stats.ip.ipv6.icmp.dst_unreach.s_beyondscope += hdr->len; 16@@ -219,21 +219,6 @@ 17 stats.ip.ipv6.icmp.s_echo_reply += hdr->len; 18 break; 20- case ICMP6_MEMBERSHIP_QUERY: 21- stats.ip.ipv6.icmp.mbrship_query++; 22- stats.ip.ipv6.icmp.s_mbrship_query += hdr->len;via.test.py https://github.com/apache/trafficserver.git | Python | 124 lines
28 Condition.HasCurlFeature('http2'), 29 Condition.HasCurlFeature('IPv6') 30) 109 110# IPv6 111tr = Test.AddTestRun() 111tr = Test.AddTestRun() 112tr.Processes.Default.Command = 'curl --verbose --ipv6 --http1.1 --proxy localhost:{} http://www.example.com'.format( 113 ts.Variables.portv6) 118tr = Test.AddTestRun() 119tr.Processes.Default.Command = 'curl --verbose --ipv6 --http1.1 --insecure --header "Host: www.example.com" https://localhost:{}'.format( 120 ts.Variables.ssl_portv6)neighbor.py https://gitlab.com/rendoaw/exabgp | Python | 274 lines
136 return 'peer-as' 137 if self.peer_address.afi == AFI.ipv6 and not self.router_id: 138 return 'router-id'netfilter.c https://github.com/nobled/linux-2.6.git | C | 179 lines
15 struct net *net = dev_net(skb_dst(skb)->dev); 16 struct ipv6hdr *iph = ipv6_hdr(skb); 17 struct dst_entry *dst; 69 if (entry->hook == NF_INET_LOCAL_OUT) { 70 struct ipv6hdr *iph = ipv6_hdr(skb); 71 83 if (entry->hook == NF_INET_LOCAL_OUT) { 84 struct ipv6hdr *iph = ipv6_hdr(skb); 85 if (!ipv6_addr_equal(&iph->daddr, &rt_info->daddr) || 101{ 102 struct ipv6hdr *ip6h = ipv6_hdr(skb); 103 __sum16 csum = 0; 135{ 136 struct ipv6hdr *ip6h = ipv6_hdr(skb); 137 __wsum hsum;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'saddress.h https://gitlab.com/nickm_tor/tor | C Header | 380 lines
53struct in_addr; 54/** Holds an IPv4 or IPv6 address. (Uses less memory than struct 55 * sockaddr_storage.) */ 94/** Return an in6_addr* equivalent to <b>a</b>, or NULL if <b>a</b> is not 95 * an IPv6 address. */ 96static inline const struct in6_addr * 101 102/** As tor_addr_to_in6, but assert that the address truly is an IPv6 103 * address. */ 110 111/** Given an IPv6 address <b>x</b>, yield it as an array of uint8_t. 112 * 112 * 113 * Requires that <b>x</b> is actually an IPv6 address. 114 */fs.h https://gitlab.com/pachecof/centos-stream-9 | C Header | 283 lines
71 MLX5E_TT_IPV4_TCP, 72 MLX5E_TT_IPV6_TCP, 73 MLX5E_TT_IPV4_UDP, 73 MLX5E_TT_IPV4_UDP, 74 MLX5E_TT_IPV6_UDP, 75 MLX5E_TT_IPV4_IPSEC_AH, 75 MLX5E_TT_IPV4_IPSEC_AH, 76 MLX5E_TT_IPV6_IPSEC_AH, 77 MLX5E_TT_IPV4_IPSEC_ESP, 77 MLX5E_TT_IPV4_IPSEC_ESP, 78 MLX5E_TT_IPV6_IPSEC_ESP, 79 MLX5E_TT_IPV4, 107 MLX5E_TT_IPV4_IPV6, 108 MLX5E_TT_IPV6_IPV6, 109 MLX5E_NUM_TUNNEL_TT,reassembly.c https://github.com/anarsoul/linux-2.6.git | C | 594 lines
60 61static u8 ip6_frag_ecn(const struct ipv6hdr *ipv6h) 62{ 62{ 63 return 1 << (ipv6_get_dsfield(ipv6h) & INET_ECN_MASK); 64} 94 95 if (!(ipv6_addr_type(&hdr->daddr) & (IPV6_ADDR_MULTICAST | 96 IPV6_ADDR_LINKLOCAL))) 290 ipv6_hdr(skb)->payload_len = htons(payload_len); 291 ipv6_change_dsfield(ipv6_hdr(skb), 0xff, ecn); 292 IP6CB(skb)->nhoff = nhoff; 324 struct frag_queue *fq; 325 const struct ipv6hdr *hdr = ipv6_hdr(skb); 326 struct net *net = dev_net(skb_dst(skb)->dev);Path.cs https://github.com/gusgorman/Castle.Services.Transaction.git | C# | 258 lines
32 /// <item>UNC-rooted paths: \\?\C:\folder\file</item> 33 /// <item>Fully expanded IPv6 paths</item> 34 /// </list>configure.in https://github.com/kame/kame.git | Autoconf | 158 lines
103 104AC_MSG_CHECKING(for IPv6 resolver type) 105AC_TRY_COMPILE(dnlip_carp.h https://github.com/kame/kame.git | C Header | 130 lines
66 u_long carps_ipackets; /* total input packets, IPv4 */ 67 u_long carps_ipackets6; /* total input packets, IPv6 */ 68 u_long carps_badif; /* wrong interface */ 78 u_long carps_opackets; /* total output packets, IPv4 */ 79 u_long carps_opackets6; /* total output packets, IPv6 */ 80 u_long carps_onomem; /* no memory for an mbuf for a send */Core.h https://github.com/gunnarbeutner/shroudbnc.git | C Header | 281 lines
87 CSocketEvents *Listener; /**< IPv4 listener object */ 88 CSocketEvents *ListenerV6; /**< IPv6 listener object */ 89} additionallistener_t;RadiusTokenAuthenticationEventExecutionPlanConfiguration.java https://github.com/frett/cas.git | Java | 126 lines
83 val impl = new NonBlockingRadiusServer(protocol, factory, server.getRetries(), 84 server.getNasIpAddress(), server.getNasIpv6Address(), 85 server.getNasPort(), server.getNasPortId(),iovec.c https://github.com/mstsirkin/kvm.git | C | 264 lines
15 * Alexey Kuznetsov: 2.1 optimisations 16 * Andi Kleen : Fix csum*fromiovecend for IPv6. 17 */test_ipaddr.cc https://gitlab.com/unofficial-mirrors/ceph | C++ | 590 lines
21 22static void ipv6(struct sockaddr_in6 *addr, const char *s) { 23 int err; 51 ipv4(&a_one, "10.11.12.13"); 52 ipv6(&a_two, "2001:1234:5678:90ab::cdef"); 53 ipv4(&net, "10.11.234.56"); 77 ipv4(&a_one, "10.11.12.13"); 78 ipv6(&a_two, "2001:1234:5678:90ab::cdef"); 79 ipv4(&net, "10.11.12.42"); 174 175 ipv6(&a_one, "2001:1234:5678:900F::cdef"); 176 ipv4(&a_two, "10.1.2.3"); 201 ipv4(&a_one, "10.11.12.13"); 202 ipv6(&a_two, "2001:1234:5678:90ab::cdef"); 203 ipv6(&net, "2001:1234:5678:90ab::dead:beef");test.py https://github.com/SlapOS/slapos.git | Python | 270 lines
52 { 53 'jupyter-classic-url': 'https://[%s]:8888/tree' % (self._ipv6_address, ), 54 'jupyterlab-url': 'https://[%s]:8888/lab' % (self._ipv6_address, ), 55 'password': '%s' % (password, ), 56 'url': 'https://[%s]:8888/tree' % (self._ipv6_address, ) 57 },qplatformdefs.h https://github.com/Fale/qtmoko.git | C Header | 146 lines
76#include <netinet/in.h> 77#ifndef QT_NO_IPV6IFNAME 78#include <net/if.h>Makefile https://github.com/jsonn/pkgsrc.git | Makefile | 241 lines
15 16BUILD_DEFS+= IPV6_READY 17BUILD_DEFS+= VARBASE__init__.py https://gitlab.com/e0/frontera | Python | 221 lines
210 self.hostname_partitioning = settings.get('QUEUE_HOSTNAME_PARTITIONING') 211 if self.socket_config.is_ipv6: 212 self.context.zeromq.setsockopt(zmq.IPV6, True)address_v6.hpp https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | C++ Header | 248 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_;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) {SOCK_Acceptor.cpp https://github.com/chucho/FaceCore.git | C++ | 406 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 }enh_desc.c https://github.com/mturquette/linux.git | C | 454 lines
150 x->ipv4_pkt_rcvd++; 151 if (rdes4 & ERDES4_IPV6_PKT_RCVD) 152 x->ipv6_pkt_rcvd++;ipmr_base.c https://gitlab.com/Skylake/linux-kernel | C | 370 lines
1/* Linux multicast routing support 2 * Common logic shared by IPv4 [ipmr] and IPv6 [ip6mr] implementation 3 */