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

Function FindFragmentIn1

freebsd/netinet/libalias/alias_db.c:1362–1380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1360}
1361
1362struct alias_link *
1363FindFragmentIn1(struct libalias *la, struct in_addr dst_addr,
1364 struct in_addr alias_addr,
1365 u_short ip_id)
1366{
1367 struct alias_link *lnk;
1368
1369 LIBALIAS_LOCK_ASSERT(la);
1370 lnk = FindLinkIn(la, dst_addr, alias_addr,
1371 NO_DEST_PORT, ip_id,
1372 LINK_FRAGMENT_ID, 0);
1373
1374 if (lnk == NULL) {
1375 lnk = AddLink(la, la->nullAddress, dst_addr, alias_addr,
1376 NO_SRC_PORT, NO_DEST_PORT, ip_id,
1377 LINK_FRAGMENT_ID);
1378 }
1379 return (lnk);
1380}
1381
1382struct alias_link *
1383FindFragmentIn2(struct libalias *la, struct in_addr dst_addr, /* Doesn't add a link if

Callers 1

LibAliasInLockedFunction · 0.85

Calls 2

FindLinkInFunction · 0.85
AddLinkFunction · 0.85

Tested by

no test coverage detected