Skip to content

Instantly share code, notes, and snippets.

@alain-odea-vgh
Last active October 15, 2015 02:53
Show Gist options
  • Save alain-odea-vgh/71d0d1e5e66482308f2c to your computer and use it in GitHub Desktop.
Save alain-odea-vgh/71d0d1e5e66482308f2c to your computer and use it in GitHub Desktop.
Using DTrace on SmartOS to find who's turning on TCP timestamping globally (and breaking Windows keep-alive)
#!/usr/sbin/dtrace -s
fbt:ip:mod_set_boolean:entry
/stringof(args[2]->mpi_name) == "_tstamp_if_wscale" &&
stringof(args[4]) == "1"/
{
printf("timestamping enabled using %s in VM UUID %s", execname, zonename);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment