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

Function SetExpire

freebsd/netinet/libalias/alias_db.c:2031–2047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2029}
2030
2031void
2032SetExpire(struct alias_link *lnk, int expire)
2033{
2034 if (expire == 0) {
2035 lnk->flags &= ~LINK_PERMANENT;
2036 DeleteLink(lnk);
2037 } else if (expire == -1) {
2038 lnk->flags |= LINK_PERMANENT;
2039 } else if (expire > 0) {
2040 lnk->expire_time = expire;
2041 } else {
2042#ifdef LIBALIAS_DEBUG
2043 fprintf(stderr, "PacketAlias/SetExpire(): ");
2044 fprintf(stderr, "error in expire parameter\n");
2045#endif
2046 }
2047}
2048
2049void
2050ClearCheckNewLink(struct libalias *la)

Callers 3

AliasHandlePptpOutFunction · 0.85
AliasHandlePptpInFunction · 0.85
LibAliasGetFragmentFunction · 0.85

Calls 1

DeleteLinkFunction · 0.85

Tested by

no test coverage detected