Log the socket address passed as the destination to sendto() and sendmsg()

via ktrace.

MFC after:	1 week
This commit is contained in:
John Baldwin 2011-06-07 17:40:33 +00:00
parent c40847145b
commit c721b93449
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222829

View File

@ -747,6 +747,10 @@ kern_sendit(td, s, mp, flags, control, segflg)
return (error);
so = (struct socket *)fp->f_data;
#ifdef KTRACE
if (mp->msg_name != NULL && KTRPOINT(td, KTR_STRUCT))
ktrsockaddr(mp->msg_name);
#endif
#ifdef MAC
if (mp->msg_name != NULL) {
error = mac_socket_check_connect(td->td_ucred, so,