MCPcopy Create free account
hub / github.com/F-Stack/f-stack / LibAliasSaveFragment

Function LibAliasSaveFragment

freebsd/netinet/libalias/alias.c:1243–1260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1241*/
1242
1243int
1244LibAliasSaveFragment(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
1262void *
1263LibAliasGetFragment(struct libalias *la, void *ptr)

Callers

nothing calls this directly

Calls 2

AddFragmentPtrLinkFunction · 0.85
SetFragmentPtrFunction · 0.85

Tested by

no test coverage detected