diff options
-rw-r--r-- | interface.h | 7 | ||||
-rw-r--r-- | netdissect.h | 3 |
2 files changed, 1 insertions, 9 deletions
diff --git a/interface.h b/interface.h index f033fc71..55cecf65 100644 --- a/interface.h +++ b/interface.h @@ -135,13 +135,6 @@ extern const char *nt_errstr(uint32_t); extern int mask62plen(const u_char *); #endif /*INET6*/ -struct cksum_vec { - const uint8_t *ptr; - int len; -}; -extern uint16_t in_cksum(const struct cksum_vec *, int); -extern uint16_t in_cksum_shouldbe(uint16_t, uint16_t); - #ifndef HAVE_BPF_DUMP struct bpf_program; diff --git a/netdissect.h b/netdissect.h index 7c140f1d..24a9ed72 100644 --- a/netdissect.h +++ b/netdissect.h @@ -600,14 +600,13 @@ extern void ospf6_print(netdissect_options *, const u_char *, u_int); extern void babel_print(netdissect_options *, const u_char *, u_int); #endif /*INET6*/ -#if 0 struct cksum_vec { const uint8_t *ptr; int len; }; extern uint16_t in_cksum(const struct cksum_vec *, int); extern uint16_t in_cksum_shouldbe(uint16_t, uint16_t); -#endif + extern int nextproto4_cksum(netdissect_options *ndo, const struct ip *, const uint8_t *, u_int, u_int, u_int); extern int decode_prefix4(netdissect_options *ndo, const u_char *, u_int, char *, u_int); #ifdef INET6 |