* If new mseq > current then set it and update all active links */
| 1646 | * If new mseq > current then set it and update all active links |
| 1647 | */ |
| 1648 | static void |
| 1649 | ng_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 |
no outgoing calls
no test coverage detected