AutoHotkey Community

It is currently May 26th, 2012, 6:22 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: IPV6 help!
PostPosted: February 14th, 2009, 10:49 am 
Offline

Joined: July 12th, 2007, 10:24 pm
Posts: 103
Location: Hawaii, USA
Hi, can someone please review the latest posts at this thread

http://www.autohotkey.com/forum/viewtopic.php?t=13829

...there is some really good work going on with IPV6 communications there. I am working on a project for school that happens to be IPV6 focused..., and it would be REALLY GREAT & greatly appreciated to have some simple proof of concepts to show off...

If there are any good people out there please respond to the thread!

thank you, Sarah. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 14th, 2009, 4:09 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
unfortunately there just isnt much real world practical use for this not yet the mainstream corperate standard

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 15th, 2009, 3:46 am 
Offline

Joined: July 12th, 2007, 10:24 pm
Posts: 103
Location: Hawaii, USA
hiyas Tank, I am not an expert, but here is my 2 dollars <or insert your currency here> worth.

It is a great format in lots of companies & places. I have learned from this group & also in college classes the format can be implemented following standards established for Ipv6 already, over top of IPv4 (still trying to understand it all of course)... But it is something I want to learn because it is the future and I want to eventually have a IPv6 focused job in next few years. :) I don't have the deep expertise yet, but trying to get some help around!!! ... Do you know much about the constructs ISNULL is working on at the thread I linked above? ... If so, I hope you will please consider contributing your experience. :)

From my own observations, at least 1 or 2 out of 10 companies use IpV6 internally... and have it on their radar. You can't find any major internet service providers who do not offer IPv6 for their customers already. That is a pretty fair estimate and may even be greater. Ipv6 keyword google searches reveal lots of activity and prospects. I would say Ipv6 is more popular than some other technology concepts pursued in this forum. Not too bad, at least messing with it at this early phase... Learning new stuff is important to me of course. Best-Sarah


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 15th, 2009, 5:43 am 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
I didnt say it wasnt in the works i said most major corps have not yet implemented and mostly for those in this forum who could help you your looking for moonlighting network admins whose day job is AHK :D

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 15th, 2009, 5:53 am 
Offline

Joined: July 12th, 2007, 10:24 pm
Posts: 103
Location: Hawaii, USA
How do you know this??? (most major corps). It sounds deeply hypothetical at best. In my world/view it is quite the opposite. IPv6 is already part of the infrastructure... Year 2001 Routers started supporting IPv6, Cisco, and many others. In fact, I would say almost 90% are ready for it... and the projects are starting to emerge. You sound like it is something fancy for those who don't care, or have a clue about it anyway ;)


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: IPV6 help!
PostPosted: February 15th, 2009, 11:21 am 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Sarah wrote:
greatly appreciated to have some simple proof of concepts to show off
I would also be interested.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2009, 6:52 am 
Offline

Joined: July 12th, 2007, 10:24 pm
Posts: 103
Location: Hawaii, USA
I think IpV6 is a wonderful technology to explore & hope tank opens his mind, and congratulates instead of berating ;). We love you tank. BTW, I found the most cost effective way to set up a lab, I think might be to acquire the WRT54G or WRT54GL units from eBay that have the Linux "DD-WRT" or Mega upgrade. This gives you Windows IPV6 Virtual Network capability, up to 4 terminal VLAN nodes. Even though it is a wireless unit, it can act as a wired router. For $50-$60 USA you've got yourself a perfect testing environment. Otherwise, it looks like at least a $300 or more buy-in to acquire a IPV6 capable router, such as those from Cisco.

You'll need a second computer tho at least. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2009, 4:43 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
I am sorry for sounding negative
I was actually pointing out this might not be the best forum to explore this in.
I do look forward to when ipv6 is fully implementedand the absolute standard not the exception
I wish this endeavor luck and want the best for it

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 17th, 2009, 4:15 am 
Offline

Joined: July 12th, 2007, 10:24 pm
Posts: 103
Location: Hawaii, USA
@Tank

Great! :)

... in my opinion, I think it will be a long time, before IPV6 is like some major and only thing going on... However, it is said by some of the top ISP's who offer IPV6, including the major #1 and #2, ... they have data showing IPV4 assignments are due to run out very soon. Like in 2 or 3 years. It may be longer due to the recession, but no doubt, in coming years IPV6 will be more popular. I think IPV6 is pretty much being used internally, and like I said, projects are out there for IPV6 GURUs. Since enterprises want to be on the cutting edge, they are fine tuning, and hooking up the infrastructure now as we speak.

So in a nutshell, I think it is worth spending some time, and maybe $50 bucks to get a little environment set up. I just ordered mine, and trying to get some proof of concepts together, so I can pass my college class ;)

But that is neither here nor there... the whole IPv6 game is pretty complex, and I am still learning new stuff.. from people are I bow down to and praise, like ISNULL and even my teacher who inspires me to keep pushing forward.

Have a great week! hope to hear some positive developments. I am going to be raising my hands as a TESTER here, so hopefully the struct below, ... @ can take it one step further and we can make a simple "hello world" IPV6 TCP/IP communications script. That would be cool...

My Best Wishes -- Sarah.


@@@@@@@@@@@@@@@@
some backlog on this

////

I tried to convert the ConnectToAddress(IPAddress, Port) to allow IPv6 adr. My problem is, I have to create a ipv6 adrsocket-struct.

Code:

/**************************************************************
connect to a IPv6
***************************************************************
*/
ConnectToAddress(IPAddress, Port){
    VarSetCapacity(wsaData, 32)  ; The struct is only about 14 in size, so 32 is conservative.
    ;ipv6 requires wsock 2.2
    WSOCK_20    := 0x0002 ;wsock 2.0
    WSOCK_22    := 0x0202 ;wsock 2.2
    result := DllCall("Ws2_32\WSAStartup", "UShort", 0x0202, "UInt", &wsaData) ; Request Winsock 2.0 (0x0202)
    ; Since WSAStartup() will likely be the first Winsock function called by this script,
    ; check ErrorLevel to see if the OS has Winsock 2.2 available:
    if (ErrorLevel){
        MsgBox WSAStartup() could not be called due to error %ErrorLevel%. Winsock 2.0 or higher is required.
        return -1
    }
    if (result){  ; Non-zero, which means it failed (most Winsock functions return 0 upon success).
        MsgBox % "WSAStartup() indicated Winsock error " . DllCall("Ws2_32\WSAGetLastError")
        return -1
    }

    AF_INET     := 2    ;for IPv4
    AF_INET6    := 23   ;for IPv6
    SOCK_STREAM := 1
    IPPROTO_TCP := 6
    socket := DllCall("Ws2_32\socket", "Int", AF_INET6, "Int", SOCK_STREAM, "Int", IPPROTO_TCP)
    if socket = -1
    {
        MsgBox % "socket() indicated Winsock error " . DllCall("Ws2_32\WSAGetLastError")
        return -1
    }

;...until here it works, but now I need the sockaddr_in6 Data-struct.

   
    /* struct def postet by Lexicos
typedef struct sockaddr_in6 {
    ADDRESS_FAMILY sin6_family; // AF_INET6.
    USHORT sin6_port;           // Transport level port number.
    ULONG  sin6_flowinfo;       // IPv6 flow information.
    IN6_ADDR sin6_addr;         // IPv6 address.
    union {
        ULONG sin6_scope_id;     // Set of interfaces for a scope.
        SCOPE_ID sin6_scope_struct;
    };
} SOCKADDR_IN6_LH, *PSOCKADDR_IN6_LH, FAR *LPSOCKADDR_IN6_LH;

typedef struct in6_addr {
    union {
        UCHAR       Byte[16];
        USHORT      Word[8];
    } u;
} IN6_ADDR, *PIN6_ADDR, FAR *LPIN6_ADDR;
   
    */

/* THIS IS IPv4 sockadr Struct
    ; Prepare for connection:
    SizeOfSocketAddress = 16
    VarSetCapacity(SocketAddress, SizeOfSocketAddress)
    InsertInteger(2, SocketAddress, 0, AF_INET)   ; sin_family
    InsertInteger(DllCall("Ws2_32\htons", "UShort", Port), SocketAddress, 2, 2)   ; sin_port
    InsertInteger(DllCall("Ws2_32\inet_addr", "Str", IPAddress), SocketAddress, 4, 4)   ; sin_addr.s_addr
*/
    ; Attempt connection:
    if DllCall("Ws2_32\connect", "UInt", socket, "UInt", &SocketAddress, "Int", SizeOfSocketAddress)
    {
        MsgBox % "connect() indicated Winsock error " . DllCall("Ws2_32\WSAGetLastError") . "?"
        return -1
    }
    return socket  ; Indicate success by returning a valid socket ID rather than -1.
}



I tried a bit, but I doesn't work. So, is there a struct-pro here, who can help me to create this ipv6-struct?

EDIT:
Maby this could be of interest:
http://msdn.microsoft.com/en-us/library/ms737937(VS.85).aspx

WSAConnectByName does include the following steps:

Quote:

Resolve a hostname to a set of IP addresses.
For each IP address:

Create a socket of the appropriate address family.
Attempts to connect to the remote IP address. If the connection was successful, it returns; otherwise the next remote IP address for the host is tried



CAN ANYONE ADVANCE THIS? :D


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: batto, rbrtryn, SKAN and 55 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group