| version 1.156, 2008/03/24 12:24:37 |
version 1.157, 2008/03/27 19:06:52 |
| Line 814 sosend(struct socket *so, struct mbuf *a |
|
| Line 814 sosend(struct socket *so, struct mbuf *a |
|
| dontroute = |
dontroute = |
| (flags & MSG_DONTROUTE) && (so->so_options & SO_DONTROUTE) == 0 && |
(flags & MSG_DONTROUTE) && (so->so_options & SO_DONTROUTE) == 0 && |
| (so->so_proto->pr_flags & PR_ATOMIC); |
(so->so_proto->pr_flags & PR_ATOMIC); |
| if (p) |
if (l) |
| p->p_stats->p_ru.ru_msgsnd++; |
l->l_ru.ru_msgsnd++; |
| if (control) |
if (control) |
| clen = control->m_len; |
clen = control->m_len; |
| #define snderr(errno) { error = errno; splx(s); goto release; } |
#define snderr(errno) { error = errno; splx(s); goto release; } |
| Line 1109 soreceive(struct socket *so, struct mbuf |
|
| Line 1109 soreceive(struct socket *so, struct mbuf |
|
| * info, we save a copy of m->m_nextpkt into nextrecord. |
* info, we save a copy of m->m_nextpkt into nextrecord. |
| */ |
*/ |
| if (l != NULL) |
if (l != NULL) |
| l->l_proc->p_stats->p_ru.ru_msgrcv++; |
l->l_ru.ru_msgrcv++; |
| KASSERT(m == so->so_rcv.sb_mb); |
KASSERT(m == so->so_rcv.sb_mb); |
| SBLASTRECORDCHK(&so->so_rcv, "soreceive 1"); |
SBLASTRECORDCHK(&so->so_rcv, "soreceive 1"); |
| SBLASTMBUFCHK(&so->so_rcv, "soreceive 1"); |
SBLASTMBUFCHK(&so->so_rcv, "soreceive 1"); |