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/crc6.h>
16 #include <epan/crc6-tvb.h>
19 crc6_compute_tvb(tvbuff_t
*tvb
, int len
)
23 tvb_ensure_bytes_exist(tvb
, 0, len
); /* len == -1 not allowed */
24 buf
= tvb_get_ptr(tvb
, 0, len
);
26 return crc6_0X6F(0, buf
, len
);
30 * Editor modelines - https://www.wireshark.org/tools/modelines.html
35 * indent-tabs-mode: nil
38 * vi: set shiftwidth=4 tabstop=8 expandtab:
39 * :indentSize=4:tabSize=8:noTabs=true: