jimeeg 0 Newbie Poster

i am trying to research how the IPv6 address is stored into memory. the IPv4 address is easy, because we can load it directly into an register such as eax and push it onto the stack. works great, but how are the IPv6 stuffed on there?

i am guessing that it takes 4 pushes onto the stack and somehow that is all popped back off into the AF_INET6 structure, but HOW???? does anyone have a disassembled copy of that code?

a sample of the ipv4 code is:

mov ebp-4Ch, eax ;store ip address from eax into ebp
push 10h
lea eax, [ebp-50h] ;load address up
push eax

anyone have an idea or a good place to look - my searches are failing me.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.