Add native SCTP encapsulation.

svn path=/trunk/; revision=46244
This commit is contained in:
Michael Tüxen 2012-11-28 12:16:12 +00:00
parent bd3b559725
commit 99d406059f
4 changed files with 7 additions and 0 deletions

View File

@ -4277,6 +4277,7 @@ proto_reg_handoff_sctp(void)
data_handle = find_dissector("data");
sctp_handle = find_dissector("sctp");
dissector_add_uint("wtap_encap", WTAP_ENCAP_SCTP, sctp_handle);
dissector_add_uint("ip.proto", IP_PROTO_SCTP, sctp_handle);
dissector_add_uint("udp.port", UDP_TUNNELING_PORT, sctp_handle);
}

View File

@ -392,6 +392,8 @@ static const struct {
{ 243, WTAP_ENCAP_MPEG_2_TS },
/* NFC LLCP */
{ 245, WTAP_ENCAP_NFC_LLCP },
/* SCTP */
{ 248, WTAP_ENCAP_SCTP},
/*
* To repeat:

View File

@ -596,6 +596,9 @@ static struct encap_type_info encap_table_base[] = {
/* WTAP_ENCAP_AX25 */
{ "Amateur Radio AX.25", "ax25" },
/* WTAP_ENCAP_SCTP */
{ "SCTP", "sctp" },
};
gint wtap_num_encap_types = sizeof(encap_table_base) / sizeof(struct encap_type_info);

View File

@ -239,6 +239,7 @@ extern "C" {
#define WTAP_ENCAP_DBUS 147
#define WTAP_ENCAP_AX25_KISS 148
#define WTAP_ENCAP_AX25 149
#define WTAP_ENCAP_SCTP 150
#define WTAP_NUM_ENCAP_TYPES wtap_get_num_encap_types()