It is probably possible with netgraph, but there is no netgraph module currently in existence that I know of that will do what ika256 needs.
If we're talking about the easiest way to write something that does it, another option would be to look at the source of ports/net/tcpmssd and modify it appropriately.