Navigation



Ignore:
Timestamp:
Feb 9, 2011, 3:26:58 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Large UNTESTED commit with the following changes:

  • Improved DiameterIdentity? handling (esp. interationalization issues), and improve efficiency of some string operations in peers, sessions, and dictionary modules (closes #7)
  • Cleanup in the session module to free only unreferenced sessions (#16)
  • Removed fd_cpu_flush_cache(), replaced by more robust alternatives.
  • Improved peer state machine algorithm to counter SCTP multistream race condition.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/dbg_interactive/routing.i

    r640 r706  
    5555                fd_rtd_free(&r);
    5656        }
    57         void add(char * peerid, char * realm) {
    58                 int ret = fd_rtd_candidate_add($self, peerid, realm);
     57        %apply (char *STRING, int LENGTH) { (char * peerid, size_t peeridlen) };
     58        %apply (char *STRING, int LENGTH) { (char * realm, size_t realmlen) };
     59        void add(char * peerid, size_t peeridlen, char * realm, size_t realmlen) {
     60                int ret = fd_rtd_candidate_add($self, peerid, peeridlen, realm, realmlen);
    5961                if (ret != 0) {
    6062                        DI_ERROR(ret, NULL, NULL);
     
    6264        }
    6365        void remove(char * STRING, size_t LENGTH) {
    64                 fd_rtd_candidate_del($self, STRING, LENGTH);
    65         }
    66         void error(char * dest, char * STRING, size_t LENGTH, uint32_t rcode) {
    67                 int ret =  fd_rtd_error_add($self, dest, (uint8_t *)STRING, LENGTH, rcode);
     66                fd_rtd_candidate_del($self, (os0_t)STRING, LENGTH);
     67        }
     68        void error(char * peerid, size_t peeridlen, char * STRING, size_t LENGTH, uint32_t rcode) {
     69                int ret =  fd_rtd_error_add($self, peerid, peeridlen, (os0_t)STRING, LENGTH, rcode);
    6870                if (ret != 0) {
    6971                        DI_ERROR(ret, NULL, NULL);
Note: See TracChangeset for help on using the changeset viewer.