Home | History | Annotate | Download | only in slirp

Lines Matching full:sizeof

72   memset(spt, 0, sizeof(*spt));
73 memcpy(&spt->client_ip, &tp->ip.ip_src, sizeof(spt->client_ip));
90 if (!memcmp(&spt->client_ip, &tp->ip.ip_src, sizeof(spt->client_ip))) {
109 n = snprintf(buffer, sizeof(buffer), "%s/%s",
111 if (n >= sizeof(buffer))
149 m->m_data += sizeof(struct udpiphdr);
152 n += snprintf((char *)tp->x.tp_buf + n, sizeof(tp->x.tp_buf) - n, "%s",
154 n += snprintf((char *)tp->x.tp_buf + n, sizeof(tp->x.tp_buf) - n, "%u",
163 m->m_len = sizeof(struct tftp_t) - 514 + n -
164 sizeof(struct ip) - sizeof(struct udphdr);
191 m->m_data += sizeof(struct udpiphdr);
195 pstrcpy((char *)tp->x.tp_error.tp_msg, sizeof(tp->x.tp_error.tp_msg), msg);
205 m->m_len = sizeof(struct tftp_t) - 514 + 3 + strlen(msg) -
206 sizeof(struct ip) - sizeof(struct udphdr);
238 m->m_data += sizeof(struct udpiphdr);
261 m->m_len = sizeof(struct tftp_t) - (512 - nobytes) -
262 sizeof(struct ip) - sizeof(struct udphdr);
377 len = snprintf(buffer, sizeof(buffer), "%s/%s",