mirror of https://gerrit.osmocom.org/libosmocore
isdndlc: Fix documentation
The documentation was copied 1:1 from the Linux kernel, where it already was wrong and apparently described an earlier implementation. Change-Id: Ib5def2ae3c79f408f2ee0bb4c20fba1437d30c64
This commit is contained in:
parent
d55a209d1c
commit
4ce820ab8d
|
@ -97,13 +97,12 @@ check_frame(struct osmo_isdnhdlc_vars *hdlc)
|
|||
When a new flag is found, the complete frame has been received
|
||||
and the CRC is checked.
|
||||
If a valid frame is found, the function returns the frame length
|
||||
excluding the CRC with the bit HDLC_END_OF_FRAME set.
|
||||
excluding the CRC.
|
||||
If the beginning of a valid frame is found, the function returns
|
||||
the length.
|
||||
If a framing error is found (too many 1s and not a flag) the function
|
||||
returns the length with the bit OSMO_HDLC_FRAMING_ERROR set.
|
||||
If a CRC error is found the function returns the length with the
|
||||
bit OSMO_HDLC_CRC_ERROR set.
|
||||
returns -OSMO_HDLC_FRAMING_ERROR.
|
||||
If a CRC error is found the function returns -OSMO_HDLC_CRC_ERROR.
|
||||
If the frame length exceeds the destination buffer size, the function
|
||||
returns the length with the bit OSMO_HDLC_LENGTH_ERROR set.
|
||||
|
||||
|
|
Loading…
Reference in New Issue