Lines Matching defs:uh
278 register struct udphdr *uh;
326 uh = (struct udphdr *)((caddr_t)ip + iphlen);
329 if (uh->uh_dport == 0)
332 KERNEL_DEBUG(DBG_LAYER_IN_BEG, uh->uh_dport, uh->uh_sport,
333 ip->ip_src.s_addr, ip->ip_dst.s_addr, uh->uh_ulen);
339 len = ntohs((u_short)uh->uh_ulen);
357 if (uh->uh_sum) {
360 uh->uh_sum = m->m_pkthdr.csum_data;
363 uh->uh_sum ^= 0xffff;
372 ((struct ipovly *)ip)->ih_len = uh->uh_ulen;
373 uh->uh_sum = in_cksum(m, len + sizeof (struct ip));
380 if (uh->uh_sum) {
419 udp_in.sin_port = uh->uh_sport;
454 if (inp->inp_lport != uh->uh_dport) {
468 inp->inp_fport != uh->uh_sport) {
541 uh->uh_dport == ntohs((u_short)esp_udp_encap_port)) {
550 uh = (struct udphdr *)((caddr_t)ip + iphlen);
553 if (payload_len == 1 && *(u_int8_t*)((caddr_t)uh + sizeof(struct udphdr)) == 0xFF) {
558 else if (payload_len == 4 && *(u_int32_t*)((caddr_t)uh + sizeof(struct udphdr)) != 0) {
583 inp = in_pcblookup_hash(&udbinfo, ip->ip_src, uh->uh_sport,
584 ip->ip_dst, uh->uh_dport, 1, m->m_pkthdr.rcvif);
595 ntohs(uh->uh_dport),
597 ntohs(uh->uh_sport));
603 ntohs(uh->uh_dport),
605 ntohs(uh->uh_sport)))
645 udp_in.sin_port = uh->uh_sport;
664 KERNEL_DEBUG(DBG_LAYER_IN_END, uh->uh_dport, uh->uh_sport,
665 save_ip.ip_src.s_addr, save_ip.ip_dst.s_addr, uh->uh_ulen);
788 struct udphdr *uh;
805 uh = (struct udphdr *)((caddr_t)ip + (ip->ip_hl << 2));
806 inp = in_pcblookup_hash(&udbinfo, faddr, uh->uh_dport,
807 ip->ip_src, uh->uh_sport, 0, NULL);