Home
last modified time | relevance | path

Searched refs:outudp (Results 1 – 1 of 1) sorted by relevance

/freebsd-12.1/contrib/traceroute/
H A Dtraceroute.c1493 struct udphdr *const outudp = (struct udphdr *) outp; in udp_prep() local
1496 outudp->uh_dport = htons(port + (fixedPort ? 0 : outdata->seq)); in udp_prep()
1497 outudp->uh_ulen = htons((u_short)protlen); in udp_prep()
1498 outudp->uh_sum = 0; in udp_prep()
1501 outudp->uh_sum = (sum) ? sum : 0xffff; in udp_prep()
1519 struct udphdr *const outudp = (struct udphdr *) outp; in udplite_prep() local
1522 outudp->uh_dport = htons(port + (fixedPort ? 0 : outdata->seq)); in udplite_prep()
1523 outudp->uh_ulen = htons(8); in udplite_prep()
1524 outudp->uh_sum = 0; in udplite_prep()
1526 u_short sum = p_cksum(outip, (u_short*)outudp, protlen, 8); in udplite_prep()
[all …]