473,386 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Query regarding support for IPv6 in python

Hello All,
I have some queries related to python support for IPv6. Can you kindly
clarify the doubts which I have -
1. Does python support IPv6? [128 bit IP addresses?]
2. Does it support setting of QoS flags?
3. Does it support tunneling of IPv6 on a IPv4 network?
4. If an IPv4 address is given, does it support this on a IPv6 network?
If not can you kindly let me know, Are there any plans for supporting these
features in future?

For Example -
In IPv4 we have gethostbyname() function, which is deprecated in IPv6. In
IPv6, getaddrinfo() and new data structure like struct addrinfo is
introduced.
Is this new function getaddrinfo() of IPv6 is supported in Win32 Extensions
for python.
Thanks in Advance,
Pramod TK
Apr 26 '06 #1
3 1820
Pramod TK enlightened us with:
1. Does python support IPv6? [128 bit IP addresses?]
Yes.
2. Does it support setting of QoS flags?
No idea.
3. Does it support tunneling of IPv6 on a IPv4 network?
IIRC that's the OS's job, not Python's.
4. If an IPv4 address is given, does it support this on a IPv6
network?
It does if you use the compatability notation ::ffff:127.0.0.1
Is this new function getaddrinfo() of IPv6 is supported in Win32
Extensions for python.


I don't know anything about windows.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
Apr 26 '06 #2
Pramod TK wrote:
Is this new function getaddrinfo() of IPv6 is supported in Win32 Extensions
for python.


Yes, since Python 2.4 (actually, not in the Win32 extensions, but in the
standard Python socket module for Win32).

Regards,
Martin
Apr 26 '06 #3
Am Mittwoch 26 April 2006 17:02 schrieb Pramod TK:
1. Does python support IPv6? [128 bit IP addresses?]
Yes.
2. Does it support setting of QoS flags?
Yes. That's a socket option which you can set just as you would set it using C
(at least under Unix, under Windows: no idea).
3. Does it support tunneling of IPv6 on a IPv4 network?
No. That's an OS's job. You could, of course, implement a 6in4-tunnel using
TUN interfaces, completely in Python. But I don't think that's what you want
to do. And, anyway, your host OS would need IPv6 support for this to work. I
wouldn't know how you'd go about implementing this on Windows, though.
4. If an IPv4 address is given, does it support this on a IPv6 network?


Depends on the OS. If the OS supports 6to4, then Python does too (because an
IPv4-Adress is simply mapped to an IPv6-Network with a certain notation, look
up the documentation for the 2001::-network on Wikipedia, for example). If
the OS doesn't, Python doesn't either. This is also an OS job, not a Python
job.

--- Heiko.
Apr 27 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Johnny | last post by:
Now I am running PHP in Apache on Windows platform, but I need to migrate it into linux and using IPv6 instead. So I want to know if PHP fully support IPv6. And how about the workload of this...
0
by: Carl-Johan Kjellander | last post by:
I have a problem. I want to use httplib to a site that has both IPv4 and IPv6 connectivity, hence it has both A and AAAA records. Is there a way to force httplib to use IPv6 only, or to at least...
0
by: krisan | last post by:
Hi, i am writing a program for ping operation which supports both Ipv4 and IpV6 ..first i wrote for both of them individually , but i am unable to mix them such that they support both the versions...
2
by: gregory_may | last post by:
First the research links: IPv6 spec (look for 'jumbo payload'): http://www.cs-ipv6.lancs.ac.uk/ipv6/documents/rfcs/archive/rfc1883.txt IPv6 Sample C# Client/Server...
3
by: fusillo | last post by:
hi, i would like know about mysql's ipv6 support, i installed mysql 5.0.19 from a source dist and no configuration option is provided to enable ipv6. do you know some tips about? regards ...
1
by: Mockey Chen | last post by:
Does DB2 8.2 Enterprise Edition support IPv6? Thanks. -- Regards. Mockey Chen Email: mockey.chen@gmail.com
2
by: cychong | last post by:
Hi, There is no probleming in programming the basic IPv6 socket program with the python. Then how about the IPv6 extension header? The RFC 2292 and man pages from the unix/linux advise to use...
2
by: Prabhu Gurumurthy | last post by:
Hello list, I would like to parse IPv6 addresses and subnet using re module in python. I am able to either parse the ipv6 address or ipv6 network but not both using single line. any help...
8
by: Giampaolo Rodola' | last post by:
I'm not sure if this is a question about python programming, system administration or sockets in general... I have the FTP server in my signature to which I'd want to add IPv6 support. My hosting...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.