version 1.16, 1995/06/01 21:36:51 |
version 1.17, 1995/06/04 05:07:20 |
Line 203 udp_input(m, iphlen) |
|
Line 203 udp_input(m, iphlen) |
|
|
|
if ((n = m_copy(m, 0, M_COPYALL)) != NULL) { |
if ((n = m_copy(m, 0, M_COPYALL)) != NULL) { |
if (sbappendaddr(&last->so_rcv, |
if (sbappendaddr(&last->so_rcv, |
(struct sockaddr *)&udp_in, |
sintosa(&udp_in), n, |
n, (struct mbuf *)0) == 0) { |
(struct mbuf *)0) == 0) { |
m_freem(n); |
m_freem(n); |
udpstat.udps_fullsock++; |
udpstat.udps_fullsock++; |
} else |
} else |
Line 233 udp_input(m, iphlen) |
|
Line 233 udp_input(m, iphlen) |
|
udpstat.udps_noportbcast++; |
udpstat.udps_noportbcast++; |
goto bad; |
goto bad; |
} |
} |
if (sbappendaddr(&last->so_rcv, (struct sockaddr *)&udp_in, |
if (sbappendaddr(&last->so_rcv, sintosa(&udp_in), m, |
m, (struct mbuf *)0) == 0) { |
(struct mbuf *)0) == 0) { |
udpstat.udps_fullsock++; |
udpstat.udps_fullsock++; |
goto bad; |
goto bad; |
} |
} |
Line 303 udp_input(m, iphlen) |
|
Line 303 udp_input(m, iphlen) |
|
m->m_len -= iphlen; |
m->m_len -= iphlen; |
m->m_pkthdr.len -= iphlen; |
m->m_pkthdr.len -= iphlen; |
m->m_data += iphlen; |
m->m_data += iphlen; |
if (sbappendaddr(&inp->inp_socket->so_rcv, (struct sockaddr *)&udp_in, |
if (sbappendaddr(&inp->inp_socket->so_rcv, sintosa(&udp_in), m, |
m, opts) == 0) { |
opts) == 0) { |
udpstat.udps_fullsock++; |
udpstat.udps_fullsock++; |
goto bad; |
goto bad; |
} |
} |