Log the socket address passed as the destination to sendto() and sendmsg()
via ktrace. MFC after: 1 week
This commit is contained in:
parent
c40847145b
commit
c721b93449
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user