Commit 5ccd273c authored by Pekka Pessi's avatar Pekka Pessi

nta: fixed type checking on NTATAG_UDP_MTU()/NTATAG_UDP_MTU_REF()

darcs-hash:20071011154520-88462-1b0b62cdd8053c3ff95d30cc367d8ff95964f5fd.gz
parent 98d932d1
...@@ -914,7 +914,7 @@ int agent_set_params(nta_agent_t *agent, tagi_t *tags) ...@@ -914,7 +914,7 @@ int agent_set_params(nta_agent_t *agent, tagi_t *tags)
unsigned bad_resp_mask = agent->sa_bad_resp_mask; unsigned bad_resp_mask = agent->sa_bad_resp_mask;
usize_t maxsize = agent->sa_maxsize; usize_t maxsize = agent->sa_maxsize;
unsigned max_forwards = agent->sa_max_forwards->mf_count; unsigned max_forwards = agent->sa_max_forwards->mf_count;
usize_t udp_mtu = agent->sa_udp_mtu; unsigned udp_mtu = agent->sa_udp_mtu;
unsigned sip_t1 = agent->sa_t1; unsigned sip_t1 = agent->sa_t1;
unsigned sip_t2 = agent->sa_t2; unsigned sip_t2 = agent->sa_t2;
unsigned sip_t4 = agent->sa_t4; unsigned sip_t4 = agent->sa_t4;
......
...@@ -415,7 +415,7 @@ tag_typedef_t ntatag_maxsize = USIZETAG_TYPEDEF(maxsize); ...@@ -415,7 +415,7 @@ tag_typedef_t ntatag_maxsize = USIZETAG_TYPEDEF(maxsize);
* nta_agent_create(), nta_agent_set_params() * nta_agent_create(), nta_agent_set_params()
* *
* @par Parameter type * @par Parameter type
* - #usize_t * - unsigned
* *
* @par Values * @par Values
* - Maximum size of an outgoing UDP request * - Maximum size of an outgoing UDP request
......
...@@ -150,10 +150,10 @@ NTA_DLL extern tag_typedef_t ntatag_maxsize_ref; ...@@ -150,10 +150,10 @@ NTA_DLL extern tag_typedef_t ntatag_maxsize_ref;
#define NTATAG_MAXSIZE_REF(x) ntatag_maxsize_ref, tag_usize_vr(&(x)) #define NTATAG_MAXSIZE_REF(x) ntatag_maxsize_ref, tag_usize_vr(&(x))
NTA_DLL extern tag_typedef_t ntatag_udp_mtu; NTA_DLL extern tag_typedef_t ntatag_udp_mtu;
#define NTATAG_UDP_MTU(x) ntatag_udp_mtu, tag_usize_v((x)) #define NTATAG_UDP_MTU(x) ntatag_udp_mtu, tag_uint_v((x))
NTA_DLL extern tag_typedef_t ntatag_udp_mtu_ref; NTA_DLL extern tag_typedef_t ntatag_udp_mtu_ref;
#define NTATAG_UDP_MTU_REF(x) ntatag_udp_mtu_ref, tag_usize_vr(&(x)) #define NTATAG_UDP_MTU_REF(x) ntatag_udp_mtu_ref, tag_uint_vr(&(x))
NTA_DLL extern tag_typedef_t ntatag_max_forwards; NTA_DLL extern tag_typedef_t ntatag_max_forwards;
#define NTATAG_MAX_FORWARDS(x) ntatag_max_forwards, tag_uint_v((x)) #define NTATAG_MAX_FORWARDS(x) ntatag_max_forwards, tag_uint_v((x))
......
...@@ -508,7 +508,7 @@ int api_test_params(agent_t *ag) ...@@ -508,7 +508,7 @@ int api_test_params(agent_t *ag)
unsigned blacklist = -1; unsigned blacklist = -1;
unsigned debug_drop_prob = -1; unsigned debug_drop_prob = -1;
unsigned max_forwards = -1; unsigned max_forwards = -1;
unsigned maxsize = -1; usize_t maxsize = -1;
unsigned preload = -1; unsigned preload = -1;
unsigned progress = -1; unsigned progress = -1;
unsigned sip_t1 = -1; unsigned sip_t1 = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment