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

Function FindProtoOut

freebsd/netinet/libalias/alias_db.c:1440–1461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1438}
1439
1440struct alias_link *
1441FindProtoOut(struct libalias *la, struct in_addr src_addr,
1442 struct in_addr dst_addr,
1443 u_char proto)
1444{
1445 struct alias_link *lnk;
1446
1447 LIBALIAS_LOCK_ASSERT(la);
1448 lnk = FindLinkOut(la, src_addr, dst_addr,
1449 NO_SRC_PORT, NO_DEST_PORT,
1450 proto, 1);
1451
1452 if (lnk == NULL) {
1453 struct in_addr alias_addr;
1454
1455 alias_addr = FindAliasAddress(la, src_addr);
1456 lnk = AddLink(la, src_addr, dst_addr, alias_addr,
1457 NO_SRC_PORT, NO_DEST_PORT, 0,
1458 proto);
1459 }
1460 return (lnk);
1461}
1462
1463struct alias_link *
1464FindUdpTcpIn(struct libalias *la, struct in_addr dst_addr,

Callers 1

ProtoAliasOutFunction · 0.85

Calls 3

FindLinkOutFunction · 0.85
FindAliasAddressFunction · 0.85
AddLinkFunction · 0.85

Tested by

no test coverage detected