Lines Matching refs:uh
1209 struct udphdr uh; in ipsec4_get_ulp() local
1258 m_copydata(m, off, sizeof(uh), (caddr_t)&uh); in ipsec4_get_ulp()
1259 SIN(&spidx->src)->sin_port = uh.uh_sport; in ipsec4_get_ulp()
1260 SIN(&spidx->dst)->sin_port = uh.uh_dport; in ipsec4_get_ulp()
1318 struct udphdr uh; in ipsec6_get_ulp() local
1361 m_copydata(m, off, sizeof(uh), (caddr_t)&uh); in ipsec6_get_ulp()
1362 SIN6(&spidx->src)->sin6_port = uh.uh_sport; in ipsec6_get_ulp()
1363 SIN6(&spidx->dst)->sin6_port = uh.uh_dport; in ipsec6_get_ulp()
5204 struct udphdr *uh = (__typeof__(uh))(void *)(m_mtod_current(m) + sizeof(*ip)); in ipsec_send_natt_keepalive() local
5220 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_send_natt_keepalive()
5222 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_send_natt_keepalive()
5224 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_send_natt_keepalive()
5225 uh->uh_dport = htons(sav->remote_ike_port); in ipsec_send_natt_keepalive()
5226 uh->uh_ulen = htons(1 + sizeof(*uh)); in ipsec_send_natt_keepalive()
5227 uh->uh_sum = 0; in ipsec_send_natt_keepalive()
5228 *(u_int8_t*)(m_mtod_current(m) + sizeof(*ip) + sizeof(*uh)) = 0xFF; in ipsec_send_natt_keepalive()
5263 struct udphdr *uh = (__typeof__(uh))(void *)(m_mtod_current(m) + sizeof(*ip6)); in ipsec_send_natt_keepalive() local
5294 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_send_natt_keepalive()
5296 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_send_natt_keepalive()
5298 uh->uh_dport = htons(sav->remote_ike_port); in ipsec_send_natt_keepalive()
5299 uh->uh_ulen = htons(1 + sizeof(*uh)); in ipsec_send_natt_keepalive()
5300 *(u_int8_t*)(m_mtod_current(m) + sizeof(*ip6) + sizeof(*uh)) = 0xFF; in ipsec_send_natt_keepalive()
5301 uh->uh_sum = in6_pseudo(&ip6->ip6_src, &ip6->ip6_dst, htonl(ntohs(uh->uh_ulen) + IPPROTO_UDP)); in ipsec_send_natt_keepalive()
5342 struct udphdr *uh = NULL; in ipsec_fill_offload_frame() local
5379 uh = (struct udphdr *)(void *)(data + frame_data_offset + sizeof(*ip6)); in ipsec_fill_offload_frame()
5441 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_fill_offload_frame()
5443 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_fill_offload_frame()
5445 uh->uh_dport = htons(sav->remote_ike_port); in ipsec_fill_offload_frame()
5446 uh->uh_ulen = htons(1 + sizeof(*uh)); in ipsec_fill_offload_frame()
5447 *(u_int8_t*)(data + frame_data_offset + sizeof(*ip6) + sizeof(*uh)) = 0xFF; in ipsec_fill_offload_frame()
5448 uh->uh_sum = inet6_cksum_buffer((const uint8_t *)ip6, IPPROTO_UDP, in ipsec_fill_offload_frame()
5452 uh = (struct udphdr *)(void *)(data + frame_data_offset + sizeof(*ip)); in ipsec_fill_offload_frame()
5493 uh->uh_sport = (u_short)sav->natt_encapsulated_src_port; in ipsec_fill_offload_frame()
5495 uh->uh_sport = htons((u_short)esp_udp_encap_port); in ipsec_fill_offload_frame()
5497 uh->uh_dport = htons(sav->remote_ike_port); in ipsec_fill_offload_frame()
5498 uh->uh_ulen = htons(1 + sizeof(*uh)); in ipsec_fill_offload_frame()
5499 uh->uh_sum = 0; in ipsec_fill_offload_frame()
5500 *(u_int8_t*)(data + frame_data_offset + sizeof(*ip) + sizeof(*uh)) = 0xFF; in ipsec_fill_offload_frame()