Changeset 19a4f73 in mainline for uspace/srv/net/udp/udp_type.h


Ignore:
Timestamp:
2013-06-20T15:21:48Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a2e3ee6
Parents:
3e66428
Message:

udp: use new network address infrastructure (towards IPv6 support)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/udp/udp_type.h

    r3e66428 r19a4f73  
    4040#include <socket_core.h>
    4141#include <sys/types.h>
     42#include <inet/addr2.h>
    4243
    4344#define UDP_FRAGMENT_SIZE 4096
     
    5758
    5859typedef enum {
    59         XF_DUMMY        = 0x1
     60        XF_DUMMY = 0x1
    6061} xflags_t;
    61 
    62 typedef struct {
    63         uint32_t ipv4;
    64 } netaddr_t;
    65 
    66 enum netaddr {
    67         UDP_IPV4_ANY = 0
    68 };
    6962
    7063enum udp_port {
     
    7366
    7467typedef struct {
    75         netaddr_t addr;
     68        inet2_addr_t addr;
    7669        uint16_t port;
    7770} udp_sock_t;
     
    9386typedef struct {
    9487        /** Source address */
    95         netaddr_t src;
     88        inet2_addr_t src;
    9689        /** Destination address */
    97         netaddr_t dest;
    98 
     90        inet2_addr_t dest;
     91       
    9992        /** Encoded PDU data including header */
    10093        void *data;
Note: See TracChangeset for help on using the changeset viewer.