Lines Matching defs:uh
330 struct udphdr *uh = (struct udphdr *)(ip + 1);
332 if (inp->inp_lport != uh->uh_dport)
345 inp->inp_fport != uh->uh_sport)
358 struct udphdr *uh = (struct udphdr *)(ip + 1);
404 UDPLITE_PROBE(receive, NULL, inp, ip, inp, uh);
406 UDP_PROBE(receive, NULL, inp, ip, inp, uh);
448 struct udphdr *uh;
484 uh = (struct udphdr *)((caddr_t)ip + iphlen);
490 if (uh->uh_dport == 0)
500 udp_in[0].sin_port = uh->uh_sport;
504 udp_in[1].sin_port = uh->uh_dport;
511 len = ntohs((u_short)uh->uh_ulen);
531 if (uh->uh_sum) {
550 uh->uh_ulen : htons(ip_len);
591 inp = in_pcblookup_mbuf(pcbinfo, ip->ip_src, uh->uh_sport,
592 ip->ip_dst, uh->uh_dport, INPLOOKUP_RLOCKPCB, ifp, m);
600 uh->uh_sport, next_hop->sin_addr,
602 uh->uh_dport, INPLOOKUP_WILDCARD |
609 inp = in_pcblookup_mbuf(pcbinfo, ip->ip_src, uh->uh_sport,
610 ip->ip_dst, uh->uh_dport, INPLOOKUP_WILDCARD |
619 inet_ntoa_r(ip->ip_dst, dst), ntohs(uh->uh_dport),
620 inet_ntoa_r(ip->ip_src, src), ntohs(uh->uh_sport));
623 UDPLITE_PROBE(receive, NULL, NULL, ip, NULL, uh);
625 UDP_PROBE(receive, NULL, NULL, ip, NULL, uh);
646 UDPLITE_PROBE(receive, NULL, inp, ip, inp, uh);
648 UDP_PROBE(receive, NULL, inp, ip, inp, uh);
665 UDPLITE_PROBE(receive, NULL, inp, ip, inp, uh);
667 UDP_PROBE(receive, NULL, inp, ip, inp, uh);
704 struct udphdr *uh;
710 uh = (struct udphdr *)((caddr_t)ip + (ip->ip_hl << 2));
711 inp = in_pcblookup(pcbinfo, ip->ip_dst, uh->uh_dport, ip->ip_src,
712 uh->uh_sport, INPLOOKUP_WLOCKPCB, NULL);
719 inp = in_pcblookup(pcbinfo, ip->ip_dst, uh->uh_dport,
720 ip->ip_src, uh->uh_sport,