tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mbuf -> sockaddr patch for get{sock,peer}name and accept



In article <553415AB.102%netbsd.org@localhost>, Tyler Retzlaff  <rtr%netbsd.org@localhost> wrote:
>-=-=-=-=-=-
>
>hi,
>
>attached is the next patch for converting protocol
>user-request methods to use sockaddr * instead of mbuf *.
>This patch covers getsockname, getpeername and accept.
>
>The only part of the patch I think needs help is what to do
>with the ktrkuser(mbuftypes[MT_SONAME], addr, len) call from
>copyout_sockname_sb().  Obviously mbuftypes[] makes no real
>sense and addr is not in alias of an mbuf.  What should be
>done with the ktrace hook?
>
>comments welcome

Are you getting rid of MT_SONAME? You can just change the string
there to be "sockaddr"... It is just a string annotating what the
data you are placing in the trace are.

christos



Home | Main Index | Thread Index | Old Index