Lines Matching refs:uh

1214 	struct udphdr uh;  in ipsec4_get_ulp()  local
1265 m_copydata(m, off, sizeof(uh), (caddr_t)&uh); in ipsec4_get_ulp()
1267 uh.uh_sport; in ipsec4_get_ulp()
1269 uh.uh_dport; in ipsec4_get_ulp()
1327 struct udphdr uh; in ipsec6_get_ulp() local
1370 m_copydata(m, off, sizeof(uh), (caddr_t)&uh); in ipsec6_get_ulp()
1371 ((struct sockaddr_in6 *)&spidx->src)->sin6_port = uh.uh_sport; in ipsec6_get_ulp()
1372 ((struct sockaddr_in6 *)&spidx->dst)->sin6_port = uh.uh_dport; in ipsec6_get_ulp()
4908 struct udphdr *uh = (__typeof__(uh))(void *)((char *)m_mtod(m) + sizeof(*ip)); in ipsec_send_natt_keepalive() local
4924 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_send_natt_keepalive()
4926 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_send_natt_keepalive()
4928 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_send_natt_keepalive()
4929 uh->uh_dport = htons(sav->remote_ike_port); in ipsec_send_natt_keepalive()
4930 uh->uh_ulen = htons(1 + sizeof(*uh)); in ipsec_send_natt_keepalive()
4931 uh->uh_sum = 0; in ipsec_send_natt_keepalive()
4932 *(u_int8_t*)((char*)m_mtod(m) + sizeof(*ip) + sizeof(*uh)) = 0xFF; in ipsec_send_natt_keepalive()
4967 struct udphdr *uh = (__typeof__(uh))(void *)((char *)m_mtod(m) + sizeof(*ip6)); in ipsec_send_natt_keepalive() local
4998 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_send_natt_keepalive()
5000 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_send_natt_keepalive()
5002 uh->uh_dport = htons(sav->remote_ike_port); in ipsec_send_natt_keepalive()
5003 uh->uh_ulen = htons(1 + sizeof(*uh)); in ipsec_send_natt_keepalive()
5004 *(u_int8_t*)((char*)m_mtod(m) + sizeof(*ip6) + sizeof(*uh)) = 0xFF; in ipsec_send_natt_keepalive()
5005 uh->uh_sum = in6_pseudo(&ip6->ip6_src, &ip6->ip6_dst, htonl(ntohs(uh->uh_ulen) + IPPROTO_UDP)); in ipsec_send_natt_keepalive()
5047 struct udphdr *uh = NULL; in ipsec_fill_offload_frame() local
5071 uh = (__typeof__(uh))(void *)(data + frame_data_offset + sizeof(*ip)); in ipsec_fill_offload_frame()
5112 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_fill_offload_frame()
5114 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_fill_offload_frame()
5116 uh->uh_dport = htons(sav->remote_ike_port); in ipsec_fill_offload_frame()
5117 uh->uh_ulen = htons(1 + sizeof(*uh)); in ipsec_fill_offload_frame()
5118 uh->uh_sum = 0; in ipsec_fill_offload_frame()
5119 *(u_int8_t*)(data + frame_data_offset + sizeof(*ip) + sizeof(*uh)) = 0xFF; in ipsec_fill_offload_frame()