Changeset 3495654 in mainline for uspace/lib/c/include/inet/inet.h


Ignore:
Timestamp:
2013-04-30T19:28:03Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1c7ba2d
Parents:
9e7898e
Message:

Factor out internet address parsing and formatting.

File:
1 edited

Legend:

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

    r9e7898e r3495654  
    4040#define INET_TTL_MAX 255
    4141
     42/** Node address */
    4243typedef struct {
    4344        uint32_t ipv4;
    4445} inet_addr_t;
     46
     47/** Network address */
     48typedef struct {
     49        /** Address */
     50        uint32_t ipv4;
     51        /** Number of valid bits in @c ipv4 */
     52        int bits;
     53} inet_naddr_t;
    4554
    4655typedef struct {
Note: See TracChangeset for help on using the changeset viewer.