add capture hooks to libsofia

This commit is contained in:
Anthony Minessale committed 2011-07-31 18:36:05 -05:00
1 parent 00e0f87dcb
commit 3e029f0dfb
11 files changed
+305 -3

No files matched your search

@@ -114,6 +114,29 @@ struct msg_buffer_s {
msg_payload_t *b_chunks; /**< List of body chunks */
};
struct hep_hdr{
u_int8_t hp_v; /* version */
u_int8_t hp_l; /* length */
u_int8_t hp_f; /* family */
u_int8_t hp_p; /* protocol */
u_int16_t hp_sport; /* source port */
u_int16_t hp_dport; /* destination port */
};
struct hep_iphdr{
struct in_addr hp_src;
struct in_addr hp_dst; /* source and dest address */
};
#if SU_HAVE_IN6
struct hep_ip6hdr {
struct in6_addr hp6_src; /* source address */
struct in6_addr hp6_dst; /* destination address */
};
#endif
/** Maximum size when streaming. */
#define MSG_SSIZE_MAX (USIZE_MAX)