Searched refs:udp (Results 1 – 3 of 3) sorted by relevance
94 struct udphdr udp; in send_packet() local104 ip.tot_len = htons(sizeof(ip) + sizeof(udp) + size); in send_packet()114 udp.source = htons(sport); in send_packet()115 udp.dest = htons(dport); in send_packet()116 udp.len = htons(sizeof(udp) + size); in send_packet()117 udp.check = 0; in send_packet()124 temp = udp.len; in send_packet()128 udpsum = checksum(&udp, sizeof(udp), udpsum); in send_packet()132 udp.check = finish_sum(udpsum); in send_packet()136 iov[1].iov_base = (char *)&udp; in send_packet()[all …]
198 udp = packet.getlayer("UDP")199 udp.payload = str(udp.payload)[:1280-40-8]
110 * "udp:<host>:<port>" - host may be omitted to indicate localhost