PageRenderTime 16ms queryFilters 38ms Sphinxql 500ms GetByIds 55ms meta 0ms repositoryFilters 2ms languageFilters 2ms sourceFilters 1ms

600,532 results for 'ipv6 repo:evzijst/gittest' (16 ms)

Source

Language

Repository

IPv6.php https://github.com/davodey/WordPress.git | PHP | 277 lines
183	/**
184	 * Splits an IPv6 address into the IPv6 and IPv4 representation parts
185	 *
223		$ipv4 = explode('.', $ipv4);
224		if (count($ipv6) === 8 && count($ipv4) === 1 || count($ipv6) === 6 && count($ipv4) === 4)
225		{
225		{
226			foreach ($ipv6 as $ipv6_part)
227			{
236				// Remove leading zeros (this is safe because of the above)
237				$ipv6_part = ltrim($ipv6_part, '0');
238				if ($ipv6_part === '')
266	 * @codeCoverageIgnore
267	 * @deprecated Use {@see SimplePie_Net_IPv6::check_ipv6()} instead
268	 * @see check_ipv6
IPv6.php https://github.com/mtruels/wtopf.git | PHP | 277 lines
183	/**
184	 * Splits an IPv6 address into the IPv6 and IPv4 representation parts
185	 *
223		$ipv4 = explode('.', $ipv4);
224		if (count($ipv6) === 8 && count($ipv4) === 1 || count($ipv6) === 6 && count($ipv4) === 4)
225		{
225		{
226			foreach ($ipv6 as $ipv6_part)
227			{
236				// Remove leading zeros (this is safe because of the above)
237				$ipv6_part = ltrim($ipv6_part, '0');
238				if ($ipv6_part === '')
266	 * @codeCoverageIgnore
267	 * @deprecated Use {@see SimplePie_Net_IPv6::check_ipv6()} instead
268	 * @see check_ipv6
ipv6.py https://github.com/sargun/netaddr.git | Python | 267 lines
6"""
7IPv6 address logic.
8"""
54#: A friendly string name address type.
55family_name = 'IPv6'
56
71
72#: A dictionary mapping IPv6 CIDR prefixes to the equivalent netmasks.
73prefix_to_netmask = dict(
99
100class ipv6_full(ipv6_compact):
101    """An IPv6 dialect class - 'all zeroes' form."""
105
106class ipv6_verbose(ipv6_compact):
107    """An IPv6 dialect class - extra wide 'all zeroes' form."""
ipv6.h https://github.com/dreamsxin/REACT-CPP.git | C++ Header | 235 lines
1/**
2 *  Ipv6.h
3 *
29     */
30    Ipv6()
31    {
39     */
40    Ipv6(const Ipv6 &ip)
41    {
49     */
50    Ipv6(Ipv6 &&ip)
51    {
153     */
154    Ipv6 &operator=(const Ipv6 &address)
155    {
ipv6.py https://github.com/dreibh/planetlab-lxc-nodemanager.git | Python | 299 lines
14  have native IPv6 auto-configuration.
15* The ipv6_address in 'sliversipv6prefix' tag value can be any valid IPv6 address.
16  E.g., 2002:1000:: or 2002:1000::1
242                    valid_prefix = False
243                    #logger.log("ipv6: len(ipv6addrprefix)=%s" % (len(ipv6addrprefix)) )
244                    if len(ipv6addrprefix)>1:
252                        valid_prefix = False
253                    #logger.log("ipv6: '%s'=%s" % (sliversipv6prefixtag,ipv6addr) )
254                    valid_ipv6 = tools.is_valid_ipv6(ipv6addr)
255                    if not(valid_ipv6):
256                        logger.log("ipv6: the 'sliversipv6prefix' tag presented a non-valid IPv6 address!")
257                    elif not(valid_prefix):
266                            dom = parseString(xmldesc)
267                            has_ipv6 = check_for_ipv6(dom)
268                            if has_ipv6:
IPv6.php https://github.com/elantrix/simplepie.git | PHP | 277 lines
183	/**
184	 * Splits an IPv6 address into the IPv6 and IPv4 representation parts
185	 *
223		$ipv4 = explode('.', $ipv4);
224		if (count($ipv6) === 8 && count($ipv4) === 1 || count($ipv6) === 6 && count($ipv4) === 4)
225		{
225		{
226			foreach ($ipv6 as $ipv6_part)
227			{
236				// Remove leading zeros (this is safe because of the above)
237				$ipv6_part = ltrim($ipv6_part, '0');
238				if ($ipv6_part === '')
266	 * @codeCoverageIgnore
267	 * @deprecated Use {@see SimplePie_Net_IPv6::check_ipv6()} instead
268	 * @see check_ipv6
decode-ipv6.c https://github.com/gozzy/suricata.git | C | 1,002 lines
474                {
475                    p->IPV6_EXTHDRS[p->IPV6_EH_CNT].type = nh;
476                    p->IPV6_EXTHDRS[p->IPV6_EH_CNT].next = IPPROTO_NONE;
619        SCLogDebug("IPV6 %s->%s - CLASS: %" PRIu32 " FLOW: %" PRIu32 " NH: %" PRIu32 " PLEN: %" PRIu32 " HLIM: %" PRIu32 "", s,d,
620                IPV6_GET_CLASS(p), IPV6_GET_FLOW(p), IPV6_GET_NH(p), IPV6_GET_PLEN(p),
621                IPV6_GET_HLIM(p));
644            IPV6_SET_L4PROTO(p, IPPROTO_IPIP);
645            DecodeIPv4inIPv6(tv, dtv, p, pkt + IPV6_HEADER_LEN, IPV6_GET_PLEN(p), pq);
646            return TM_ECODE_OK;
659        case IPPROTO_SHIM6:
660            DecodeIPV6ExtHdrs(tv, dtv, p, pkt + IPV6_HEADER_LEN, IPV6_GET_PLEN(p), pq);
661            break;
994    UtRegisterTest("DecodeIPV6RouteTest01", DecodeIPV6RouteTest01, 1);
995    UtRegisterTest("DecodeIPV6HopTest01", DecodeIPV6HopTest01, 1);
996#endif /* UNITTESTS */
decode-ipv6.c https://github.com/pyrrus33/suricata.git | C | 930 lines
426                    p->IPV6_EXTHDRS[p->IPV6_EH_CNT].next = IPPROTO_NONE;
427                    p->IPV6_EXTHDRS[p->IPV6_EH_CNT].len = hdrextlen;
428                    p->IPV6_EXTHDRS[p->IPV6_EH_CNT].data = pkt+2;
554        SCLogDebug("IPV6 %s->%s - CLASS: %" PRIu32 " FLOW: %" PRIu32 " NH: %" PRIu32 " PLEN: %" PRIu32 " HLIM: %" PRIu32 "", s,d,
555                IPV6_GET_CLASS(p), IPV6_GET_FLOW(p), IPV6_GET_NH(p), IPV6_GET_PLEN(p),
556                IPV6_GET_HLIM(p));
579            IPV6_SET_L4PROTO(p, IPPROTO_IPIP);
580            DecodeIPv4inIPv6(tv, dtv, p, pkt + IPV6_HEADER_LEN, IPV6_GET_PLEN(p), pq);
581            return TM_ECODE_OK;
591        case IPPROTO_ESP:
592            DecodeIPV6ExtHdrs(tv, dtv, p, pkt + IPV6_HEADER_LEN, IPV6_GET_PLEN(p), pq);
593            break;
922    UtRegisterTest("DecodeIPV6RouteTest01", DecodeIPV6RouteTest01, 1);
923    UtRegisterTest("DecodeIPV6HopTest01", DecodeIPV6HopTest01, 1);
924#endif /* UNITTESTS */
loose-routing-ipv6.cc https://github.com/scarletttu/ns-3-codel-dev.git | C++ | 172 lines
107  ipv6.NewNetwork (Ipv6Address ("2001:1::"), 64);
108  Ipv6InterfaceContainer i1 = ipv6.Assign (d1);
109  i1.SetRouter (1, true);
115  ipv6.NewNetwork (Ipv6Address ("2001:3::"), 64);
116  Ipv6InterfaceContainer i3 = ipv6.Assign (d3);
117  i3.SetRouter (0, true);
120  ipv6.NewNetwork (Ipv6Address ("2001:4::"), 64);
121  Ipv6InterfaceContainer i4 = ipv6.Assign (d4);
122  i4.SetRouter (0, true);
125  ipv6.NewNetwork (Ipv6Address ("2001:5::"), 64);
126  Ipv6InterfaceContainer i5 = ipv6.Assign (d5);
127  i5.SetRouter (0, true);
130  ipv6.NewNetwork (Ipv6Address ("2001:6::"), 64);
131  Ipv6InterfaceContainer i6 = ipv6.Assign (d6);
132  i6.SetRouter (0, true);
ipv6-extension.cc https://github.com/scarletttu/ns-3-codel-dev.git | C++ | 1,057 lines
316
317uint8_t Ipv6ExtensionFragment::Process (Ptr<Packet>& packet, uint8_t offset, Ipv6Header const& ipv6Header, Ipv6Address dst, uint8_t *nextHeader, bool& isDropped)
318{
713
714uint8_t Ipv6ExtensionRouting::Process (Ptr<Packet>& packet, uint8_t offset, Ipv6Header const& ipv6Header, Ipv6Address dst, uint8_t *nextHeader, bool& isDropped)
715{
854
855uint8_t Ipv6ExtensionLooseRouting::Process (Ptr<Packet>& packet, uint8_t offset, Ipv6Header const& ipv6Header, Ipv6Address dst, uint8_t *nextHeader, bool& isDropped)
856{
1007
1008uint8_t Ipv6ExtensionESP::Process (Ptr<Packet>& packet, uint8_t offset, Ipv6Header const& ipv6Header, Ipv6Address dst, uint8_t *nextHeader, bool& isDropped)
1009{
1045
1046uint8_t Ipv6ExtensionAH::Process (Ptr<Packet>& packet, uint8_t offset, Ipv6Header const& ipv6Header, Ipv6Address dst, uint8_t *nextHeader, bool& isDropped)
1047{
ipv6-interface-container.cc https://github.com/scarletttu/ns-3-codel-dev.git | C++ | 122 lines
62
63void Ipv6InterfaceContainer::Add (Ptr<Ipv6> ipv6, uint32_t interface)
64{
69{
70  Ptr<Ipv6> ipv6 = Names::Find<Ipv6> (ipv6Name);
71  m_interfaces.push_back (std::make_pair (ipv6, interface));
90      /* assume first global address is index 1 (0 is link-local) */
91      Ipv6Address routerAddress = ipv6->GetAddress (m_interfaces[i].second, 1).GetAddress ();
92
109{
110  Ptr<Ipv6> ipv6 = m_interfaces[i].first;
111  Ptr<Ipv6> ipv6Router = m_interfaces[router].first;
111  Ptr<Ipv6> ipv6Router = m_interfaces[router].first;
112  Ipv6Address routerAddress = ipv6Router->GetAddress (m_interfaces[router].second, 1).GetAddress ();
113  Ptr<Ipv6StaticRouting> routing = 0;
compute-configure-ipv6.xml https://github.com/Ashok2988/openstack-manuals.git | XML | 63 lines
1<section xml:id="configuring-compute-to-use-ipv6-addresses"
2         xmlns="http://docbook.org/ns/docbook"
8         xmlns:ns="http://docbook.org/ns/docbook">
9  <title>Configuring Compute to use IPv6 Addresses</title>
10   <para>You can configure Compute to use both IPv4 and IPv6 addresses for
10   <para>You can configure Compute to use both IPv4 and IPv6 addresses for
11    communication by putting it into a IPv4/IPv6 dual stack mode. In IPv4/IPv6
12    dual stack mode, instances can acquire their IPv6 global unicast address
13    by stateless address autoconfiguration mechanism [RFC 4862/2462].
14    IPv4/IPv6 dual stack mode works with <literal>VlanManager</literal> and <literal>FlatDHCPManager</literal>
15    networking modes. In <literal>VlanManager</literal>, different 64bit global routing prefix is used for
19    <para>This configuration has been tested with VM images
20    that have IPv6 stateless address autoconfiguration capability (must use
21    EUI-64 address for stateless address autoconfiguration), a requirement for
21    EUI-64 address for stateless address autoconfiguration), a requirement for
22    any VM you want to run with an IPv6 address. Each node that executes a
23    <literal>nova-*</literal> service must have <literal>python-netaddr</literal>
decode-ipv6.c https://github.com/chamaillard/suricata.git | C | 872 lines
222                    p->IPV6_EXTHDRS[p->IPV6_EH_CNT].len = hdrextlen;
223                    p->IPV6_EXTHDRS[p->IPV6_EH_CNT].data = pkt+2;
224                    p->IPV6_EH_CNT++;
547        SCLogDebug("IPV6 %s->%s - CLASS: %" PRIu32 " FLOW: %" PRIu32 " NH: %" PRIu32 " PLEN: %" PRIu32 " HLIM: %" PRIu32 "", s,d,
548                IPV6_GET_CLASS(p), IPV6_GET_FLOW(p), IPV6_GET_NH(p), IPV6_GET_PLEN(p),
549                IPV6_GET_HLIM(p));
569            IPV6_SET_L4PROTO(p, IPPROTO_IPIP);
570            return DecodeIPv4inIPv6(tv, dtv, p, pkt + IPV6_HEADER_LEN, IPV6_GET_PLEN(p), pq);
571        case IPPROTO_IPV6:
579        case IPPROTO_ESP:
580            DecodeIPV6ExtHdrs(tv, dtv, p, pkt + IPV6_HEADER_LEN, IPV6_GET_PLEN(p), pq);
581            break;
593        if (rp != NULL) {
594            DecodeIPV6(tv, dtv, rp, (uint8_t *)rp->ip6h, IPV6_GET_PLEN(rp) + IPV6_HEADER_LEN, pq);
595            PacketEnqueue(pq, rp);
IPv6.xml https://github.com/rpwaltz/hazelcast.git | XML | 84 lines
18
19<sect2 xml:id="IPv6" version='5.0' xmlns='http://docbook.org/ns/docbook'
20       xmlns:xi="http://www.w3.org/2001/XInclude"
26    <para>
27    Hazelcast supports IPv6 addresses seamlessly. [<emphasis>IPv6 support has been switched off by default.
28        <link xlink:href="#IPv6-Note">See note below</link></emphasis>]
28        <link xlink:href="#IPv6-Note">See note below</link></emphasis>]
29        All you need is to define IPv6 addresses or interfaces in
30    <link xlink:href="#NetworkConfig">network configuration</link>. Only limitation at the moment is you can not define
30    <link xlink:href="#NetworkConfig">network configuration</link>. Only limitation at the moment is you can not define
31    wildcard IPv6 addresses in <link xlink:href="#ConfigTcpIp">TCP-IP</link> join configuration.
32    <link xlink:href="#ConfigSpecifyInterfaces">Interfaces</link> section does not have this limitation, you can
78    <para>
79        IPv6 support has been switched off by default, since some platforms have issues in use of IPv6 stack. And some other
80        platforms such as Amazon AWS have no support at all. To enable IPv6 support, just set configuration property
packet-ipv6.c https://github.com/labx-technologies-llc/wireshark.git | C | 2,900 lines
1725
1726    ipv6_tc = proto_tree_add_item(ipv6_tree, hf_ipv6_class, tvb,
1727                        offset + (int)offsetof(struct ip6_hdr, ip6_flow), 4, ENC_BIG_ENDIAN);
1728
1729    ipv6_tc_tree = proto_item_add_subtree(ipv6_tc, ett_ipv6_traffic_class);
1730
1758                        offset + (int)offsetof(struct ip6_hdr, ip6_src), 16, ENC_NA);
1759    ti = proto_tree_add_ipv6(ipv6_tree, hf_ipv6_addr, tvb,
1760                              offset + (int)offsetof(struct ip6_hdr, ip6_src),
2820     { &ei_ipv6_opt_rtalert_invalid_len, { "ipv6.opt.router_alert.invalid_len", PI_MALFORMED, PI_ERROR, "Router alert: Invalid Length", EXPFILL }},
2821     { &ei_ipv6_mipv6_home_address_invalid_len, { "ipv6.mipv6_home_address.invalid_len", PI_MALFORMED, PI_ERROR, "Home Address: Invalid length", EXPFILL }},
2822     { &ei_ipv6_shim6_opt_elemlen_invalid, { "ipv6.shim6.opt.elemlen.invalid", PI_MALFORMED, PI_ERROR, "Invalid element length", EXPFILL }},
2858
2859  register_dissector("ipv6", dissect_ipv6, proto_ipv6);
2860  register_init_routine(ipv6_reassemble_init);
ipv6.py https://github.com/tbmike23/django.git | Python | 272 lines
8
9def clean_ipv6_address(ip_str, unpack_ipv4=False,
10        error_message=_("This is not a valid IPv6 address.")):
11    """
12    Cleans an IPv6 address string.
13
13
14    Validity is checked by calling is_valid_ipv6_address() - if an
15    invalid address is passed, ValidationError is raised.
20    Args:
21        ip_str: A valid IPv6 address.
22        unpack_ipv4: if an IPv4-mapped address is found,
26    Returns:
27        A compressed IPv6 address, or the same value
28
README.ipv6 https://github.com/manuvnpro/Snort.git | Unknown | 96 lines
1IPv6
2====
4Snort 2.8 adds optional support for IPv6.  To enable IPv6 support, configure 
5with --enable-ipv6.  Once enabled, Snort will process both IPv4 and IPv6 
6traffic, though some Snort modules are not supported.
8The following preprocessors are specifically supported when Snort is compiled 
9with IPv6 support:
10
21
22IPv6 support is also included for the following.
23    Respond
26
27IPv6 support is not included for the following, but will be 
28added in a future release:
35
36All rule options are supported with IPv6
37    
ipv6-raw-socket-impl.cc https://github.com/scarletttu/ns-3-codel-dev.git | C++ | 415 lines
57
58Ipv6RawSocketImpl::Ipv6RawSocketImpl ()
59{
70
71Ipv6RawSocketImpl::~Ipv6RawSocketImpl ()
72{
139  NS_LOG_FUNCTION_NOARGS ();
140  Ptr<Ipv6L3Protocol> ipv6 = m_node->GetObject<Ipv6L3Protocol> ();
141
207  Inet6SocketAddress ad = Inet6SocketAddress::ConvertFrom (toAddress);
208  Ptr<Ipv6L3Protocol> ipv6 = m_node->GetObject<Ipv6L3Protocol> ();
209  Ipv6Address dst = ad.GetIpv6 ();
310
311bool Ipv6RawSocketImpl::ForwardUp (Ptr<const Packet> p, Ipv6Header hdr, Ptr<NetDevice> device)
312{
ipv6-interface-address.h https://github.com/scarletttu/ns-3-codel-dev.git | C++ Header | 210 lines
80   */
81  Ipv6InterfaceAddress (Ipv6Address address, Ipv6Prefix prefix);
82
86   */
87  Ipv6InterfaceAddress (const Ipv6InterfaceAddress& o);
88
182  friend bool operator == (Ipv6InterfaceAddress const& a, Ipv6InterfaceAddress const& b);
183  friend bool operator != (Ipv6InterfaceAddress const& a, Ipv6InterfaceAddress const& b);
184
193/* follow Ipv4InterfaceAddress way, maybe not inline them */
194inline bool operator == (const Ipv6InterfaceAddress& a, const Ipv6InterfaceAddress& b)
195{
199
200inline bool operator != (const Ipv6InterfaceAddress& a, const Ipv6InterfaceAddress& b)
201{
ipv6-static-routing.h https://github.com/scarletttu/ns-3-codel-dev.git | C++ Header | 306 lines
81   */
82  void AddHostRouteTo (Ipv6Address dest, Ipv6Address nextHop, uint32_t interface, Ipv6Address prefixToUse = Ipv6Address ("::"), uint32_t metric = 0);
83
110   */
111  void AddNetworkRouteTo (Ipv6Address network, Ipv6Prefix networkPrefix, Ipv6Address nextHop, uint32_t interface, Ipv6Address prefixToUse, uint32_t metric = 0);
112
128   */
129  void SetDefaultRoute (Ipv6Address nextHop, uint32_t interface, Ipv6Address prefixToUse = Ipv6Address ("::"), uint32_t metric = 0);
130
235  virtual void NotifyAddRoute (Ipv6Address dst, Ipv6Prefix mask, Ipv6Address nextHop, uint32_t interface, Ipv6Address prefixToUse = Ipv6Address::GetZero ());
236  virtual void NotifyRemoveRoute (Ipv6Address dst, Ipv6Prefix mask, Ipv6Address nextHop, uint32_t interface, Ipv6Address prefixToUse = Ipv6Address::GetZero ());
237  virtual void SetIpv6 (Ptr<Ipv6> ipv6);
275   */
276  Ptr<Ipv6MulticastRoute> LookupStatic (Ipv6Address origin, Ipv6Address group, uint32_t ifIndex);
277
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21