4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
14 #include <epan/tvbuff.h>
15 #include <wsutil/crc10.h>
16 #include <epan/crc10-tvb.h>
18 /* update the data block's CRC-10 remainder one byte at a time */
20 update_crc10_by_bytes_tvb(guint16 crc10, tvbuff_t *tvb, int offset, int len)
24 tvb_ensure_bytes_exist(tvb, offset, len); /* len == -1 not allowed */
25 buf = tvb_get_ptr(tvb, offset, len);
27 return update_crc10_by_bytes(crc10, buf, len);
31 * Editor modelines - http://www.wireshark.org/tools/modelines.html
36 * indent-tabs-mode: nil
39 * vi: set shiftwidth=4 tabstop=8 expandtab:
40 * :indentSize=4:tabSize=8:noTabs=true: