| 1241 | */ |
| 1242 | |
| 1243 | int |
| 1244 | LibAliasSaveFragment(struct libalias *la, void *ptr) |
| 1245 | { |
| 1246 | int iresult; |
| 1247 | struct alias_link *lnk; |
| 1248 | struct ip *pip; |
| 1249 | |
| 1250 | LIBALIAS_LOCK(la); |
| 1251 | pip = (struct ip *)ptr; |
| 1252 | lnk = AddFragmentPtrLink(la, pip->ip_src, pip->ip_id); |
| 1253 | iresult = PKT_ALIAS_ERROR; |
| 1254 | if (lnk != NULL) { |
| 1255 | SetFragmentPtr(lnk, ptr); |
| 1256 | iresult = PKT_ALIAS_OK; |
| 1257 | } |
| 1258 | LIBALIAS_UNLOCK(la); |
| 1259 | return (iresult); |
| 1260 | } |
| 1261 | |
| 1262 | void * |
| 1263 | LibAliasGetFragment(struct libalias *la, void *ptr) |
nothing calls this directly
no test coverage detected