]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r302474 (By gnn)
authorhiren <hiren@FreeBSD.org>
Tue, 15 Nov 2016 22:18:52 +0000 (22:18 +0000)
committerhiren <hiren@FreeBSD.org>
Tue, 15 Nov 2016 22:18:52 +0000 (22:18 +0000)
commit678ff80a6f30aaf6f5d6e8e25a44be41543c47ca
treeeaaccab695175a1d749a942835c46c9de3a4407f
parent3e5ed759a126b9a43875396954cacba9d812eadd
MFC r302474 (By gnn)

On FreeBSD there is a setsockopt option SO_USER_COOKIE which allows
setting a 32 bit value on each socket. This can be used by applications
and DTrace as a rendezvous point so that an applicaton's data can
more easily be captured at run time. Expose the user cookie via
DTrace by updating the translator in tcp.d and add a quick test
program, a TCP server, that sets the cookie on each connection
accepted.

Sponsored by:     Limelight Networks
cddl/lib/libdtrace/tcp.d
tests/sys/netinet/Makefile
tests/sys/netinet/tcp_user_cookie.c [new file with mode: 0644]