Changeset 10002 for source/ariba


Ignore:
Timestamp:
Aug 1, 2011, 6:04:12 PM (13 years ago)
Author:
Christoph Mayer
Message:

-android fix, does not support getprotobyname

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/transport/tcpip/protlib/threadsafe_db.cpp

    r9686 r10002  
    154154
    155155protocol_t tsdb::getprotobyname(const char* pname, bool *res) {
     156
     157#ifdef ANDROID
     158        if(strcmp(pname, "tcp") == 0) return tsdb::tcp_id;
     159        else if(strcmp(pname, "udp") == 0) return tsdb::udp_id;
     160        else if(strcmp(pname, "sctp") == 0) return tsdb::sctp_id;
     161        else return 0;
     162#endif
     163
    156164        register protocol_t pnum;
    157165        struct protoent* entry = NULL;
Note: See TracChangeset for help on using the changeset viewer.