Deleted Added
full compact
print.c (313537) print.c (327234)
1/*
2 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and

--- 212 unchanged lines hidden (view full) ---

221 { ppp_hdlc_if_print, DLT_PPP_SERIAL },
222#endif
223 { NULL, 0 },
224};
225
226static void ndo_default_print(netdissect_options *ndo, const u_char *bp,
227 u_int length);
228
1/*
2 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and

--- 212 unchanged lines hidden (view full) ---

221 { ppp_hdlc_if_print, DLT_PPP_SERIAL },
222#endif
223 { NULL, 0 },
224};
225
226static void ndo_default_print(netdissect_options *ndo, const u_char *bp,
227 u_int length);
228
229static void ndo_error(netdissect_options *ndo, const char *fmt, ...)
230 __attribute__((noreturn))
231#ifdef __ATTRIBUTE___FORMAT_OK
232 __attribute__((format (printf, 2, 3)))
233#endif /* __ATTRIBUTE___FORMAT_OK */
234 ;
235static void ndo_warning(netdissect_options *ndo, const char *fmt, ...)
236#ifdef __ATTRIBUTE___FORMAT_OK
237 __attribute__((format (printf, 2, 3)))
238#endif /* __ATTRIBUTE___FORMAT_OK */
239 ;
229static void ndo_error(netdissect_options *ndo,
230 FORMAT_STRING(const char *fmt), ...)
231 NORETURN PRINTFLIKE(2, 3);
232static void ndo_warning(netdissect_options *ndo,
233 FORMAT_STRING(const char *fmt), ...)
234 PRINTFLIKE(2, 3);
240
235
241static int ndo_printf(netdissect_options *ndo, const char *fmt, ...)
242#ifdef __ATTRIBUTE___FORMAT_OK
243 __attribute ((format (printf, 2, 3)))
244#endif /* __ATTRIBUTE___FORMAT_OK */
245 ;
236static int ndo_printf(netdissect_options *ndo,
237 FORMAT_STRING(const char *fmt), ...)
238 PRINTFLIKE(2, 3);
246
247void
248init_print(netdissect_options *ndo, uint32_t localnet, uint32_t mask,
249 uint32_t timezone_offset)
250{
251
252 thiszone = timezone_offset;
253 init_addrtoname(ndo, localnet, mask);

--- 231 unchanged lines hidden ---
239
240void
241init_print(netdissect_options *ndo, uint32_t localnet, uint32_t mask,
242 uint32_t timezone_offset)
243{
244
245 thiszone = timezone_offset;
246 init_addrtoname(ndo, localnet, mask);

--- 231 unchanged lines hidden ---