100+ results results for 'ipv6 repo:freebsd/freebsd-head' (1085 ms)
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 aipsec_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 {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`,cvmx-wqe.h https://gitlab.com/rychly/rk3026-linux-sources | 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.sch_teql.c https://gitlab.com/deadnem/Singularity-DeYuS | 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,test_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>ident.c https://gitlab.com/181gaming/git | C | 517 lines
98 99#ifndef NO_IPV6 100 struct addrinfo hints, *ai; 115 } 116#endif /* NO_IPV6 */ 117ioctl.c https://gitlab.com/Orvillo/Tomato | 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_Hip_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}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 94ntpd-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'.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) */ 90DHTSetup.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 }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@pmd-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~~~~xt_ecn.c https://gitlab.com/CadeLaRen/linux | 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;xt_dccp.c https://gitlab.com/CadeLaRen/linux | 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,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 definingaddrinfo.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 */timers.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 */inetpeer.h https://gitlab.com/abhishekr700/ZE550KL_KERNEL | C Header | 186 lines
14#include <linux/rtnetlink.h> 15#include <net/ipv6.h> 16#include <linux/atomic.h>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,ip_set.h https://gitlab.com/CadeLaRen/linux | 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,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 Tablesip_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)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'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 */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_;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: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");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) {xfrm6_state.c https://gitlab.com/rychly/nst-linux-sources | 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); 152ipmr_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 */NetworkAdmin.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 232 lines
109 110 public boolean hasIPV6Potential() {return hasIPV6Potential(false);} 111 112 public abstract boolean 113 hasIPV6Potential(boolean forNIO); 114 206 207 public abstract boolean hasDHTIPV6(); 208network_fix_ipv6_test.rb https://gitlab.com/thomasphillips3/vagrant | Ruby | 165 lines
3 4describe VagrantPlugins::ProviderVirtualBox::Action::NetworkFixIPv6 do 5 include_context "unit" 37 38 context "with IPv6 interfaces" do 39 let(:socket) { double("socket") } 52 all_networks = [{name: "vboxnet0", 53 ipv6: "dead:beef::", 54 ipv6_prefix: 64, 57 {name: "vboxnet1", 58 ipv6: "badd:badd::", 59 ipv6_prefix: 64, 70 expect(socket).to have_received(:connect) 71 .with(all_networks[0][:ipv6] + (['ffff']*4).join(':'), 80) 72 endsocket.h https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C Header | 227 lines
202#define SOL_UDP 17 203#define SOL_IPV6 41 204#define SOL_ICMPV6 58skbuff.h https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C Header | 166 lines
119 struct iphdr *ipiph; 120 struct ipv6hdr *ipv6h; 121 unsigned char *raw; 125 struct iphdr *iph; 126 struct ipv6hdr *ipv6h; 127 struct arphdr *arph;StatsView.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 457 lines
155 156 if (NetworkAdmin.getSingleton().hasDHTIPV6()) { 157 pluginUI.addView(UISWTInstance.VIEW_STATISTICS, DHTView.MSGID_PREFIXipc.proto https://gitlab.com/dawei101/ocserv | Protocol Buffers | 306 lines
40 optional string ipv4_netmask = 18; 41 optional string ipv6_net = 19; 42 optional uint32 ipv6_prefix = 20; 48 optional string explicit_ipv4 = 26; 49 optional string explicit_ipv6 = 27; 50 repeated string no_routes = 28; 50 repeated string no_routes = 28; 51 optional uint32 ipv6_subnet_prefix = 29; 52 optional uint32 dpd = 30; 75 optional string ipv4 = 7; 76 optional string ipv6 = 8; 77 optional string ipv4_local = 9; 77 optional string ipv4_local = 9; 78 optional string ipv6_local = 10; 79xt_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;flow.h https://gitlab.com/envieidoc/sprd_project | 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 };ppp.c https://gitlab.com/envieidoc/tomato | C | 245 lines
150 151#ifdef TCONFIG_IPV6 152int ip6up_main(int argc, char **argv) 185} 186#endif // IPV6 187clnt.h https://gitlab.com/envieidoc/sprd_project | C Header | 172 lines
25#include <linux/path.h> 26#include <net/ipv6.h> 27status-data.jsx https://gitlab.com/envieidoc/advancedtomato2 | JSX | 137 lines
79 80/* IPV6-BEGIN */ 81 stats.ip6_wan = ((typeof(sysinfo.ip6_wan) != 'undefined') ? sysinfo.ip6_wan : '') + ''; 83 stats.ip6_lan_ll = ((typeof(sysinfo.ip6_lan_ll) != 'undefined') ? sysinfo.ip6_lan_ll : '') + ''; 84/* IPV6-END */ 85checksum.h https://gitlab.com/webhaikal/SenseiOneplus3 | 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"if_ether.h https://gitlab.com/pine64-android/brandy | C Header | 126 lines
64#define ETH_P_IPX 0x8137 /* IPX over DIX */ 65#define ETH_P_IPV6 0x86DD /* IPv6 over bluebook */ 66#define ETH_P_PAUSE 0x8808 /* IEEE Pause frames. See 802.3 31B */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 */sysctl.c https://gitlab.com/envieidoc/tomato | C | 285 lines
132 case EACCES: 133 /* Happens for write-only settings, e.g. net.ipv6.route.flush */ 134 goto end;basehttp.py https://gitlab.com/areema/myproject | Python | 198 lines
70 def __init__(self, *args, **kwargs): 71 if kwargs.pop('ipv6', False): 72 self.address_family = socket.AF_INET6 181 182def run(addr, port, wsgi_handler, ipv6=False, threading=False): 183 server_address = (addr, port) 187 httpd_cls = WSGIServer 188 httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6) 189 if threading:mroute6.h https://gitlab.com/culot/kernel_lge_madai | C Header | 269 lines
121 122#ifdef CONFIG_IPV6_MROUTE 123static inline int ip6_mroute_opt(int opt) 135 136#ifdef CONFIG_IPV6_MROUTE 137extern int ip6_mroute_setsockopt(struct sock *, int, char __user *, unsigned int); 234 235#ifdef CONFIG_IPV6_MROUTE 236extern struct sock *mroute6_socket(struct net *net, struct sk_buff *skb); 251 * Structure used to communicate from kernel to multicast router. 252 * We'll overlay the structure onto an MLD header (not an IPv6 heder like igmpmsg{} 253 * used for IPv4 implementation). This is because this structure will be passed via an 253 * used for IPv4 implementation). This is because this structure will be passed via an 254 * IPv6 raw socket, on which an application will only receiver the payload i.e the data after 255 * the IPv6 header and all the extension headers. (See section 3 of RFC 3542)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;smrf.c https://gitlab.com/rdeterre/contiki | C | 214 lines
45#include "contiki-net.h" 46#include "net/ipv6/multicast/uip-mcast6.h" 47#include "net/ipv6/multicast/uip-mcast6-route.h" 47#include "net/ipv6/multicast/uip-mcast6-route.h" 48#include "net/ipv6/multicast/uip-mcast6-stats.h" 49#include "net/ipv6/multicast/smrf.h" 72/*---------------------------------------------------------------------------*/ 73/* uIPv6 Pointers */ 74/*---------------------------------------------------------------------------*/ 90 rpl_dag_t *d; /* Our DODAG */ 91 uip_ipaddr_t *parent_ipaddr; /* Our pref. parent's IPv6 address */ 92 const uip_lladdr_t *parent_lladdr; /* Our pref. parent's LL address */enh_desc.c https://gitlab.com/CadeLaRen/linux | C | 454 lines
150 x->ipv4_pkt_rcvd++; 151 if (rdes4 & ERDES4_IPV6_PKT_RCVD) 152 x->ipv6_pkt_rcvd++;Makefile https://gitlab.com/lede/lede-noltari-staging | Makefile | 185 lines
53 TITLE += (with DHCPv6 support) 54 DEPENDS+=@IPV6 55 VARIANT:=dhcpv6 95 bool "Build with DHCPv6 support." 96 depends on IPV6 && PACKAGE_dnsmasq_full_dhcp 97 default y 124 125COPTS = $(if $(CONFIG_IPV6),,-DNO_IPV6) 126MIPv6CDSMobileNode.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;droplet_actions.go https://gitlab.com/github-cloud-corporation/machine | Go | 238 lines
29 ChangeKernel(int, int) (*Action, *Response, error) 30 EnableIPv6(int) (*Action, *Response, error) 31 EnablePrivateNetworking(int) (*Action, *Response, error) 151 152// EnableIPv6 enables IPv6 for a droplet. 153func (s *DropletActionsServiceOp) EnableIPv6(id int) (*Action, *Response, error) { 153func (s *DropletActionsServiceOp) EnableIPv6(id int) (*Action, *Response, error) { 154 request := &ActionRequest{"type": "enable_ipv6"} 155 return s.doAction(id, request)net-listener.h https://gitlab.com/storedmirrors/qemu | C Header | 186 lines
40 * listening socket. It is able to listen on multiple sockets 41 * concurrently, to deal with the scenario where IPv4 / IPv6 42 * needs separate sockets, or there is a need to listen on aiovec.c https://gitlab.com/tibmeister52761/bbb-kernel | C | 264 lines
15 * Alexey Kuznetsov: 2.1 optimisations 16 * Andi Kleen : Fix csum*fromiovecend for IPv6. 17 */url.py https://gitlab.com/gregtyka/frankenserver | Python | 212 lines
169 170 # IPv6 171 if url and url[0] == '[':ifconfig.sh https://gitlab.com/storedmirrors/minix | Shell | 234 lines
23# IPv4: 10.53.0.{1..8} RFC 1918 24# IPv6: fd92:7065:b8e:ffff::{1..8} ULA 25#iprawsock_test.go https://gitlab.com/4144/gcc | Go | 193 lines
16// golang.org/x/net/ipv4 17// golang.org/x/net/ipv6 18// golang.org/x/net/icmp 33 {"ip6", "::1", &IPAddr{IP: ParseIP("::1")}, nil}, 34 {"ip6:ipv6-icmp", "::1", &IPAddr{IP: ParseIP("::1")}, nil}, 35 {"ip6:IPv6-ICMP", "::1", &IPAddr{IP: ParseIP("::1")}, nil}, 52 {"ip6", "::ffff:127.0.0.1", nil, &AddrError{Err: errNoSuitableAddress.Error(), Addr: "::ffff:127.0.0.1"}}, 53 {"ip6:ipv6-icmp", "127.0.0.1", nil, &AddrError{Err: errNoSuitableAddress.Error(), Addr: "127.0.0.1"}}, 54 {"ip6:ipv6-icmp", "::ffff:127.0.0.1", nil, &AddrError{Err: errNoSuitableAddress.Error(), Addr: "::ffff:127.0.0.1"}},net_stats.h https://gitlab.com/david.furminieux/zephyr-os | C Header | 264 lines
135 136struct net_stats_ipv6_nd { 137 net_stats_t drop; 196 197#if defined(CONFIG_NET_IPV6) 198 struct net_stats_ip ipv6; 198 struct net_stats_ip ipv6; 199#define NET_STATS_IPV6(s) NET_STATS(s) 200#else 200#else 201#define NET_STATS_IPV6(s) 202#endif 227#if defined(CONFIG_NET_IPV6_ND) 228 struct net_stats_ipv6_nd ipv6_nd; 229#define NET_STATS_IPV6_ND(s) NET_STATS(s)listen_addr.go https://gitlab.com/vectorci/docker-1 | Go | 183 lines
130 } else { 131 // IPv6 132 if interfaceAddr6 != nil { 132 if interfaceAddr6 != nil { 133 return nil, fmt.Errorf("interface %s has more than one IPv6 address (%s and %s)", specifiedInterface, interfaceAddr6, ipAddr.IP) 134 } 140 if interfaceAddr4 == nil && interfaceAddr6 == nil { 141 return nil, fmt.Errorf("interface %s has no usable IPv4 or IPv6 address", specifiedInterface) 142 } 144 // In the case that there's exactly one IPv4 address 145 // and exactly one IPv6 address, favor IPv4 over IPv6. 146 if interfaceAddr4 != nil {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{conversion.py https://gitlab.com/billyprice1/tribler | Python | 256 lines
8ADDRESS_TYPE_DOMAIN_NAME = 0x03 9ADDRESS_TYPE_IPV6 = 0x04 10 58 @param frag: 59 @param address_type: whether we deal with an IPv4 or IPv6 address 60 @param str destination_address: the destination host 125 data = socket.inet_aton(address) 126 elif address_type == ADDRESS_TYPE_IPV6: 127 raise IPV6AddrError() 131 raise ValueError( 132 "address_type must be either IPv4, IPv6 or a domain name") 133 145 offset += domain_length 146 elif address_type == ADDRESS_TYPE_IPV6: 147 raise IPV6AddrError()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.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-INET60.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 270sixlowpan-iphc-test.cc https://gitlab.com/msepahkar/location_in_wireless_ndn | C++ | 214 lines
51 //IPV6 52 Ptr<Ipv6L3Protocol> ipv6 = CreateObject<Ipv6L3Protocol> (); 53 //Routing for Ipv6 55 ipv6->SetRoutingProtocol (ipv6Routing); 56 Ptr<Ipv6StaticRouting> ipv6staticRouting = CreateObject<Ipv6StaticRouting> (); 57 ipv6Routing->AddRoutingProtocol (ipv6staticRouting, 0); 147 uint32_t netdev_idx = ipv6->AddInterface (rxSix); 148 Ipv6InterfaceAddress ipv6Addr = Ipv6InterfaceAddress (Ipv6Address ("2001:0100::1"), Ipv6Prefix (64)); 149 ipv6->AddAddress (netdev_idx, ipv6Addr); 166 167 Ptr<Ipv6> ipv6 = txNode->GetObject<Ipv6> (); 168 ipv6->AddInterface (txDev); 169 uint32_t netdev_idx = ipv6->AddInterface (txSix); 170 Ipv6InterfaceAddress ipv6Addr = Ipv6InterfaceAddress (Ipv6Address ("2001:0100::2"), Ipv6Prefix (64)); 171 ipv6->AddAddress (netdev_idx, ipv6Addr);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;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 76core.c https://gitlab.com/CadeLaRen/linux | C | 270 lines
50 51#include <net/ipv6.h> 52 103 memset(ldev->broadcast, 0xff, IEEE802154_ADDR_LEN); 104 /* We need an ipv6hdr as minimum len when calling xmit */ 105 ldev->hard_header_len = sizeof(struct ipv6hdr); 153 * for encryption/fcs handling. The lowpan interface will replace 154 * the IPv6 header with 6LoWPAN header. At worst case the 6LoWPAN 155 * header has LOWPAN_IPHC_MAX_HEADER_LEN more bytes than the IPv6Lite.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. 386ip6_input.c https://gitlab.com/envieidoc/tomato | C | 322 lines
1/* 2 * IPv6 input 3 * Linux INET6 implementation 20 * Mitsuru KANDA @USAGI and 21 * YOSHIFUJI Hideaki @USAGI: Remove ipv6_parse_exthdrs(). 22 */ 34#include <linux/netfilter.h> 35#include <linux/netfilter_ipv6.h> 36 39 40#include <net/ipv6.h> 41#include <net/protocol.h> 58 59int ipv6_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, struct net_device *orig_dev) 60{endianness.h https://gitlab.com/vg/netsukuku-c | C Header | 109 lines
37#define INT_TYPE_WORDS (1<<2) /* The int var is composed by an array of ints, 38 like the ipv6 ip (struct in6_addr) */ 39#define INT_TYPE_NETWORK (1<<3) /* The int var is stored in network order */utils.js https://gitlab.com/nodegraph/ngsexternal | JavaScript | 183 lines
25// $1 $2 26internals.hostHeaderRegex = /^(?:(?:\r\n)?\s)*((?:[^:]+)|(?:\[[^\]]+\]))(?::(\d+))?(?:(?:\r\n)?\s)*$/; // (IPv4, hostname)|(IPv6) 27in.h https://gitlab.com/thomasphillips3/How-to-Make-a-Computer-Operating-System | C Header | 102 lines
21#define IPPROTO_IP IPPROTO_IP 22 IPPROTO_HOPOPTS = 0, /* IPv6 Hop-by-Hop options. */ 23#define IPPROTO_HOPOPTS IPPROTO_HOPOPTS 43#define IPPROTO_DCCP IPPROTO_DCCP 44 IPPROTO_IPV6 = 41, /* IPv6 header. */ 45#define IPPROTO_IPV6 IPPROTO_IPV6 45#define IPPROTO_IPV6 IPPROTO_IPV6 46 IPPROTO_ROUTING = 43, /* IPv6 routing header. */ 47#define IPPROTO_ROUTING IPPROTO_ROUTING 47#define IPPROTO_ROUTING IPPROTO_ROUTING 48 IPPROTO_FRAGMENT = 44, /* IPv6 fragmentation header. */ 49#define IPPROTO_FRAGMENT IPPROTO_FRAGMENT 59#define IPPROTO_ICMPV6 IPPROTO_ICMPV6 60 IPPROTO_NONE = 59, /* IPv6 no next header. */ 61#define IPPROTO_NONE IPPROTO_NONEip6_misc.h https://gitlab.com/f1ssi0n/sniffles | C Header | 163 lines
39 40#if defined(__MINGW32__) && defined(DEFINE_ADDITIONAL_IPV6_STUFF) 41/* IPv6 address */ 65 66#if defined(__MINGW32__) && defined(DEFINE_ADDITIONAL_IPV6_STUFF) 67 70 71/* Ditto, for IPv6. */ 72struct sockaddr_in6 106/* 107 * IPV6 extension headers 108 */ 109#define IPPROTO_HOPOPTS 0 /* IPv6 hop-by-hop options */ 110#define IPPROTO_IPV6 41 /* IPv6 header. */ 111#define IPPROTO_ROUTING 43 /* IPv6 routing header */id_payload.c https://gitlab.com/freedmpure/strongswan | C | 469 lines
168 if ((this->type == PLV1_NAT_OA || this->type == PLV1_NAT_OA_DRAFT_00_03) && 169 this->id_type != ID_IPV4_ADDR && this->id_type != ID_IPV6_ADDR) 170 { 180 break; 181 case ID_IPV6_ADDR_RANGE: 182 case ID_IPV6_ADDR_SUBNET: 297 break; 298 case ID_IPV6_ADDR_SUBNET: 299 if (this->id_data.len == 32) 300 { 301 return get_ts_from_subnet(this, TS_IPV6_ADDR_RANGE); 302 } 309 break; 310 case ID_IPV6_ADDR_RANGE: 311 if (this->id_data.len == 32)DcFailCause.java https://gitlab.com/Atomic-ROM/frameworks_opt_telephony | Java | 135 lines
47 ONLY_IPV4_ALLOWED(0x32), /* no retry */ 48 ONLY_IPV6_ALLOWED(0x33), /* no retry */ 49 ONLY_SINGLE_BEARER_ALLOWED(0x34), 61 PDP_FAIL_IPV4_CALL_THROTTLED(-7), 62 PDP_FAIL_IPV6_CALL_THROTTLED(-8), 63 108 (this == SERVICE_OPTION_NOT_SUBSCRIBED) || (this == NSAPI_IN_USE) || 109 (this == ONLY_IPV4_ALLOWED) || (this == ONLY_IPV6_ALLOWED) || 110 (this == RADIO_POWER_OFF) || (this == TETHERED_CALL_ACTIVE) || 121 (this == SERVICE_OPTION_OUT_OF_ORDER) || (this == NSAPI_IN_USE) || 122 (this == ONLY_IPV4_ALLOWED) || (this == ONLY_IPV6_ALLOWED) || 123 (this == PROTOCOL_ERRORS) || (this == SIGNAL_LOST) ||if2ip.c https://gitlab.com/WoomyNightClub/dolphin | C | 272 lines
63/* Return the scope of the given address. */ 64unsigned int Curl_ipv6_scope(const struct sockaddr *sa) 65{ 65{ 66#ifndef ENABLE_IPV6 67 (void) sa; 75 case 0xFE80: 76 return IPV6_SCOPE_LINKLOCAL; 77 case 0xFEC0: 77 case 0xFEC0: 78 return IPV6_SCOPE_SITELOCAL; 79 case 0x0000: 83 break; 84 return IPV6_SCOPE_NODELOCAL; 85 default: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' ); 74readme.adoc https://gitlab.com/joanq/SMX-M7-Serveis | AsciiDoc | 274 lines
65*** Configuració «stateless» + DHCP (Només IPv6) 66*** Configuració DHCP (IPv4 i IPv6) 67**** Assignació *dinà mica d'interval*.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)*/ 29handler.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) 191ip6t_frag.c https://gitlab.com/culot/kernel_lge_madai | C | 136 lines
11#include <linux/skbuff.h> 12#include <linux/ipv6.h> 13#include <linux/types.h> 14#include <net/checksum.h> 15#include <net/ipv6.h> 16 17#include <linux/netfilter/x_tables.h> 18#include <linux/netfilter_ipv6/ip6_tables.h> 19#include <linux/netfilter_ipv6/ip6t_frag.h> 21MODULE_LICENSE("GPL"); 22MODULE_DESCRIPTION("Xtables: IPv6 fragment match"); 23MODULE_AUTHOR("Andras Kis-Szabo <kisza@sch.bme.hu>"); 45 46 err = ipv6_find_hdr(skb, &ptr, NEXTHDR_FRAGMENT, NULL); 47 if (err < 0) {helpdesk.js https://gitlab.com/billyprice1/source | JavaScript | 258 lines
6//GIGO.list_of_ipv4 = ["a", "ds4", "test_ipv4"]; 7//GIGO.list_of_ipv6 = ["aaaa", "ds6", "test_ipv6","test_v6mtu"]; 8 47 var t = "b"; 48 if ((GIGO.results.ipv6) && (GIGO.results.ipv6.ip)) { 49 t = "g"; // By default it must have a global address, right? 169 } 170 if ((GIGO.results.tests.test_ipv6) && (GIGO.results.tests.test_ipv6.status) && (GIGO.results.tests.test_ipv6.status === "timeout")) { 171 return "IPv6: broken"; 217 } 218 if ((GIGO.results.ipv6) && (GIGO.results.ipv6.ip)) { 219 div.append(jQuery("<div>").text("IPv6 address: " + GIGO.results.ipv6.ip)); 254 // First time replaced, will be before the "other sites" tab starts. 255 // If we have IPV6, then it should say "checking other sites.." 256 // And perhaps update only when done?