Skip to content

Instantly share code, notes, and snippets.

@phylake
Created June 12, 2019 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phylake/4d8fc290375a970a20cd54ef4fd2b8d5 to your computer and use it in GitHub Desktop.
Save phylake/4d8fc290375a970a20cd54ef4fd2b8d5 to your computer and use it in GitHub Desktop.
tcp_send_challenge_ack.stap
probe kernel.function("tcp_send_challenge_ack") {
printf("tcp_send_challenge_ack local=%s:%d remote=%s:%d\n",
format_ipaddr(tcpmib_local_addr($sk), AF_INET),
tcpmib_local_port($sk),
format_ipaddr(tcpmib_remote_addr($sk), AF_INET),
tcpmib_remote_port($sk)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment