PageRenderTime 1681ms queryTime 149ms sortTime 208ms getByIdsTime 402ms findMatchingLines 247ms

100+ results results for 'ipv6 repo:sewer2/cb-iptables-ng' (1681 ms)

Not the results you expected?
cvmx-wqe.h https://bitbucket.org/droidzone/supernova-kernel.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.
                    
                
xt_set.c https://gitlab.com/cr3pt/nkernel | 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,
                    
                
vector_transports.c https://gitlab.com/deepcypher/linux | 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://gitlab.com/deepcypher/linux | C Header | 362 lines
                    
88#define TCP_MSS_DEFAULT		 536U	/* IPv4 (RFC1122, RFC2581) */
                    
89#define TCP_MSS_DESIRED		1220U	/* IPv6 (tunneled), EDNS0 (RFC3226) */
                    
90
                    
                
ip6t_LOG.c https://github.com/tpruvot/kernel-omap.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/Skylake/Staging | 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 a
                    
                
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
                    
94
                    
                
ipsec_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`,
                    
                
sch_teql.c https://gitlab.com/envieidoc/sprd_project | 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,
                    
                
conn_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 */
                    
117
                    
                
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>
                    
                
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_H
                    
                
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, nil
                    
                
xt_TPROXY.c https://bitbucket.org/jpaglier/cse536-kernel-dev.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;
                    
                
README.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:
                    
                
0.88-protos.patch https://gitlab.com/rindeal/gentoo-cvs-history-archive | Patch | 544 lines
                    
268
                    
269the prototypes are added near the top to avoid conflicts w/ipv6 patch
                    
270
                    
                
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
                    
                
ip_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 */
                    
                
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&lt;rdar://problem/5303807&gt; 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'.
                    
                
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;
                    
                
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_dccp.c https://bitbucket.org/droidzone/supernova-kernel.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,
                    
                
xfrm6_state.c https://bitbucket.org/droidzone/supernova-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
                    
                
pdb.h https://gitlab.com/deepcypher/linux | 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://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;
                    
                
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.conf
                    
                
README.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 defining
                    
                
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;
                    
                
ice_tc_lib.h https://gitlab.com/deepcypher/linux | 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
                    
                
ip6table_filter.c https://github.com/tpruvot/kernel-omap.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,
                    
                
addrinfo.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      }
                    
                
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 */
                    
                
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:
                    
                
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@ \
                    
                
ip_set.h https://bitbucket.org/alfredchen/linux-gc.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,
                    
                
utilities.c https://github.com/freebsd/freebsd.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 = { { {
                    
                
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
                    
                
snmp.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 Tables
                    
                
ares_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 1
                    
                
GHStreamSocketSSL.jvm.cs https://github.com/skolima/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)
                    
                
html-output.cite.html https://gitlab.com/dkg/gmime | HTML | 45 lines
                    
18&gt; - 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&gt; - web url w/ IPv6 domain literals:<br>
                    
20&gt; &nbsp; - <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>
                    
                
functions.sh https://gitlab.com/deepcypher/linux | Shell | 339 lines
                    
178
                    
179# Extend shrunken IPv6 address.
                    
180# fe80::42:bcff:fe84:e10a => fe80:0:0:0:42:bcff:fe84:e10a
                    
                
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 = Pattern
                    
                
nstats-0.4-glibc24.patch https://gitlab.com/kogaion/portage | 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's
                    
                
address.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,
                    
                
resolver_query_base.hpp https://github.com/vinjn/Cinder-portfolio.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.
                    
                
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(dnl
                    
                
ip_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 */
                    
                
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_;
                    
                
ib.h https://github.com/tytso/ext4.git | C Header | 471 lines
                    
59/* This is the common structure for the IB private data exchange in setting up
                    
60 * an RDS connection.  The exchange is different for IPv4 and IPv6 connections.
                    
61 * The reason is that the address size is different and the addresses
                    
                
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;
                    
                
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)
                    
                
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) {
                    
                
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 */
                    
                
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();
                    
208	
                    
                
network_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    end
                    
                
socket.h https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C Header | 227 lines
                    
202#define SOL_UDP 17
                    
203#define SOL_IPV6 41
                    
204#define SOL_ICMPV6 58
                    
                
skbuff.h https://gitlab.com/brian0218/rk3188_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_PREFIX
                    
                
ipc.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;
                    
79
                    
                
ip6_misc.h https://bitbucket.org/minux/freertos.git | 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		*/
                    
                
url.py https://gitlab.com/pooja043/Globus_Docker_2 | Python | 212 lines
                    
169
                    
170    # IPv6
                    
171    if url and url[0] == '[':
                    
                
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
                    
187
                    
                
clnt.h https://gitlab.com/envieidoc/sprd_project | C Header | 172 lines
                    
25#include <linux/path.h>
                    
26#include <net/ipv6.h>
                    
27
                    
                
status-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 */
                    
85
                    
                
flow.h https://gitlab.com/pine64-android/linux-3.10 | 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	};
                    
                
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 */
                    
                
checksum.h https://gitlab.com/pine64-android/linux-3.10 | 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"
                    
                
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 */
                    
                
test-inspector-port-cluster.js https://github.com/isaacs/node.git | JavaScript | 353 lines
                    
74
                    
75  if (common.hasIPv6) {
                    
76    port = debuggerPort + offset++ * 5;
                    
                
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;
                    
                
ipv6.h https://github.com/LucidOne/Rovio.git | C Header | 156 lines
                    
59			       of this header). */
                    
60  uint8_t ipv6_nexthdr;      /* Next header type. */
                    
61  uint8_t ipv6_hoplimit;     /* Hop limit. */
                    
79  uint32_t ipv6_flowid:24;
                    
80  uint8_t ipv6_priority:4; /* going away? */
                    
81  uint8_t ipv6_version:4;
                    
96
                    
97#define IPV6_VERSION(h) ((h)->ipv6_versfl >> 28)
                    
98#define IPV6_PRIORITY(h)  (((h)->ipv6_versfl & 0x0f000000) >> 24)
                    
98#define IPV6_PRIORITY(h)  (((h)->ipv6_versfl & 0x0f000000) >> 24)
                    
99#define IPV6_FLOWID(h)  ((h)->ipv6_versfl & 0x00ffffff)
                    
100
                    
155};
                    
156#endif /* _NETINET6_IPV6_H */
                    
157
                    
                
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++;
                    
                
iovec.c https://github.com/dpavlin/linux.git | C | 264 lines
                    
15 *		Alexey Kuznetsov:	2.1 optimisations
                    
16 *		Andi Kleen	:	Fix csum*fromiovecend for IPv6.
                    
17 */
                    
                
 

Source

Language