GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
* Sign Up! *

Support
Customer Portal
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
IP6(3ast) IP6(3ast)

ip6 - IPv6 address support

#include <ip6.h>
char*      fmtip6(unsigned char* addr, int bits);
int        strtoip6(const char* str, char** end, unsigned char* addr, unsigned char* bits);

fmtip6() formats the IPv6 address addr with optional prefix bits bits (0 if not a prefix) into a thread-specific 0-terminated temporary buffer and returns a pointer to the formatted value.

strtoip6() converts a formatted IPv6 address from the 0-terminated string str into a host order IPv6 address in addr which must be a buffer of at least IP6ADDR bytes. If bits is not 0 then an optional /bits (prefix size in bits) is parsed and *bits is set to the number of prefix bits. If end is not 0 then *end will point to the first unparsed character in str on return. 0 is returned on success, -1 on failure.

dss(1)


Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.