Changeset 165:4679ff581d6a in freeDiameter for freeDiameter/p_sr.c
- Timestamp:
- Jan 27, 2010, 10:56:54 AM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/p_sr.c
r74 r165 44 44 struct fd_list chain; /* the "o" field points directly to the hop-by-hop of the request (uint32_t *) */ 45 45 struct msg *req; /* A request that was sent and not yet answered. */ 46 uint32_t prevhbh;/* The value to set in the hbh header when the message is retrieved */ 46 47 }; 47 48 … … 77 78 78 79 /* Store a new sent request */ 79 int fd_p_sr_store(struct sr_list * srlist, struct msg **req, uint32_t *hbhloc )80 int fd_p_sr_store(struct sr_list * srlist, struct msg **req, uint32_t *hbhloc, uint32_t hbh_restore) 80 81 { 81 82 struct sentreq * sr; … … 83 84 int match; 84 85 85 TRACE_ENTRY("%p %p %p ", srlist, req, hbhloc);86 TRACE_ENTRY("%p %p %p %x", srlist, req, hbhloc, hbh_restore); 86 87 CHECK_PARAMS(srlist && req && *req && hbhloc); 87 88 … … 90 91 fd_list_init(&sr->chain, hbhloc); 91 92 sr->req = *req; 93 sr->prevhbh = hbh_restore; 92 94 93 95 /* Search the place in the list */ … … 123 125 sr = (struct sentreq *)find_or_next(&srlist->srs, hbh, &match); 124 126 if (!match) { 125 TRACE_DEBUG(INFO, "There is no saved request with this hop-by-hop id ");127 TRACE_DEBUG(INFO, "There is no saved request with this hop-by-hop id (%x)", hbh); 126 128 *req = NULL; 127 129 } else { 130 /* Restore hop-by-hop id */ 131 *((uint32_t *)sr->chain.o) = sr->prevhbh; 128 132 /* Unlink */ 129 133 fd_list_unlink(&sr->chain);
Note: See TracChangeset
for help on using the changeset viewer.