mcr / tcpdump

the TCPdump network dissector. now moved to:
https://github.com/the-tcpdump-group/tcpdump
Other
84 stars 2 forks source link

Multipath TCP (RFC 6824) support #53

Closed gdetal closed 11 years ago

gdetal commented 11 years ago

Multipath TCP (MPTCP) is a new extension to TCP that is being standardised at the IETF. We are currently maintaining the reference Linux implementation @multipath-tcp.

The patch allows tcpdump to parse MPTCP options (that are in fact TCP options) in order to print useful information. A sample output can be found at http://pastebin.com/BsJP1w4a.

Signed-off-by: Gregory Detal gregory.detal@uclouvain.be

infrastation commented 11 years ago

It is considered good to complement new decoders with a small .pcap file and relevant text output, that together constitute a basic regression test of the make check command (see a few recent commits for an example).

fenner commented 11 years ago

I know that not all files are consistent, but tcpdump generally uses an 8 space initial indent and 4 or 8 space subsequent indent. 2 space indentation, therefore, ends up looking weird. Can you use something closer to what other files use?

mcr commented 11 years ago

Also, github says that your patch may need to be rebased first. Very happy to accept MPTCP... the next release will go out during the IETF86 meeting.

gdetal commented 11 years ago

Thanks for the feedback, I have adapted my commit accordingly.

@infrastation I've added two regression test @fenner I was using tab and so I switched to 8 spaces indent @mcr I have rebased my branch

gdetal commented 11 years ago

Hello,

Am I missing something ? I've updated the commit and have done a push -f on my branch. Yet the merge is not yet accepted. Is is the right way to do this ?

infrastation commented 11 years ago

Don't worry, sometimes it takes a few days.

gdetal commented 11 years ago

@infrastation Your comment disappeared but thanks for the feedback. I updated my commit to use the PRI output format.

infrastation commented 11 years ago

Functions mp_fail_print() and mp_fast_close_print() should return a value (warning seen when compiling with make CCOPT=-Wall).

infrastation commented 11 years ago

There is some more space for improvement in this code, please see below.

guyharris commented 11 years ago

Cherry-picked to the 4.4 branch.

guyharris commented 11 years ago

Functions mp_fail_print() and mp_fast_close_print() should return a value (warning seen when compiling with make CCOPT=-Wall).

I've checked in a fix for that and cherry-picked it to the 4.4 branch.