Commit 3c448714 authored by Pekka Pessi's avatar Pekka Pessi

NTATAG_SERVER_RPORT() now accepts uint argument

darcs-hash:20080527153041-db55f-05595623ea585b686ba927932dfe05d49f388b29.gz
parent 53fe6f75
......@@ -1176,6 +1176,10 @@ int agent_set_params(nta_agent_t *agent, tagi_t *tags)
progress = 60 * 1000;
agent->sa_progress = progress;
if (server_rport > 2)
server_rport = 1;
agent->sa_server_rport = server_rport;
agent->sa_bad_req_mask = bad_req_mask;
agent->sa_bad_resp_mask = bad_resp_mask;
......@@ -1197,7 +1201,6 @@ int agent_set_params(nta_agent_t *agent, tagi_t *tags)
agent->sa_smime = smime;
agent->sa_flags = flags & MSG_FLG_USERMASK;
agent->sa_rport = rport != 0;
agent->sa_server_rport = server_rport != 0;
agent->sa_tcp_rport = tcp_rport != 0;
agent->sa_preload = preload;
agent->sa_tport_threadpool = threadpool;
......
......@@ -358,10 +358,10 @@ NTA_DLL extern tag_typedef_t ntatag_client_rport_ref;
#define NTATAG_RPORT_REF(x) ntatag_client_rport_ref, tag_bool_vr(&(x))
NTA_DLL extern tag_typedef_t ntatag_server_rport;
#define NTATAG_SERVER_RPORT(x) ntatag_server_rport, tag_bool_v((x))
#define NTATAG_SERVER_RPORT(x) ntatag_server_rport, tag_uint_v((x))
NTA_DLL extern tag_typedef_t ntatag_server_rport_ref;
#define NTATAG_SERVER_RPORT_REF(x) ntatag_server_rport_ref, tag_bool_vr(&(x))
#define NTATAG_SERVER_RPORT_REF(x) ntatag_server_rport_ref, tag_uint_vr(&(x))
NTA_DLL extern tag_typedef_t ntatag_tcp_rport;
#define NTATAG_TCP_RPORT(x) ntatag_tcp_rport, tag_bool_v((x))
......
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