473,624 Members | 2,539 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1845
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
5542
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 migration? Thanks for your help.
0
1201
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 try IPv6 before IPv4? As it is now, httplib always takes the IPv4 address first. If there isn't a way to do this, i.e. httplib always connects to the IPv4 address first, and there is now way to change that, who do I talk to about adding a...
0
1383
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 ... i would be very thankful if anyone could come out with a complete program .. Ipv6 prog --------- #include<stdio.h> #include<winsock2.h>
2
3015
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 http://www.codeproject.com/csharp/ipv6.asp I am developing an application where I need to broadcast information to clients. I have hit a 64K limit in UDP broadcasting. I am not exited
3
6098
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 fusillo
1
1734
by: Mockey Chen | last post by:
Does DB2 8.2 Enterprise Edition support IPv6? Thanks. -- Regards. Mockey Chen Email: mockey.chen@gmail.com
2
2041
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 the sendmsg to send the packet with the extension header. Does python support the extension header processing? Googling told me that there is no one to try this one with the
2
3718
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 appreciated. BTW is there a metacharacter for hex digits. Thanks Prabhu -
8
8945
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 company provides me a common IPv4 address. I'd like to set up my workstation (Windows XP or Linux Debian, doesn't really matter) to temporarily use IPv6 for trying to add such feature to my library (I work on both Windows XP and Linux). Could...
0
8246
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8179
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8631
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8341
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4184
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.