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

Function ng_ppp_bump_mseq

freebsd/netgraph/ng_ppp.c:1648–1665  ·  view source on GitHub ↗

* If new mseq > current then set it and update all active links */

Source from the content-addressed store, hash-verified

1646 * If new mseq > current then set it and update all active links
1647 */
1648static void
1649ng_ppp_bump_mseq(node_p node, int32_t new_mseq)
1650{
1651 const priv_p priv = NG_NODE_PRIVATE(node);
1652 int i;
1653
1654 if (MP_RECV_SEQ_DIFF(priv, priv->mseq, new_mseq) < 0) {
1655 priv->mseq = new_mseq;
1656 for (i = 0; i < priv->numActiveLinks; i++) {
1657 struct ng_ppp_link *const alink =
1658 &priv->links[priv->activeLinks[i]];
1659
1660 if (MP_RECV_SEQ_DIFF(priv,
1661 alink->seq, new_mseq) < 0)
1662 alink->seq = new_mseq;
1663 }
1664 }
1665}
1666
1667/*
1668 * Examine our list of fragments, and determine if there is a

Callers 2

ng_ppp_get_packetFunction · 0.85
ng_ppp_frag_dropFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected