int
nd_push_buffer(netdissect_options *ndo, u_char *new_buffer,
- const u_char *new_packetp, u_int newlen)
+ const u_char *new_packetp, const u_int newlen)
{
struct netdissect_saved_packet_info *ndspi;
* set the snapshot end to that new value.
*/
int
-nd_push_snaplen(netdissect_options *ndo, const u_char *bp, u_int newlen)
+nd_push_snaplen(netdissect_options *ndo, const u_char *bp, const u_int newlen)
{
struct netdissect_saved_packet_info *ndspi;
u_int snaplen_remaining;
* atop which the current one was pushed, however.
*/
void
-nd_change_snaplen(netdissect_options *ndo, const u_char *bp, u_int newlen)
+nd_change_snaplen(netdissect_options *ndo, const u_char *bp, const u_int newlen)
{
struct netdissect_saved_packet_info *ndspi;
const u_char *previous_snapend;
PRINTFLIKE_FUNCPTR(2, 3);
};
-extern WARN_UNUSED_RESULT int nd_push_buffer(netdissect_options *, u_char *,
- const u_char *, u_int);
-extern WARN_UNUSED_RESULT int nd_push_snaplen(netdissect_options *,
- const u_char *, u_int);
-extern void nd_change_snaplen(netdissect_options *, const u_char *, u_int);
+extern WARN_UNUSED_RESULT int nd_push_buffer(netdissect_options *, u_char *, const u_char *, const u_int);
+extern WARN_UNUSED_RESULT int nd_push_snaplen(netdissect_options *, const u_char *, const u_int);
+extern void nd_change_snaplen(netdissect_options *, const u_char *, const u_int);
extern void nd_pop_packet_info(netdissect_options *);
extern void nd_pop_all_packet_info(netdissect_options *);