Lines Matching defs:uh
220 udp_input_checksum(int af, struct mbuf *m, const struct udphdr *uh,
227 return udp4_input_checksum(m, uh, iphlen, len);
231 return udp6_input_checksum(m, uh, iphlen, len);
247 udp4_input_checksum(struct mbuf *m, const struct udphdr *uh,
256 if (uh->uh_sum == 0)
315 struct udphdr *uh;
328 M_REGION_GET(uh, struct udphdr *, m, iphlen, sizeof(struct udphdr));
329 if (uh == NULL) {
338 if (ACCESSIBLE_POINTER(uh, struct udphdr) == 0) {
345 uh = (struct udphdr *)(mtod(m, char *) + iphlen);
347 KASSERT(ACCESSIBLE_POINTER(uh, struct udphdr));
350 if (uh->uh_dport == 0)
358 len = ntohs((u_int16_t)uh->uh_ulen);
374 if (udp4_input_checksum(m, uh, iphlen, len))
378 sockaddr_in_init(&src, &ip->ip_src, uh->uh_sport);
379 sockaddr_in_init(&dst, &ip->ip_dst, uh->uh_dport);
394 M_REGION_GET(uh, struct udphdr *, m, iphlen, sizeof(struct udphdr));
395 if (uh == NULL) {
409 src6.sin6_port = uh->uh_sport;
414 dst6.sin6_port = uh->uh_dport;
656 struct udphdr *uh;
677 uh = (struct udphdr *)((char *)ip + (ip->ip_hl << 2));
678 inpcb_notify(&udbtable, satocsin(sa)->sin_addr, uh->uh_dport,
679 ip->ip_src, uh->uh_sport, errno, notify);