Changeset 99c2c69e in mainline for uspace/srv/net/inetsrv/sroute.c
- Timestamp:
- 2013-09-13T00:36:30Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67fbd5e
- Parents:
- 7f84430 (diff), 11d41be5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/sroute.c
r7f84430 r99c2c69e 89 89 } 90 90 91 /** Find addressobject matching address @a addr.91 /** Find static route object matching address @a addr. 92 92 * 93 93 * @param addr Address … … 102 102 fibril_mutex_lock(&sroute_list_lock); 103 103 104 list_foreach(sroute_list, link) { 105 inet_sroute_t *sroute = list_get_instance(link, 106 inet_sroute_t, sroute_list); 107 104 list_foreach(sroute_list, sroute_list, inet_sroute_t, sroute) { 108 105 uint8_t dest_bits; 109 106 uint16_t dest_af = inet_naddr_get(&sroute->dest, NULL, NULL, … … 147 144 fibril_mutex_lock(&sroute_list_lock); 148 145 149 list_foreach(sroute_list, link) { 150 inet_sroute_t *sroute = list_get_instance(link, 151 inet_sroute_t, sroute_list); 152 146 list_foreach(sroute_list, sroute_list, inet_sroute_t, sroute) { 153 147 if (str_cmp(sroute->name, name) == 0) { 154 148 fibril_mutex_unlock(&sroute_list_lock); … … 176 170 fibril_mutex_lock(&sroute_list_lock); 177 171 178 list_foreach(sroute_list, link) { 179 inet_sroute_t *sroute = list_get_instance(link, 180 inet_sroute_t, sroute_list); 181 172 list_foreach(sroute_list, sroute_list, inet_sroute_t, sroute) { 182 173 if (sroute->id == id) { 183 174 fibril_mutex_unlock(&sroute_list_lock); … … 207 198 208 199 i = 0; 209 list_foreach(sroute_list, link) { 210 inet_sroute_t *sroute = list_get_instance(link, 211 inet_sroute_t, sroute_list); 212 200 list_foreach(sroute_list, sroute_list, inet_sroute_t, sroute) { 213 201 id_list[i++] = sroute->id; 214 202 }
Note:
See TracChangeset
for help on using the changeset viewer.