Skip to content

Instantly share code, notes, and snippets.

@tehnerd
Created January 28, 2020 00:13
Show Gist options
  • Select an option

  • Save tehnerd/a57a49f41063c1d53616976dfc6f7172 to your computer and use it in GitHub Desktop.

Select an option

Save tehnerd/a57a49f41063c1d53616976dfc6f7172 to your computer and use it in GitHub Desktop.
#include <net/tcp.h>
k:tcp_mtup_init {
$tp = (struct tcp_sock*)arg0;
@mss_hist = lhist($tp->rx_opt.mss_clamp, 1200, 1500, 10);
}
interval:s:60 {
print(@mss_hist);
clear(@mss_hist);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment