Changeset e52b4b5 in mainline


Ignore:
Timestamp:
2013-06-28T15:27:11Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b5cf742a
Parents:
4339f09
Message:

add in6addr_any

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/netecho/netecho.c

    r4339f09 re52b4b5  
    380380                address_in6.sin6_family = AF_INET6;
    381381                address_in6.sin6_port = htons(port);
     382                address_in6.sin6_addr = in6addr_any;
    382383                address = (struct sockaddr *) &address_in6;
    383384                addrlen = sizeof(address_in6);
  • uspace/lib/c/generic/net/inet.c

    r4339f09 re52b4b5  
    11/*
    2  * Copyright (c) 2009 Lukas Mejdrech
     2 * Copyright (c) 2013 Martin Decky
    33 * All rights reserved.
    44 *
     
    4444#include <stdio.h>
    4545#include <str.h>
     46
     47const in6_addr_t in6addr_any = {
     48        { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
     49};
    4650
    4751static int inet_ntop4(const uint8_t *data, char *address, size_t length)
  • uspace/lib/c/include/net/in6.h

    r4339f09 re52b4b5  
    6767} sockaddr_in6_t;
    6868
     69extern const in6_addr_t in6addr_any;
     70
    6971#endif
    7072
Note: See TracChangeset for help on using the changeset viewer.