IP6(3)

πŸ“¦ version 93vu, in opensuse-leap 16.0

πŸ’– IP6(3) πŸ’–

okay bestie, welcome to the IP6(3) page from the Library Functions Manual β€” this is all about IP V6 address support and honestly it's a whole vibe. Let's get into it. ✨

🌸 NAME 🌸

ip6 β€” IP V6 address support. That's the name, that's the game, periodt. πŸ’…

✨ SYNOPSIS ✨

#include <ip6.h>

char*      fmtip6(unsigned char* addr, int bits);
int        strtoip6(const char* str, char** end, unsigned char* addr, unsigned char* bits);

πŸ’… DESCRIPTION πŸ’…

  • 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. It's giving "format it, hand you the pointer, slay" energy. πŸ’–
  • 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. It returns 0 on success, -1 on failure. fr fr, that's the whole deal. πŸ¦‹

πŸ”₯ SEE ALSO πŸ”₯

  • dss(1) β€” the one and only see-also on this page, bestie. Go check it out. πŸ‘‘

πŸŽ€ okay that's the whole manual page. footer sign-off: IP6(3) πŸ’… β€” the original footer doesn't list a version or date, so no invented details here, bestie. bye! πŸŽ€

πŸ“¦ where this page comes from