Lines Matching refs:udp
202 struct udphdr *udp; in udp_transmit() local
208 udp = (struct udphdr *) ((unsigned long) buf + sizeof (struct iphdr)); in udp_transmit()
220 udp->src = htons (srcsock); in udp_transmit()
221 udp->dest = htons (destsock); in udp_transmit()
222 udp->len = htons (len - sizeof (struct iphdr)); in udp_transmit()
223 udp->chksum = 0; in udp_transmit()
224 udp->chksum = htons (udpchksum (ip)); in udp_transmit()
226 if (udp->chksum == 0) in udp_transmit()
227 udp->chksum = 0xffff; in udp_transmit()
323 + sizeof (tp.ip) + sizeof (tp.udp) + sizeof (tp.opcode) + 1); in tftp()
385 len = ntohs (tr->udp.len) - sizeof (struct udphdr) - 2; in tftp()
411 + sizeof (tp.ip) + sizeof (tp.udp) in tftp()
415 iport, ntohs (tr->udp.src), in tftp()
429 len = ntohs (tr->udp.len) - sizeof (struct udphdr) - 4; in tftp()
447 oport = ntohs (tr->udp.src); in tftp()
743 struct udphdr *udp; in await_reply() local
870 udp = (struct udphdr *) &nic.packet[(ETH_HLEN in await_reply()
872 if (udp->chksum && udpchksum (ip)) in await_reply()
890 && udp->dest == htons (BOOTP_CLIENT) in await_reply()
932 if (type == AWAIT_TFTP && ntohs (udp->dest) == ival) in await_reply()