Changeset 1c7ba2d in mainline for uspace/lib/c/include/inet/addr.h


Ignore:
Timestamp:
2013-04-30T19:41:13Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4e716180, 8fdb18e
Parents:
3495654
Message:

inetsrv can use inet/addr.h from libc for address types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/inet/addr.h

    r3495654 r1c7ba2d  
    3636#define LIBC_INET_ADDR_H_
    3737
    38 #include <inet/inet.h>
     38#include <stdint.h>
     39
     40/** Node address */
     41typedef struct {
     42        uint32_t ipv4;
     43} inet_addr_t;
     44
     45/** Network address */
     46typedef struct {
     47        /** Address */
     48        uint32_t ipv4;
     49        /** Number of valid bits in @c ipv4 */
     50        int bits;
     51} inet_naddr_t;
    3952
    4053extern int inet_naddr_parse(const char *, inet_naddr_t *);
Note: See TracChangeset for help on using the changeset viewer.