100+ results results for 'ipv6 repo:tenderlove/dnssd' (380 ms)
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;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@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;build_android_x86.sh https://code.google.com/p/dolphin-player/ | Shell | 72 lines
44# --sysroot=$PLATFORM \ 45# --extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " \ 46# --disable-shared \ip.go http://goesmtp.googlecode.com/svn/trunk/ | Go | 441 lines
6// 7// IPv4 addresses are 4 bytes; IPv6 addresses are 16 bytes. 8// An IPv4 address can be converted to an IPv6 address by 17 IPv4len = 4 18 IPv6len = 16 19) 28// Note that in this documentation, referring to an 29// IP address as an IPv4 address or an IPv6 address 30// is a semantic property of the address, not just the 40func IPv4(a, b, c, d byte) IP { 41 p := make(IP, IPv6len) 42 for i := 0; i < 10; i++ { 56func IPv4Mask(a, b, c, d byte) IPMask { 57 p := make(IPMask, IPv6len) 58 for i := 0; i < 12; i++ {GHStreamSocketSSL.jvm.cs git://github.com/mono/mono.git | C# | 621 lines
317 { 318 case SocketOptionLevel.IPv6: 319 error = 10042; //WSAENOPROTOOPT (Bad protocol option) 460 { 461 case SocketOptionLevel.IPv6: 462 error = 10042; //WSAENOPROTOOPT (Bad protocol option)xfrm6_state.c git://github.com/CyanogenMod/cm-kernel.git | C | 188 lines
29 ipv6_addr_copy((struct in6_addr *)&x->sel.daddr, &fl->fl6_dst); 30 ipv6_addr_copy((struct in6_addr *)&x->sel.saddr, &fl->fl6_src); 31 x->sel.dport = xfrm_flowi_dport(fl); 43 memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); 44 if (ipv6_addr_any((struct in6_addr*)&x->props.saddr)) 45 memcpy(&x->props.saddr, saddr, sizeof(x->props.saddr)); 96 return 3; 97#if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) 98 case XFRM_MODE_ROUTEOPTIMIZATION: 129 return 1; 130#if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) 131 case XFRM_MODE_ROUTEOPTIMIZATION: 150{ 151 struct ipv6hdr *iph = ipv6_hdr(skb); 152ZDeviceLite.java http://xerela.googlecode.com/svn/trunk/ | Java | 417 lines
292 /** 293 * Get the IPv4 or IPv6 IP address of the device. 294 *extconf.rb http://rubyworks.googlecode.com/svn/trunk/ | Ruby | 283 lines
38default_ipv6 = /cygwin/ !~ RUBY_PLATFORM 39if enable_config("ipv6", default_ipv6) 40 if checking_for("ipv6") {try_link(<<EOF)} 70 have_library(ipv6lib = "inet6") and "zeta" 71 elsif ipv6lib = with_config("ipv6-lib") 72 warn <<EOS 72 warn <<EOS 73--with-ipv6-lib and --with-ipv6-libdir option will be obsolete, use 74--with-inet6lib and --with-inet6-{include,lib} options instead. 75EOS 76 find_library(ipv6lib, nil, with_config("ipv6-libdir", ldirs)) and 77 ipv6lib 221 222Fatal: --enable-ipv6 is specified, and your OS seems to support IPv6 feature. 223But your getaddrinfo() and getnameinfo() are appeared to be broken. Sorry,INET_Addr.inl git://github.com/insider42/mangos.git | C++ Header | 255 lines
22 } 23#if defined (ACE_HAS_IPV6) 24 else if (this->get_type() == AF_INET6) 30 } 31#endif /* ACE_HAS_IPV6 */ 32} 36{ 37#if defined (ACE_HAS_IPV6) 38# if defined (ACE_USES_IPV4_IPV6_MIGRATION) 38# if defined (ACE_USES_IPV4_IPV6_MIGRATION) 39 return ACE::ipv6_enabled () ? AF_INET6 : AF_INET; 40# else 41 return AF_INET6; 42# endif /* ACE_USES_IPV4_IPV6_MIGRATION */ 43#elselogentry.cpp git://github.com/acaudwell/Logstalgia.git | C++ | 286 lines
42 43Regex logentry_ipv6("(?i)^[a-f0-9:]+$"); 44 50 51 // could be an ipv6 address 52 if(logentry_ipv6.match(hostname) && hostname.find(":") != std::string::npos) {address_v6.hpp http://hadesmem.googlecode.com/svn/trunk/ | C++ Header | 0 lines
83 /** 84 * Returns the scope ID associated with the IPv6 address. 85 */ 92 /** 93 * Modifies the scope ID associated with the IPv6 address. 94 */ 202 203 /// Create an IPv4-mapped IPv6 address. 204 BOOST_ASIO_DECL static address_v6 v4_mapped(const address_v4& addr); 205 206 /// Create an IPv4-compatible IPv6 address. 207 BOOST_ASIO_DECL static address_v6 v4_compatible(const address_v4& addr); 209private: 210 // The underlying IPv6 address. 211 boost::asio::detail::in6_addr_type addr_;Core.h git://github.com/gunnarbeutner/shroudbnc.git | C Header | 281 lines
87 CSocketEvents *Listener; /**< IPv4 listener object */ 88 CSocketEvents *ListenerV6; /**< IPv6 listener object */ 89} additionallistener_t;checksum.h git://github.com/torvalds/linux.git | C++ Header | 245 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"config.mk git://github.com/zpao/spidernode.git | Makefile | 201 lines
158 159ifeq ($(USE_IPV6),1) 160DEFINES += -D_PR_INET6100-generic.patch http://wl500g.googlecode.com/svn/trunk/ | Patch | 208 lines
119 #ifdef INET6 120-#define _PATH_IPV6UP _ROOT_PATH "/etc/ppp/ipv6-up" 121-#define _PATH_IPV6DOWN _ROOT_PATH "/etc/ppp/ipv6-down" 121-#define _PATH_IPV6DOWN _ROOT_PATH "/etc/ppp/ipv6-down" 122+#define _PATH_IPV6UP _ROOT_PATH "/ppp/ipv6-up" 123+#define _PATH_IPV6DOWN _ROOT_PATH "/ppp/ipv6-down"server.c git://github.com/welterde/lua-moo.git | C | 160 lines
119 memset(&hints, 0, sizeof hints); 120 hints.ai_family = AF_UNSPEC; // use IPv4 or IPv6, whichever 121 hints.ai_socktype = SOCK_STREAM;tcp.hpp https://code.google.com/p/dreamofgame/ | C++ Header | 163 lines
62 63 /// Construct to represent the IPv6 TCP protocol. 64 static tcp v6()PDNType.java http://mobicents.googlecode.com/svn/trunk/ | Java | 113 lines
39 * IPv6 (1) 40 * This value shall be used to indicate that the PDN can be accessed only in IPv6 mode. 41 * 47 * This value shall be used to indicate that the PDN can be accessed either in IPv4 mode, or in 48 * IPv6 mode, but not from UEs supporting dualstack IPv4v6. It should be noted that this value 49 * will never be used as a requested PDN Type from the UE, since UEs will only use one of their 49 * will never be used as a requested PDN Type from the UE, since UEs will only use one of their 50 * supported PDN Types, i.e., IPv4 only, IPv6 only or IPv4v6 (dualstack). This value is only used 51 * as part of the APN subscription context, as an authorization mechanism between HSS and MME. 68 public static final PDNType IPv4 = new PDNType(_IPv4); 69 public static final PDNType IPv6 = new PDNType(_IPv6); 70 public static final PDNType IPv4v6 = new PDNType(_IPv4v6); 70 public static final PDNType IPv4v6 = new PDNType(_IPv4v6); 71 public static final PDNType IPv4_OR_IPv6 = new PDNType(_IPv4_OR_IPv6); 72GeoIP_impl.h http://urtconnector.googlecode.com/svn/trunk/ | C Header | 253 lines
54/* 128 bit address in network order */ 55typedef struct in6_addr geoipv6_t; 56 160/* */ 161GEOIP_API const char *GeoIP_country_name_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum); 162GEOIP_API const char *GeoIP_country_code_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum); 162GEOIP_API const char *GeoIP_country_code_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum); 163GEOIP_API const char *GeoIP_country_code3_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum); 164 171 172GEOIP_API char *GeoIP_org_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum); 173GEOIP_API char *GeoIP_org_by_addr_v6 (GeoIP* gi, const char *addr); 183GEOIP_API int GeoIP_id_by_name_v6 (GeoIP* gi, const char *host); 184GEOIP_API int GeoIP_id_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum); 185gen_udp.erl git://github.com/erlang/otp.git | Erlang | 286 lines
58 {recvttl, boolean()} | 59 {ipv6_v6only, boolean()}. 60-type option_name() :: 89 pktoptions | 90 ipv6_v6only. 91-type socket() :: port().secure_messages.h git://github.com/zioproto/olsrd-gsoc2012.git | C Header | 201 lines
161/* 162 *IPv6 163 */SOCK_Acceptor.cpp git://github.com/TrinityCore/TrinityCore.git | C++ | 407 lines
141 142 // Reset the size of the addr, so the proper UNIX/IPv4/IPv6 family 143 // is known. 227 228#if defined (ACE_HAS_IPV6) 229 if (protocol_family == PF_INET6) 362 { 363#if defined (ACE_HAS_IPV6) 364 protocol_family = ACE::ipv6_enabled () ? PF_INET6 : PF_INET; 366 protocol_family = PF_INET; 367#endif /* ACE_HAS_IPV6 */ 368 }serverhelp.pm git://github.com/mono/moon.git | Perl | 238 lines
74 75 if($server =~ /^((ftp|http|imap|pop3|smtp)s?)(\d*)(-ipv6|)$/) { 76 $proto = $1; 79 } 80 elsif($server =~ /^(tftp|sftp|socks|ssh|rtsp)(\d*)(-ipv6|)$/) { 81 $proto = $1; 103 die "unsupported IP version: $ipver" unless($ipver && 104 ($ipver =~ /^(4|6|ipv4|ipv6|-ipv4|-ipv6)$/)); 105 $ipver = ($ipver =~ /6$/) ? '-IPv6' : '';prefix.h git://git.savannah.nongnu.org/quagga.git | C Header | 238 lines
148#define IPV6_MAX_PREFIXLEN 128 149#define IPV6_ADDR_CMP(D,S) memcmp ((D), (S), IPV6_MAX_BYTELEN) 150#define IPV6_ADDR_SAME(D,S) (memcmp ((D), (S), IPV6_MAX_BYTELEN) == 0) 150#define IPV6_ADDR_SAME(D,S) (memcmp ((D), (S), IPV6_MAX_BYTELEN) == 0) 151#define IPV6_ADDR_COPY(D,S) memcpy ((D), (S), IPV6_MAX_BYTELEN) 152 209extern struct prefix_ipv6 *prefix_ipv6_new (void); 210extern void prefix_ipv6_free (struct prefix_ipv6 *); 211extern int str2prefix_ipv6 (const char *, struct prefix_ipv6 *); 211extern int str2prefix_ipv6 (const char *, struct prefix_ipv6 *); 212extern void apply_mask_ipv6 (struct prefix_ipv6 *); 213 214#define PREFIX_COPY_IPV6(DST, SRC) \ 215 *((struct prefix_ipv6 *)(DST)) = *((const struct prefix_ipv6 *)(SRC)); 216synaip.pas git://github.com/tristan2468/hgdc-x.git | Pascal | 422 lines
67type 68{:binary form of IPv6 adress (for string conversion routines)} 69 TIp6Bytes = array [0..15] of Byte; 69 TIp6Bytes = array [0..15] of Byte; 70{:binary form of IPv6 adress (for string conversion routines)} 71 TIp6Words = array [0..7] of Word; 75 76{:Returns @TRUE, if "Value" is a valid IPv6 address. Cannot be a symbolic Name!} 77function IsIP6(const Value: string): Boolean; 81 82{:Convert IPv6 address from their string form to binary byte array.} 83function StrToIp6(value: string): TIp6Bytes; 84 85{:Convert IPv6 address from binary byte array to string form.} 86function Ip6ToStr(value: TIp6Bytes): string;wsgi.py git://github.com/mozilla/zamboni-lib.git | Python | 234 lines
80 81 # find host and port on ipv6 address 82 if '[' in forward and ']' in forward:start_agent.c https://bitbucket.org/dcid/ossec-hids/ | C | 284 lines
100 101 /* IPv6 address: */ 102 if(strchr(tmp_str,':') != NULL) 103 { 104 verbose("%s: INFO: Using IPv6 for: %s .", ARGV0, tmp_str); 105 logr->sock = OS_ConnectUDP(logr->port, tmp_str, 1);QAbstractSocket.cs git://pkgs.fedoraproject.org/qyoto | C# | 256 lines
22 IPv4Protocol = 0, 23 IPv6Protocol = 1, 24 UnknownNetworkLayerProtocol = -1,pppopns.c git://github.com/CyanogenMod/cm-kernel.git | C | 357 lines
20 * sequence but without acknowledgement. This driver should work on both IPv4 21 * and IPv6. */ 22bind_addr.c git://github.com/leemgs/samsung-s3c6410-android.1.0.git | C | 465 lines
47#include <net/sock.h> 48#include <net/ipv6.h> 49#include <net/if_inet6.h> 288/* 289 * Create an address list out of the raw address list format (IPv4 and IPv6 290 * address parameters).ssh.erl git://github.com/mfoemmel/erlang-otp.git | Erlang | 339 lines
69 {SocketOpts, Opts} = handle_options(Options), 70 DisableIpv6 = proplists:get_value(ip_v6_disabled, Opts, false), 71 Inet = inetopt(DisableIpv6), 167 end, 168 DisableIpv6 = proplists:get_value(ip_v6_disabled, Options0, false), 169 {Host, Inet, Options} = case HostAddr of 171 {ok, Host0} = inet:gethostname(), 172 {Host0, inetopt(DisableIpv6), Options1}; 173 {_,_,_,_} ->323-skb9-truesize.patch http://wl500g.googlecode.com/svn/trunk/ | Patch | 159 lines
23(ip_fragment: also adjust skb->truesize for packets not owned by a 24socket) to ipv6 as well. 25 34 net/ipv4/ip_output.c | 19 +++++++++++++------ 35 net/ipv6/ip6_output.c | 18 +++++++++++++----- 36 2 files changed, 26 insertions(+), 11 deletions(-) 98 slow_path: 99diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c 100--- a/net/ipv6/ip6_output.c 100--- a/net/ipv6/ip6_output.c 101+++ b/net/ipv6/ip6_output.c 102@@ -614,7 +614,7 @@ static int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *)) 139 skb->len = first_len; 140 ipv6_hdr(skb)->payload_len = htons(first_len - 141 sizeof(struct ipv6hdr));multicast.hpp http://hadesmem.googlecode.com/svn/trunk/ | C++ Header | 0 lines
50typedef boost::asio::ip::detail::socket_option::multicast_request< 51 IPPROTO_IP, IP_ADD_MEMBERSHIP, IPPROTO_IPV6, IPV6_JOIN_GROUP> join_group; 52#endif 75typedef boost::asio::ip::detail::socket_option::multicast_request< 76 IPPROTO_IP, IP_DROP_MEMBERSHIP, IPPROTO_IPV6, IPV6_LEAVE_GROUP> leave_group; 77#endif 100typedef boost::asio::ip::detail::socket_option::network_interface< 101 IPPROTO_IP, IP_MULTICAST_IF, IPPROTO_IPV6, IPV6_MULTICAST_IF> 102 outbound_interface; 134typedef boost::asio::ip::detail::socket_option::multicast_hops< 135 IPPROTO_IP, IP_MULTICAST_TTL, IPPROTO_IPV6, IPV6_MULTICAST_HOPS> hops; 136#endif 168typedef boost::asio::ip::detail::socket_option::multicast_enable_loopback< 169 IPPROTO_IP, IP_MULTICAST_LOOP, IPPROTO_IPV6, IPV6_MULTICAST_LOOP> 170 enable_loopback;save_export.cgi git://github.com/webmin/webmin.git | Perl | 180 lines
44 elsif ($in{'mode'} == 3) { $exp{'host'} = ""; } 45 #Support for IPv6 address and prefix 46 elsif ($in{'mode'} == 6){ProxyHop.java http://gophone.googlecode.com/svn/trunk/ | Java | 158 lines
56 String portString = null; 57 // IPv6 hostport 58 if (hostPort.charAt(0) == '[') { 60 if (rightSqBrackIndex == -1) { 61 throw new IllegalArgumentException("Bad IPv6 reference spec"); 62 } 72 } 73 // IPv6 address and no port 74 else if (hostPort.indexOf(':') != hostPort.lastIndexOf(":")) {udp.c http://amv-codec-tools.googlecode.com/svn/trunk/ | C | 497 lines
25#ifndef IPV6_ADD_MEMBERSHIP 26#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP 27#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP 57 if (addr->sa_family == AF_INET6) { 58 if (setsockopt(sockfd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &mcastTTL, sizeof(mcastTTL)) < 0) { 59 perror("setsockopt(IPV6_MULTICAST_HOPS)"); 67 struct ip_mreq mreq; 68 struct ipv6_mreq mreq6; 69 if (addr->sa_family == AF_INET) { 79 mreq6.ipv6mr_interface= 0; 80 if (setsockopt(sockfd, IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP, &mreq6, sizeof(mreq6)) < 0) { 81 perror("setsockopt(IPV6_ADD_MEMBERSHIP)"); 101 mreq6.ipv6mr_interface= 0; 102 if (setsockopt(sockfd, IPPROTO_IPV6, IPV6_DROP_MEMBERSHIP, &mreq6, sizeof(mreq6)) < 0) { 103 perror("setsockopt(IPV6_DROP_MEMBERSHIP)");INET_Addr.h git://github.com/insider42/mangos.git | C Header | 390 lines
121 * address_family can be used to select IPv4/IPv6 if the OS has 122 * IPv6 capability (ACE_HAS_IPV6 is defined). To specify IPv6, use 123 * the value AF_INET6. To specify IPv4, use AF_INET. 136 * If <map> is non-zero and IPv6 support has been compiled in, 137 * then this address will be set to the IPv4-mapped IPv6 address of it. 138 */ 312 313 /// Return @c true if the IP address is IPv4/IPv6 loopback address. 314 bool is_loopback (void) const; 315 316 /// Return @c true if the IP address is IPv4/IPv6 multicast address. 317 bool is_multicast (void) const; 378 sockaddr_in6 in6_; 379#endif /* ACE_HAS_IPV6 */ 380 } inet_addr_;setup.py git://github.com/aol/trigger.git | Python | 182 lines
121 'IPv4', 122 'IPv6', 123 'Firewall',Ipv6Address.cpp git://github.com/skyne/NeoCore.git | C++ | 271 lines
37 38Ipv6Address::Ipv6Address(port_t port) : m_valid(true) 39{ 45 46Ipv6Address::Ipv6Address(struct in6_addr& a,port_t port) : m_valid(true) 47{ 54 55Ipv6Address::Ipv6Address(const std::string& host,port_t port) : m_valid(false) 56{ 70 71Ipv6Address::Ipv6Address(struct sockaddr_in6& sa) 72{ 77 78Ipv6Address::~Ipv6Address() 79{gethost.c git://github.com/thelema/ocaml-community.git | C | 181 lines
43 struct in_addr addr; 44#ifdef HAS_IPV6 45 struct in6_addr addr6;ip6_tunnel.h git://github.com/torvalds/linux.git | C Header | 169 lines
4 5#include <linux/ipv6.h> 6#include <linux/netdevice.h> 44 45/* IPv6 tunnel */ 46struct ip6_tnl { 130 131struct ipv6_tlv_tnl_enc_lim { 132 __u8 type; /* type-code for option */objsec.h git://github.com/torvalds/linux.git | C Header | 192 lines
92 __be32 ipv4; /* IPv4 node address */ 93 struct in6_addr ipv6; /* IPv6 node address */ 94 } addr;ListenSocket.h git://github.com/skyne/NeoCore.git | C Header | 421 lines
104 { 105 Ipv6Address ad(port); 106 return Bind(ad, depth); 131 int Bind(port_t port,const std::string& protocol,int depth = 20) { 132#ifdef ENABLE_IPV6 133#ifdef IPPROTO_IPV6 185#ifdef ENABLE_IPV6 186#ifdef IPPROTO_IPV6 187 if (IsIpv6()) 188 { 189 Ipv6Address ad(intf, port); 190 if (ad.IsValid()) 333#ifdef ENABLE_IPV6 334 tmp -> SetIpv6( IsIpv6() ); 335#endifconstants.c git://github.com/acangiano/ruby-benchmark-suite.git | C | 146 lines
76 return constant_arg(optname, rsock_ip_optname_to_int, "unknown IP level option name"); 77#ifdef IPPROTO_IPV6 78 case IPPROTO_IPV6: 78 case IPPROTO_IPV6: 79 return constant_arg(optname, rsock_ipv6_optname_to_int, "unknown IPv6 level option name"); 80#endif 109 case IPPROTO_IPV6: 110 return constant_arg(type, rsock_ipv6_optname_to_int, "unknown IPv6 control message"); 111#endifnet-routing-setup https://bitbucket.org/illumos/illumos-gate/ | Shell | 215 lines
42# which need to be applied. Finally, routeadm starts in.ndpd by 43# enabling the ndp service (in.ndpd), which is required for IPv6 address 44# autoconfiguration. It would be nice if we could do this in 136# Use routeadm(1M) to configure forwarding and launch routing daemons 137# for IPv4 and IPv6 based on preset values. These settings only apply 138# to the global zone. For IPv4 dynamic routing, the system will defaultminisocks.c git://github.com/torvalds/linux.git | C | 269 lines
39 const int rto = (icsk->icsk_rto << 2) - (icsk->icsk_rto >> 1); 40#if IS_ENABLED(CONFIG_IPV6) 41 if (tw->tw_family == PF_INET6) { 43 tw->tw_v6_rcv_saddr = sk->sk_v6_rcv_saddr; 44 tw->tw_ipv6only = sk->sk_ipv6only; 45 }Network.h git://pkgs.fedoraproject.org/tog-pegasus | C Header | 273 lines
71# include <wincrypt.h> 72# ifdef PEGASUS_ENABLE_IPV6 73# include <ws2tcpip.h> 76 77#ifdef PEGASUS_ENABLE_IPV6 78# ifdef PEGASUS_HAS_GETIFADDRSllpacketring.cpp https://bitbucket.org/lindenlab/viewer-development/ | C++ | 373 lines
234 { 235 // *FIX We are assuming ATYP is 0x01 (IPv4), not 0x03 (hostname) or 0x04 (IPv6) 236 memcpy(datap, buffer + SOCKS_HEADER_SIZE, packet_size - SOCKS_HEADER_SIZE);index.php git://github.com/shupp/VegaDNS.git | PHP | 263 lines
43 44// Get IPv6 Functions 45require_once 'src/Net/IPv6.php';getaddrinfo.h git://github.com/postgres/postgres.git | C Header | 162 lines
112 * order specified in the standard, but we have to match it for 113 * IPv6 to work. 114 */ServiceRefTestCase.java git://github.com/jbossas/jboss-as.git | Java | 125 lines
74 if(properties.containsKey("node0")) { 75 properties.put("node0", NetworkUtils.formatPossibleIpv6Address((String)properties.get("node0"))); 76 }SimpleBackend.h http://uftt.googlecode.com/svn/trunk/ | C Header | 184 lines
74 ipv4_watcher watcher_v4; 75 ipv6_watcher watcher_v6; 76 136 void add_ip_addr_ipv4(std::pair<boost::asio::ip::address, boost::asio::ip::address> addrwbcst); 137 void add_ip_addr_ipv6(boost::asio::ip::address addr); 138test-ping-pong.c git://github.com/joyent/libuv.git | C | 256 lines
149 150/* same ping-pong test, but using IPv6 connection */ 151static void tcp_pinger_v6_new() {ip6t_REJECT.c http://snake-os.googlecode.com/svn/trunk/ | C | 285 lines
49 int tcphoff, needs_ack; 50 struct ipv6hdr *oip6h = oldskb->nh.ipv6h, *ip6h; 51 struct dst_entry *dst = NULL; 55 if ((!(ipv6_addr_type(&oip6h->saddr) & IPV6_ADDR_UNICAST)) || 56 (!(ipv6_addr_type(&oip6h->daddr) & IPV6_ADDR_UNICAST))) { 57 DEBUGP("ip6t_REJECT: addr is not unicast.\n"); 95 fl.proto = IPPROTO_TCP; 96 ipv6_addr_copy(&fl.fl6_src, &oip6h->daddr); 97 ipv6_addr_copy(&fl.fl6_dst, &oip6h->saddr); 121 122 ip6h = nskb->nh.ipv6h = (struct ipv6hdr *) 123 skb_put(nskb, sizeof(struct ipv6hdr)); 156 /* Adjust TCP checksum */ 157 tcph->check = csum_ipv6_magic(&nskb->nh.ipv6h->saddr, 158 &nskb->nh.ipv6h->daddr,mroute6.h git://github.com/CyanogenMod/cm-kernel.git | C Header | 282 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 *, int); 250 251#ifdef CONFIG_IPV6_MROUTE 252static inline struct sock *mroute6_socket(struct net *net) 253{ 254 return net->ipv6.mroute6_sk; 255} 264 * Structure used to communicate from kernel to multicast router. 265 * We'll overlay the structure onto an MLD header (not an IPv6 heder like igmpmsg{} 266 * used for IPv4 implementation). This is because this structure will be passed via anINET_Addr.h git://github.com/TrinityCore/TrinityCore.git | C++ Header | 391 lines
121 * address_family can be used to select IPv4/IPv6 if the OS has 122 * IPv6 capability (ACE_HAS_IPV6 is defined). To specify IPv6, use 123 * the value AF_INET6. To specify IPv4, use AF_INET. 136 * If @a map is non-zero and IPv6 support has been compiled in, 137 * then this address will be set to the IPv4-mapped IPv6 address of it. 138 */ 312 313 /// Return @c true if the IP address is IPv4/IPv6 loopback address. 314 bool is_loopback (void) const; 315 316 /// Return @c true if the IP address is IPv4/IPv6 multicast address. 317 bool is_multicast (void) const; 378 sockaddr_in6 in6_; 379#endif /* ACE_HAS_IPV6 */ 380 } inet_addr_;tcpsock.go git://github.com/ivanwyc/google-go.git | Go | 280 lines
57// host:port and resolves domain names or port names to 58// numeric addresses. A literal IPv6 host address must be 59// enclosed in square brackets, as in "[::]:80".proc.c http://snake-os.googlecode.com/svn/trunk/ | C | 302 lines
12 * Authors: David S. Miller (davem@caip.rutgers.edu) 13 * YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> 14 * 23#include <linux/net.h> 24#include <linux/ipv6.h> 25#include <linux/proc_fs.h> 30#include <net/transp_v6.h> 31#include <net/ipv6.h> 32 60static struct snmp_mib snmp6_ipstats_list[] = { 61/* ipv6 mib according to RFC 2465 */ 62 SNMP_MIB_ITEM("Ip6InReceives", IPSTATS_MIB_INRECEIVES), 166 } else { 167 snmp6_seq_show_item(seq, (void **)ipv6_statistics, snmp6_ipstats_list); 168 snmp6_seq_show_item(seq, (void **)icmpv6_statistics, snmp6_icmp6_list);Socket.cs https://singularity.svn.codeplex.com/svn | C# | 261 lines
208 209 public static bool SupportsIPv6 210 {INET_Addr.inl https://bitbucket.org/oregon/oregoncore/ | C++ Header | 253 lines
19 } 20#if defined (ACE_HAS_IPV6) 21 else if (this->get_type() == AF_INET6) 27 } 28#endif /* ACE_HAS_IPV6 */ 29 this->inet_addrs_.clear (); 36{ 37#if defined (ACE_HAS_IPV6) 38# if defined (ACE_USES_IPV4_IPV6_MIGRATION) 38# if defined (ACE_USES_IPV4_IPV6_MIGRATION) 39 return ACE::ipv6_enabled () ? AF_INET6 : AF_INET; 40# else 41 return AF_INET6; 42# endif /* ACE_USES_IPV4_IPV6_MIGRATION */ 43#elseip__basic_resolver_query.html git://pkgs.fedoraproject.org/asio | HTML | 318 lines
192 Only return IPv4 addresses if a non-loopback IPv4 address is configured 193 for the system. Only return IPv6 addresses if a non-loopback IPv6 194 address is configured for the system. 205 <p> 206 If used with v4_mapped, return all matching IPv6 and IPv4 addresses. 207 </p> 230 Host name should be treated as a numeric string defining an IPv4 231 or IPv6 address and no name resolution should be attempted. 232 </p> 269 If the query protocol family is specified as IPv6, return IPv4-mapped 270 IPv6 addresses on finding no IPv6 addresses. 271 </p>Http.php git://github.com/zendframework/zf2.git | PHP | 225 lines
35 */ 36 protected $validHostTypes = self::HOST_DNS_OR_IPV4_OR_IPV6_OR_REGNAME; 37 139 */ 140 public static function validateHost($host, $allowed = self::HOST_DNS_OR_IPV4_OR_IPV6) 141 {JdrReportService.java git://github.com/jbossas/jboss-as.git | Java | 149 lines
98 try { 99 URL managementApi = new URL("http://" + NetworkUtils.formatPossibleIpv6Address(host) + ":" + port + "/management"); 100 HttpURLConnection conn = (HttpURLConnection) managementApi.openConnection();RemoteOutboundConnectionService.java git://github.com/jbossas/jboss-as.git | Java | 146 lines
136 137 this.connectionURI = new URI(REMOTE_URI_SCHEME + NetworkUtils.formatPossibleIpv6Address( destinationAddress.getHostAddress()) + ":" + port); 138 return this.connectionURI;Socket.cpp git://github.com/xbmc/xbmc.git | C++ | 328 lines
37 { 38 m_ipv6Socket = CheckIPv6(port, range); 39 49#endif 50 if (setsockopt(m_iSock, IPPROTO_IPV6, IPV6_V6ONLY, &zero, sizeof(zero)) == -1) 51 { 93 // bind to any address or localhost 94 if (m_ipv6Socket) 95 { 118 { 119 CLog::Log(LOGWARNING, "UDP: Error binding socket on port %d (ipv6 : %s)", m_iPort, m_ipv6Socket ? "true" : "false" ); 120 CLog::Log(LOGWARNING, "UDP: %s", strerror(errno)); 165 166 if (setsockopt(static_cast<SOCKET>(testSocket), IPPROTO_IPV6, IPV6_V6ONLY, &zero, sizeof(zero)) == 167 -1)genSocketOptionRegistry.c git://pkgs.fedoraproject.org/java-1.7.0-openjdk | C | 131 lines
112#ifdef AF_INET6 113 emit_inet6("StandardSocketOptions.IP_MULTICAST_IF", IPPROTO_IPV6, IPV6_MULTICAST_IF); 114 emit_inet6("StandardSocketOptions.IP_MULTICAST_TTL", IPPROTO_IPV6, IPV6_MULTICAST_HOPS); 114 emit_inet6("StandardSocketOptions.IP_MULTICAST_TTL", IPPROTO_IPV6, IPV6_MULTICAST_HOPS); 115 emit_inet6("StandardSocketOptions.IP_MULTICAST_LOOP", IPPROTO_IPV6, IPV6_MULTICAST_LOOP); 116#endifRasEntryTest.cs https://DotRas.svn.codeplex.com/svn | C# | 247 lines
71 this._entry.NetworkProtocols.IP = true; 72 this._entry.NetworkProtocols.IPv6 = true; 73 this._entry.PhoneNumber = IPAddress.Loopback.ToString(); 130 /// <summary> 131 /// Tests the IPv6RemoteDefaultGateway options property to ensure the expected value is persisting to the phonebook correctly. 132 /// </summary> 133 [TestMethod] 134 public void IPv6RemoteDefaultGatewayAfterReloadTest() 135 { 137 138 this._entry.Options.IPv6RemoteDefaultGateway = expected; 139 this._entry.Update(); 149 150 bool actual = this._entry.Options.IPv6RemoteDefaultGateway; 151utility.h git://github.com/gunnarbeutner/shroudbnc.git | C Header | 178 lines
96 97#ifdef HAVE_IPV6 98# define SOCKADDR_LEN(Family) ((Family == AF_INET) ? sizeof(sockaddr_in) : sizeof(sockaddr_in6)) 99# define INADDR_LEN(Family) ((Family == AF_INET) ? sizeof(in_addr) : sizeof(in6_addr)) 100#else /* HAVE_IPV6 */ 101# define SOCKADDR_LEN(Family) (sizeof(sockaddr_in)) 102# define INADDR_LEN(Family) (sizeof(in_addr)) 103#endif /* HAVE_IPV6 */ 104test_tcp.py https://bitbucket.org/prologic/circuits/ | Python | 260 lines
26def _pytest_generate_tests(metafunc, ipv6): 27 metafunc.addcall(funcargs={"Poller": Select, "ipv6": ipv6}) 28 29 if hasattr(select, "poll"): 30 metafunc.addcall(funcargs={"Poller": Poll, "ipv6": ipv6}) 31 32 if hasattr(select, "epoll"): 33 metafunc.addcall(funcargs={"Poller": EPoll, "ipv6": ipv6}) 34 35 if hasattr(select, "kqueue"): 36 metafunc.addcall(funcargs={"Poller": KQueue, "ipv6": ipv6}) 37 41 if has_ipv6: 42 _pytest_generate_tests(metafunc, ipv6=True) 43addressing.rst https://bitbucket.org/dhellmann/pymotw/ | ReStructuredText | 443 lines
17 18:const:`AF_INET6` is used for IPv6 Internet addressing. IPv6 is the 19"next generation" version of the Internet protocol, and supports 20128-bit addresses, traffic shaping, and routing features not available 21under IPv4. Adoption of IPv6 is still limited, but continues to grow. 22 405The related functions :func:`inet_pton` and :func:`inet_ntop` work 406with both IPv4 and IPv6 addresses, producing the appropriate format 407based on the address family parameter passed in. 408 409.. include:: socket_ipv6_address_packing.py 410 :literal: 434 435 `Wikipedia: IPv6 <http://en.wikipedia.org/wiki/IPv6>`__ 436 Article discussing Internet Protocol Version 6 (IPv6).os_in.h git://github.com/skyne/NeoCore.git | C Header | 186 lines
129// 130// for IPv6 hex string 131#if !defined (INET6_ADDRSTRLEN)sockopt.c git://pkgs.fedoraproject.org/ocaml | C | 301 lines
85#endif 86#ifndef IPPROTO_IPV6 87#define IPPROTO_IPV6 (-1) 88#endif 89#ifndef IPV6_V6ONLY 90#define IPV6_V6ONLY (-1) 116 { IPPROTO_TCP, TCP_NODELAY }, 117 { IPPROTO_IPV6, IPV6_V6ONLY} 118};netutils.h git://pkgs.fedoraproject.org/nagios-plugins | C Header | 110 lines
76#define is_inet_addr(addr) resolve_host_or_addr(addr, AF_INET) 77#ifdef USE_IPV6 78# define is_inet6_addr(addr) resolve_host_or_addr(addr, AF_INET6)IPSocket.cs https://eex.svn.codeplex.com/svn | C# | 370 lines
72 { 73 ipFrame = new IPv6Frame(); 74 } 76 { 77 throw new ArgumentException("Only IPv4 or IPv6 addresses are supportet on the moment."); 78 } 115 { 116 throw new ArgumentException("Only IPv4 and IPv6 addresses are supported at the moment."); 117 } 170 } 171 else if (ipFrame.FrameType == FrameTypes.IPv6) 172 { 257 { 258 IPv6Frame ipv6Frame = new IPv6Frame(); 259CustomServiceDialogTest.cpp git://pkgs.fedoraproject.org/fwbuilder | C++ | 204 lines
54#include "fwbuilder/IPv4.h" 55#include "fwbuilder/IPv6.h" 56#include "FWBTree.h" 117 QRadioButton *ipv4 = dialog->findChild<QRadioButton*>("ipv4"); 118 QRadioButton *ipv6 = dialog->findChild<QRadioButton*>("ipv6"); 119 TextEditWidget *comment = dialog->findChild<TextEditWidget*>("comment"); 181 dialog->platformChanged(); 182 QTest::mouseClick(ipv6, Qt::LeftButton, Qt::NoModifier, QPoint(10,10)); 183 QVERIFY(service->getAddressFamily() == 10); 196 QVERIFY(oldprotocol == service->getProtocol()); 197 QTest::mouseClick(ipv6, Qt::LeftButton, Qt::NoModifier, QPoint(10,10)); 198 QVERIFY(service->getAddressFamily() == 10);net.h https://bitbucket.org/freebsd/freebsd-head/ | C Header | 365 lines
89 90#ifndef ISC_PLATFORM_HAVEIPV6 91#include <isc/ipv6.h> /* Contractual promise. */ 100 101#ifdef ISC_PLATFORM_HAVEIPV6 102#ifndef IN6ADDR_ANY_INIT 118#ifdef s6_addr 119/*% IPv6 address loopback init */ 120#define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } 126#ifndef IN6_IS_ADDR_V4MAPPED 127/*% Is IPv6 address V4 mapped? */ 128#define IN6_IS_ADDR_V4MAPPED(x) \ 133#ifndef IN6_IS_ADDR_V4COMPAT 134/*% Is IPv6 address V4 compatible? */ 135#define IN6_IS_ADDR_V4COMPAT(x) \jDatatype.class.php https://bitbucket.org/jelix/jelix-trunk/ | PHP | 357 lines
336/** 337 * Datatype ipv6 338 * @package jelix 340 */ 341class jDatatypeIPv6 extends jDatatype { 342 public function check($value){ 342 public function check($value){ 343 return jFilter::isIPv6($value); 344 }proto_hier_stats.c http://cwoodruf-sfu-cmpt.googlecode.com/svn/trunk/ | C | 332 lines
112 * not a normal protocol in the top-level tree. It was instead 113 * added as a normal tree such as IPv6's Hop-by-hop Option Header and 114 * should be skipped when creating the protocol hierarchy display. */print-ether.c https://bitbucket.org/freebsd/freebsd-head/ | C | 435 lines
47 { ETHERTYPE_MPLS_MULTI, "MPLS multicast" }, 48 { ETHERTYPE_IPV6, "IPv6" }, 49 { ETHERTYPE_8021Q, "802.1Q" }, 332#ifdef INET6 333 case ETHERTYPE_IPV6: 334 ip6_print(ndo, p, length);ipsock_plan9.go git://github.com/vablaya/gopp-cs345.git | Go | 305 lines
12 13// probeIPv6Stack returns two boolean values. If the first boolean value is 14// true, kernel supports basic IPv6 functionality. If the second 15// boolean value is true, kernel supports IPv6 IPv4-mapping. 16func probeIPv6Stack() (supportsIPv6, supportsIPv4map bool) { 17 return false, falseIdIPAddress.pas https://code.google.com/p/xseus/ | Pascal | 294 lines
84 //We can't make this into a property for C++Builder 85 IPv6 : TIdIPv6Address; 86 94 property IPv4AsString : String read GetIPv4AsString; 95 property IPv6AsString : String read GetIPv6AsString; 96 property AddrType : TIdIPVersion read FAddrType write FAddrType; 167 for I := 0 to 7 do begin 168 Result := CompareWord(IPv6[i], LIP2.IPv6[i]); 169 if Result <> 0 then begin 242 try 243 IPv6ToIdIPv6Address(AIP, Result.IPv6, LErr); 244 if not LErr then begin 277 begin 278 IPv6ToIdIPv6Address(AIP, Result.IPv6, LErr); 279 if not LErr then beginClient.pm git://github.com/yuki-kimoto/gitweblite.git | Perl | 258 lines
8# IPv6 support requires IO::Socket::IP 9use constant IPV6 => $ENV{MOJO_NO_IPV6} 10 ? 0 59 $options{PeerAddr} =~ s/[\[\]]//g if $options{PeerAddr}; 60 my $class = IPV6 ? 'IO::Socket::IP' : 'IO::Socket::INET'; 61 return $self->emit_safe(error => "Couldn't connect.") 67 68 # IPv6 needs an early start 69 $handle->connect if IPV6; 208Open a socket connection to a remote host. Note that TLS support depends on 209L<IO::Socket::SSL> and IPv6 support on L<IO::Socket::IP>. 210configure.ac git://git.savannah.nongnu.org/upnpproxy.git | m4 | 83 lines
59]]) 60AC_DEFINE_UNQUOTED([HAVE_INET6], [$have_inet6], [define to 1 if struct sockaddr_in6 and the rest of IPv6 functions is available]) 61net.c git://git.savannah.nongnu.org/quagga.git | C | 240 lines
66 67 rc = setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &one, sizeof(one)); 68 if(rc < 0) 74 75 rc = setsockopt(s, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, 76 &zero, sizeof(zero)); 79 80 rc = setsockopt(s, IPPROTO_IPV6, IPV6_UNICAST_HOPS, 81 &one, sizeof(one)); 84 85 rc = setsockopt(s, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 86 &one, sizeof(one)); 90#ifdef IPV6_TCLASS 91 rc = setsockopt(s, IPPROTO_IPV6, IPV6_TCLASS, &ds, sizeof(ds)); 92#elsetos_values.c http://droidwall.googlecode.com/svn/trunk/ | C | 0 lines
31 * @bits: number of bits that are allowed 32 * (8 for IPv4 TOS field, 4 for IPv6 Priority Field) 33 */sockopt.c git://github.com/OCamlPro/OCamlPro-OCaml-Branch.git | C | 229 lines
23 24#ifndef IPPROTO_IPV6 25#define IPPROTO_IPV6 (-1) 26#endif 27#ifndef IPV6_V6ONLY 28#define IPV6_V6ONLY (-1) 54 { IPPROTO_TCP, TCP_NODELAY }, 55 { IPPROTO_IPV6, IPV6_V6ONLY} 56};Socket.cpp http://xpkit.googlecode.com/svn/trunk/xpkit/ | C++ | 447 lines
44 // as the implementaion is intended to support both 45 // ipv4 and ipv6 seamlessly. The new name resolution 46 // API's don't effectively allow the creation of socket 297 298 int Socket::setIpv6Only (int n) 299 { 299 { 300 #ifdef IPV6_V6ONLY 301 return setOption (IPPROTO_IPV6, 301 return setOption (IPPROTO_IPV6, 302 IPV6_V6ONLY, (char*)&n, xp_sizeof(n)); 303 #elsein.d git://github.com/LaMaisonOrchard/lb.git | D | 189 lines
78 79This variable is initialized by the system to contain the wildcard IPv6 address. The <netinet/in.h> header also defines the IN6ADDR_ANY_INIT macro. This macro must be constant at compile time and can be used to initialize a variable of type struct in6_addr to the IPv6 wildcard address. 80 84 85This variable is initialized by the system to contain the loopback IPv6 address. The <netinet/in.h> header also defines the IN6ADDR_LOOPBACK_INIT macro. This macro must be constant at compile time and can be used to initialize a variable of type struct in6_addr to the IPv6 loopback address. 86 88 89struct in6_addr ipv6mr_multiaddr IPv6 multicast address. 90unsigned ipv6mr_interface Interface index. 125INET6_ADDRSTRLEN 12646. Length of the string form for IPv6. 127 129 130IPV6_JOIN_GROUP 131Join a multicast group.runserver.py git://github.com/django/django.git | Python | 158 lines
18 (?P<ipv4>\d{1,3}(?:\.\d{1,3}){3}) | # IPv4 address 19 (?P<ipv6>\[[a-fA-F0-9:]+\]) | # IPv6 address 20 (?P<fqdn>[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*) # FQDN 42 parser.add_argument( 43 '--ipv6', '-6', action='store_true', dest='use_ipv6', 44 help='Tells Django to use an IPv6 address.', 70 71 self.use_ipv6 = options['use_ipv6'] 72 if self.use_ipv6 and not socket.has_ipv6: 94 self.addr = self.default_addr_ipv6 if self.use_ipv6 else self.default_addr 95 self._raw_ipv6 = self.use_ipv6 96 self.run(**options) 139 run(self.addr, int(self.port), handler, 140 ipv6=self.use_ipv6, threading=threading, server_cls=self.server_cls) 141 except OSError as e:Modules.pm http://another-backup-tool.googlecode.com/svn/trunk/ | Perl | 152 lines
13use warnings; 14use Data::Validate::IP qw(is_ipv4 is_ipv6); 15use File::DirList; 78 $logger->debug("IP : ".$IP_toverify) if $verbose; 79 if ( is_ipv4($IP_toverify) || is_ipv6($IP_toverify) ) { 80 return 1;lastseen.c git://pkgs.fedoraproject.org/cfengine | C | 291 lines
41 * key: k<hostkey> ("MD5-ffffefefeefef..." or "SHA-abacabaca...") 42 * value: <address> (IPv4 or IPv6) 43 * 45 * 46 * key: a<address> (IPv6 or IPv6) 47 * value: <hostkey>Validation.php http://manialive.googlecode.com/svn/trunk/ | PHP | 171 lines
87 /** 88 * Validates value as IP address, optionally only IPv4 or IPv6 or not from private or reserved ranges. 89 * @param array|mixed $data 91 */ 92 static function ip($data, $allowIpv4 = true, $allowIpv6 = true, $allowPrivate = true, $allowReserved = false) 93 { 95 96 if ($allowIpv6) 97 { 97 { 98 $options = $options & FILTER_FLAG_IPV6; 99 }routing https://bitbucket.org/freebsd/freebsd-head/ | Shell | 394 lines
165 166 case ${ipv6_defaultrouter} in 167 [Nn][Oo] | '') 169 *) 170 ipv6_static_routes="default ${ipv6_static_routes}" 171 ipv6_route_default="default ${ipv6_defaultrouter}" 176 for i in ${ipv6_static_routes}; do 177 ipv6_route_args=`get_if_var $i ipv6_route_IF` 178 route ${_action} -inet6 ${ipv6_route_args} 189 if checkyesno ipv6_gateway_enable; then 190 for i in ${ipv6_network_interfaces}; do 191 201 done 202 ipv6_network_interfaces=${ipv6_working_interfaces} 203 fiResolvSocket.cpp https://bitbucket.org/oregon/oregoncore/ | C++ | 0 lines
67#ifdef ENABLE_IPV6 68,m_resolve_ipv6(false) 69#endif 82#ifdef ENABLE_IPV6 83,m_resolve_ipv6(ipv6) 84#endif 96,m_resolv_address(a) 97#ifdef ENABLE_IPV6 98,m_resolve_ipv6(false) 246#ifdef ENABLE_IPV6 247#ifdef IPPROTO_IPV6 248 else 389#ifdef ENABLE_IPV6 390 if (m_resolve_ipv6) 391 {checksum.h git://github.com/torvalds/linux.git | C++ Header | 87 lines
75 76#undef _HAVE_ARCH_IPV6_CSUM 77nameser.h git://github.com/davidsun/LibAndroidHttp.git | C Header | 198 lines
71 ns_t_cert = 37, /* Certification record */ 72 ns_t_a6 = 38, /* IPv6 address (deprecates AAAA) */ 73 ns_t_dname = 39, /* Non-terminal DNAME (for IPv6) */AsyncUdpSocket.h git://github.com/OpenEmu/OpenEmu.git | C Header | 366 lines
23 AsyncUdpSocketBadParameter, // Used if given a bad parameter (such as an improper address) 24 AsyncUdpSocketIPv4Unavailable, // Used if you bind/connect using IPv6 only 25 AsyncUdpSocketIPv6Unavailable, // Used if you bind/connect using IPv4 only (or iPhone) 33 CFSocketRef theSocket4; // IPv4 socket 34 CFSocketRef theSocket6; // IPv6 socket 35 71/** 72 * Creates new instances of AsyncUdpSocket that support only IPv4 or IPv6. 73 * The other init methods will support both, unless specifically binded or connected to one protocol. 76- (id)initIPv4; 77- (id)initIPv6; 78 117 * Returns whether or not this socket supports IPv4. 118 * By default this will be true, unless the socket is specifically initialized as IPv6 only, 119 * or is binded or connected to an IPv6 address.Network.hs git://github.com/Lainepress/hp-2010.2.0.0.git | Haskell | 450 lines
20#ifdef HAVE_GETADDRINFO 21-- Use IPv6-capable function definitions if the OS supports it. 22#define IPV6_SOCKET_SUPPORT 1 96 97#if defined(IPV6_SOCKET_SUPPORT) 98-- IPv6 and IPv4. 140 141#if defined(IPV6_SOCKET_SUPPORT) 142connect' :: HostName -> ServiceName -> IO Handle 171 172#if defined(IPV6_SOCKET_SUPPORT) 173-- IPv6 and IPv4. 219 220#if defined(IPV6_SOCKET_SUPPORT) 221listen' :: ServiceName -> IO Socketpatched_tests_setup.py https://code.google.com/p/gevent/ | Python | 93 lines
10test_ftplib.TestFTPClass.test_set_pasv 11test_ftplib.TestIPv6Environment.test_af 12test_socket.TestExceptions.testExceptionTreeip_set_hash_ipportip.c git://github.com/torvalds/linux.git | C | 403 lines
12#include <net/ip.h> 13#include <net/ipv6.h> 14#include <net/netlink.h> 200 201/* IPv6 variant */ 202 217{ 218 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && 219 ipv6_addr_equal(&ip1->ip2.in6, &ip2->ip2.in6) &&324-skb1-sk_forward_alloc.patch http://wl500g.googlecode.com/svn/trunk/ | Patch | 129 lines
19 net/ipv4/udp.c | 4 +--- 20 net/ipv6/udp.c | 4 +--- 21 net/sunrpc/svcsock.c | 10 +++++----- 72 73diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c 74--- a/net/ipv6/udp.c 74--- a/net/ipv6/udp.c 75+++ b/net/ipv6/udp.c 76@@ -288,7 +288,7 @@ try_again:Makefile.PL git://pkgs.fedoraproject.org/perl | Perl | 244 lines
106check_for( 107 confkey => "d_ipv6_mreq", 108 define => "HAS_IPV6_MREQ", 108 define => "HAS_IPV6_MREQ", 109 main => "struct ipv6_mreq mreq; mreq.ipv6mr_interface = 0;" 110); 154 155 IPV6_ADD_MEMBERSHIP IPV6_DROP_MEMBERSHIP IPV6_MTU IPV6_MTU_DISCOVER 156 IPV6_MULTICAST_HOPS IPV6_MULTICAST_IF IPV6_MULTICAST_LOOP 156 IPV6_MULTICAST_HOPS IPV6_MULTICAST_IF IPV6_MULTICAST_LOOP 157 IPV6_UNICAST_HOPS IPV6_V6ONLY 158 196 {name=>"IPPROTO_IP", type=>"IV", default=>["IV", 0]}, 197 {name=>"IPPROTO_IPV6", type=>"IV", default=>["IV", 41]}, 198 {name=>"IPPROTO_RAW", type=>"IV", default=>["IV", 255]},NetUtils.java http://h2database.googlecode.com/svn/trunk/ | Java | 282 lines
91 int port = defaultPort; 92 // IPv6: RFC 2732 format is '[a:b:c:d:e:f:g:h]' or 93 // '[a:b:c:d:e:f:g:h]:port'heartbeat.c git://pkgs.fedoraproject.org/aiccu | C | 297 lines
1/********************************************************** 2 SixXS - Automatic IPv6 Connectivity Configuration Utility 3*********************************************************** 205/* Send a heartbeat */ 206int heartbeat_send(SOCKET sockfd, char *sIPv4Local, char *sIPv6Local, char *sPassword, bool bBehindNAT) 207{ 216 snprintf((char *)buf, sizeof(buf), "HEARTBEAT TUNNEL %s %s %ld %s", 217 sIPv6Local, 218 (bBehindNAT ? "sender" : sIPv4Local), 228 p += snprintf((char *)buf, sizeof(buf)-17, "HEARTBEAT TUNNEL %s %s %ld ", 229 sIPv6Local, 230 (bBehindNAT == 1 ? "sender" : sIPv4Local), 288 hTunnel->sIPv4_Local, 289 hTunnel->sIPv6_Local, 290 hTunnel->sPassword,lockd.h git://github.com/CyanogenMod/cm-kernel.git | C Header | 402 lines
300 301#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 302static inline int __nlm_privileged_request6(const struct sockaddr *sap) 308 309 if (ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_MAPPED) 310 return ipv4_is_loopback(sin6->sin6_addr.s6_addr32[3]); 311 312 return ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LOOPBACK; 313} 313} 314#else /* defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) */ 315static inline int __nlm_privileged_request6(const struct sockaddr *sap) 318} 319#endif /* defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) */ 320IPPacket.java http://ravi-project-iptest.googlecode.com/svn/trunk/ | Java | 294 lines
10 * <P> 11 * Both IPv4 and IPv6 are supported. 12 */ 72 73 /** Protocol number for IPv6 */ 74 public static final short IPPROTO_IPv6 = 41; 75 76 /** Protocol number for IPv6 hop-by-hop option */ 77 public static final short IPPROTO_HOPOPT = 0; 78 79 /** Protocol number for routing header for IPv6 */ 80 public static final short IPPROTO_IPv6_Route = 43; 81 82 /** Protocol number for fragment header for IPv6 */ 83 public static final short IPPROTO_IPv6_Frag = 44;sysctl.conf git://github.com/omega8cc/nginx-for-drupal.git | Config | 101 lines
38net.ipv4.conf.default.secure_redirects = 0 39net.ipv6.conf.all.accept_redirects = 0 40net.ipv6.conf.default.accept_redirects = 0 49 50# Tune IPv6 51net.ipv6.conf.default.router_solicitations = 0 51net.ipv6.conf.default.router_solicitations = 0 52net.ipv6.conf.default.accept_ra_rtr_pref = 0 53net.ipv6.conf.default.accept_ra_pinfo = 0 53net.ipv6.conf.default.accept_ra_pinfo = 0 54net.ipv6.conf.default.accept_ra_defrtr = 0 55net.ipv6.conf.default.autoconf = 0 55net.ipv6.conf.default.autoconf = 0 56net.ipv6.conf.default.dad_transmits = 0 57net.ipv6.conf.default.max_addresses = 1