Changeset 1212:c38bb8b69c43 in freeDiameter
- Timestamp:
- Jun 17, 2013, 7:19:53 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/dbg_interactive/messages.i
r1127 r1212 342 342 void set_rtd(struct rt_data *DISOWN) { 343 343 struct rt_data * r = DISOWN; 344 int ret = fd_msg_rt_associate($self, &r);344 int ret = fd_msg_rt_associate($self, r); 345 345 if (ret != 0) { 346 346 DI_ERROR(ret, NULL, NULL); -
include/freeDiameter/libfdproto.h
r1193 r1212 2502 2502 * EINVAL: a parameter is invalid 2503 2503 */ 2504 int fd_msg_rt_associate( struct msg * msg, struct rt_data * *rtd );2504 int fd_msg_rt_associate( struct msg * msg, struct rt_data * rtd ); 2505 2505 int fd_msg_rt_get ( struct msg * msg, struct rt_data ** rtd ); 2506 2506 -
libfdcore/routing_dispatch.c
r1190 r1212 943 943 CHECK_FCT( fd_msg_browse(avp, MSG_BRW_NEXT, &avp, NULL) ); 944 944 } 945 946 /* Save the routing information in the message */ 947 CHECK_FCT( fd_msg_rt_associate ( msgptr, rtd ) ); 945 948 } 946 949 … … 985 988 /* Order the candidate peers by score attributed by the callbacks */ 986 989 CHECK_FCT( fd_rtd_candidate_reorder(candidates) ); 987 988 /* Save the routing information in the message */989 CHECK_FCT( fd_msg_rt_associate ( msgptr, &rtd ) );990 990 991 991 /* Now try sending the message */ -
libfdproto/messages.c
r1205 r1212 1298 1298 1299 1299 /* Associate routing lists */ 1300 int fd_msg_rt_associate( struct msg * msg, struct rt_data * *rtd )1300 int fd_msg_rt_associate( struct msg * msg, struct rt_data * rtd ) 1301 1301 { 1302 1302 TRACE_ENTRY( "%p %p", msg, rtd ); … … 1304 1304 CHECK_PARAMS( CHECK_MSG(msg) && rtd ); 1305 1305 1306 msg->msg_rtdata = *rtd; 1307 *rtd = NULL; 1306 msg->msg_rtdata = rtd; 1308 1307 1309 1308 return 0; … … 1317 1316 1318 1317 *rtd = msg->msg_rtdata; 1319 msg->msg_rtdata = NULL;1320 1318 1321 1319 return 0;
Note: See TracChangeset
for help on using the changeset viewer.