Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/net/in6.h

    re52b4b5 re4554d4  
    4343
    4444/** INET6 string address maximum length. */
    45 #define INET6_ADDRSTRLEN  (8 * 4 + 7 + 1)
     45#define INET6_ADDRSTRLEN        (8 * 4 + 7 + 1)
     46
     47/** Type definition of the INET6 address.
     48 * @see in6_addr
     49 */
     50typedef struct in6_addr in6_addr_t;
     51
     52/** Type definition of the INET6 socket address.
     53 * @see sockaddr_in6
     54 */
     55typedef struct sockaddr_in6     sockaddr_in6_t;
    4656
    4757/** INET6 address. */
    48 typedef struct in6_addr {
     58struct in6_addr {
    4959        /** 16 byte IPv6 address. */
    50         uint8_t s6_addr[16];
    51 } in6_addr_t;
     60        unsigned char s6_addr[16];
     61};
    5262
    5363/** INET6 socket address.
    5464 * @see sockaddr
    5565 */
    56 typedef struct sockaddr_in6 {
     66struct sockaddr_in6 {
    5767        /** Address family. Should be AF_INET6. */
    5868        uint16_t sin6_family;
     
    6575        /** Scope identifier. */
    6676        uint32_t sin6_scope_id;
    67 } sockaddr_in6_t;
    68 
    69 extern const in6_addr_t in6addr_any;
     77};
    7078
    7179#endif
Note: See TracChangeset for help on using the changeset viewer.