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

Function FindPptpInByCallId

freebsd/netinet/libalias/alias_db.c:1595–1613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1593}
1594
1595struct alias_link *
1596FindPptpInByCallId(struct libalias *la, struct in_addr dst_addr,
1597 struct in_addr alias_addr,
1598 u_int16_t dst_call_id)
1599{
1600 u_int i;
1601 struct alias_link *lnk;
1602
1603 LIBALIAS_LOCK_ASSERT(la);
1604 i = StartPointIn(alias_addr, 0, LINK_PPTP);
1605 LIST_FOREACH(lnk, &la->linkTableIn[i], list_in)
1606 if (lnk->link_type == LINK_PPTP &&
1607 lnk->dst_addr.s_addr == dst_addr.s_addr &&
1608 lnk->alias_addr.s_addr == alias_addr.s_addr &&
1609 lnk->dst_port == dst_call_id)
1610 break;
1611
1612 return (lnk);
1613}
1614
1615struct alias_link *
1616FindPptpInByPeerCallId(struct libalias *la, struct in_addr dst_addr,

Callers 1

AliasHandlePptpInFunction · 0.85

Calls 1

StartPointInFunction · 0.85

Tested by

no test coverage detected