* This does the same for socket buffers that sotoxsocket does for sockets: * generate an user-format data structure describing the socket buffer. Note * that the xsockbuf structure, since it is always embedded in a socket, does * not include a self pointer nor a length. We make this entry point public * in case some other mechanism needs it. */
| 1777 | * in case some other mechanism needs it. |
| 1778 | */ |
| 1779 | void |
| 1780 | sbtoxsockbuf(struct sockbuf *sb, struct xsockbuf *xsb) |
| 1781 | { |
| 1782 | |
| 1783 | xsb->sb_cc = sb->sb_ccc; |
| 1784 | xsb->sb_hiwat = sb->sb_hiwat; |
| 1785 | xsb->sb_mbcnt = sb->sb_mbcnt; |
| 1786 | xsb->sb_mcnt = sb->sb_mcnt; |
| 1787 | xsb->sb_ccnt = sb->sb_ccnt; |
| 1788 | xsb->sb_mbmax = sb->sb_mbmax; |
| 1789 | xsb->sb_lowat = sb->sb_lowat; |
| 1790 | xsb->sb_flags = sb->sb_flags; |
| 1791 | xsb->sb_timeo = sb->sb_timeo; |
| 1792 | } |
| 1793 | |
| 1794 | /* This takes the place of kern.maxsockbuf, which moved to kern.ipc. */ |
| 1795 | static int dummy; |