aboutsummaryrefslogtreecommitdiff
path: root/sys/net/mppcc.c
Commit message (Collapse)AuthorAgeFilesLines
* kernel: provide panicky version of __unreachableKyle Evans2020-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | __builtin_unreachable doesn't raise any compile-time warnings/errors on its own, so problems with its usage can't be easily detected. While it would be nice for this situation to change and compilers to at least add a warning for trivial cases where local state means the instruction can't be reached, this isn't the case at the moment and likely will not happen. This commit adds an __assert_unreachable, whose intent is incredibly clear: it asserts that this instruction is unreachable. On INVARIANTS builds, it's a panic(), and on non-INVARIANTS it expands to __unreachable(). Existing users of __unreachable() are converted to __assert_unreachable, to improve debuggability if this assumption is violated. Reviewed by: mjg Differential Revision: https://reviews.freebsd.org/D23793 Notes: svn path=/head/; revision=361011
* ng_mppc(4):: basic readability cleanups.Pedro F. Giffuni2016-07-091-1/+2
| | | | | | | | | | | In particular use __unreachable() to appease static analyzers. No functional change. CID: 1356591 MFC after: 3 days Notes: svn path=/head/; revision=302476
* ng_mppc(4): Bring netgraph(3) MPPC compression support.Pedro F. Giffuni2016-06-071-0/+299
Support for compression has been available from July 2007 but it was never imported due to concerns with patents once held by STAC/HiFn. The issues have clearly been resolved so bring it in now. Special thanks to Brett Glass for preserving the code and pointing documentation for the expiration case. Obtained from: mav (through Brett Glass) Relnotes: yes MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D6739 Notes: svn path=/head/; revision=301549