Page MenuHomeFreeBSD

Add support for ABORT action in ipfw

Authored by tuexen on Nov 25 2017, 3:06 PM.



This patch adds support for an action for ipfw to send an SCTP packet containing an ABORT chunk. This is similar to the TCP case, where a TCP reset segment is sent.

There is one limitation: When sending an ABORT in response to a packet it should be tested if there is no ABORT in the incoming packet. Currently it is only checked if the first chunk is an ABORT chunk to avoid parsing through the whole packet.

Test Plan

It was tested with packets containing INIT chunks, non-INIT chunks, packets containing no chunks. IPv4 and IPv6 was used. Thanks to Timo Völker for creating some test scripts to test this.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

tuexen created this revision.Nov 25 2017, 3:06 PM
bcr accepted this revision.Nov 25 2017, 3:12 PM
bcr added a subscriber: bcr.

OK from manpages, you just need to bump the .Dd to the date of the actual commit.

This revision is now accepted and ready to land.Nov 25 2017, 3:12 PM
ae added a comment.Nov 26 2017, 2:32 PM

I'm not familiar with SCTP, from other side seems good to me, except some style issues.

480 ↗(On Diff #35765)

It seems this function can be made static.

484 ↗(On Diff #35765)

This line should be moved below according to style(9) :)

tuexen updated this revision to Diff 35811.Nov 26 2017, 6:09 PM

Address comments made by bcr@ and ae@.

This revision now requires review to proceed.Nov 26 2017, 6:09 PM
tuexen marked 2 inline comments as done.Nov 26 2017, 6:10 PM
This revision was automatically updated to reflect the committed changes.

Thanks to bcr@ and ae@ for reviewing this patch so fast!

Best regards