Changeset 58e9dec in mainline for uspace/srv/net/udp


Ignore:
Timestamp:
2015-05-22T07:31:57Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2989c7e
Parents:
2f19103
Message:

Definitions for RFC 6335 port number ranges.

Location:
uspace/srv/net/udp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/udp/assoc.c

    r2f19103 r58e9dec  
    3939#include <stdbool.h>
    4040#include <fibril_synch.h>
     41#include <inet/endpoint.h>
    4142#include <io/log.h>
    4243#include <stdlib.h>
     
    270271
    271272        if ((inet_addr_is_any(&epp.remote.addr)) ||
    272             (epp.remote.port == UDP_PORT_ANY))
     273            (epp.remote.port == inet_port_any))
    273274                return EINVAL;
    274275
     
    422423        log_msg(LOG_DEFAULT, LVL_NOTE, "addr OK");
    423424
    424         if ((patt->port != UDP_PORT_ANY) &&
     425        if ((patt->port != inet_port_any) &&
    425426            (patt->port != ep->port))
    426427                return false;
     
    476477                    aepp, la, ra);
    477478                /* Skip unbound associations */
    478                 if (aepp->local.port == UDP_PORT_ANY) {
     479                if (aepp->local.port == inet_port_any) {
    479480                        log_msg(LOG_DEFAULT, LVL_NOTE, "skip unbound");
    480481                        continue;
  • uspace/srv/net/udp/udp_type.h

    r2f19103 r58e9dec  
    6161        XF_DUMMY = 0x1
    6262} xflags_t;
    63 
    64 enum udp_port {
    65         UDP_PORT_ANY = 0
    66 };
    6763
    6864/** Unencoded UDP message (datagram) */
Note: See TracChangeset for help on using the changeset viewer.