Changeset 89ac5513 in mainline for uspace/srv/net/udp/udp_type.h


Ignore:
Timestamp:
2013-06-23T19:54:53Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ddb1922
Parents:
3abf0760 (diff), 96cbd18 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    r3abf0760 r89ac5513  
    4040#include <socket_core.h>
    4141#include <sys/types.h>
     42#include <inet/addr.h>
    4243
    4344#define UDP_FRAGMENT_SIZE 4096
     
    5152        UDP_EUNSPEC,
    5253        /* No route to destination */
    53         UDP_ENOROUTE
     54        UDP_ENOROUTE,
     55        /** Association reset by user */
     56        UDP_ERESET
    5457} udp_error_t;
    5558
    5659typedef enum {
    57         XF_DUMMY        = 0x1
     60        XF_DUMMY = 0x1
    5861} xflags_t;
    59 
    60 typedef struct {
    61         uint32_t ipv4;
    62 } netaddr_t;
    63 
    64 enum netaddr {
    65         UDP_IPV4_ANY = 0
    66 };
    6762
    6863enum udp_port {
     
    7166
    7267typedef struct {
    73         netaddr_t addr;
     68        inet_addr_t addr;
    7469        uint16_t port;
    7570} udp_sock_t;
     
    9186typedef struct {
    9287        /** Source address */
    93         netaddr_t src;
     88        inet_addr_t src;
    9489        /** Destination address */
    95         netaddr_t dest;
    96 
     90        inet_addr_t dest;
     91       
    9792        /** Encoded PDU data including header */
    9893        void *data;
     
    118113        /** Association identification (local and foreign socket) */
    119114        udp_sockpair_t ident;
     115
     116        /** True if association was reset by user */
     117        bool reset;
    120118
    121119        /** True if association was deleted by user */
Note: See TracChangeset for help on using the changeset viewer.