• Home
  • Raw
  • Download

Lines Matching refs:opts

227 natt_fill_options (struct ph1natt_options *opts, int version)  in natt_fill_options()  argument
229 if (! opts) in natt_fill_options()
232 opts->version = version; in natt_fill_options()
237 opts->float_port = 0; /* No port floating for those drafts */ in natt_fill_options()
238 opts->payload_nat_d = ISAKMP_NPTYPE_NATD_DRAFT; in natt_fill_options()
239 opts->payload_nat_oa = ISAKMP_NPTYPE_NATOA_DRAFT; in natt_fill_options()
240 opts->mode_udp_tunnel = IPSECDOI_ATTR_ENC_MODE_UDPTUNNEL_DRAFT; in natt_fill_options()
241 opts->mode_udp_transport = IPSECDOI_ATTR_ENC_MODE_UDPTRNS_DRAFT; in natt_fill_options()
242 opts->encaps_type = UDP_ENCAP_ESPINUDP_NON_IKE; in natt_fill_options()
248 opts->float_port = lcconf->port_isakmp_natt; in natt_fill_options()
249 opts->payload_nat_d = ISAKMP_NPTYPE_NATD_DRAFT; in natt_fill_options()
250 opts->payload_nat_oa = ISAKMP_NPTYPE_NATOA_DRAFT; in natt_fill_options()
251 opts->mode_udp_tunnel = IPSECDOI_ATTR_ENC_MODE_UDPTUNNEL_DRAFT; in natt_fill_options()
252 opts->mode_udp_transport = IPSECDOI_ATTR_ENC_MODE_UDPTRNS_DRAFT; in natt_fill_options()
253 opts->encaps_type = UDP_ENCAP_ESPINUDP; in natt_fill_options()
260 opts->float_port = lcconf->port_isakmp_natt; in natt_fill_options()
261 opts->payload_nat_d = ISAKMP_NPTYPE_NATD_BADDRAFT; in natt_fill_options()
262 opts->payload_nat_oa = ISAKMP_NPTYPE_NATOA_BADDRAFT; in natt_fill_options()
263 opts->mode_udp_tunnel = IPSECDOI_ATTR_ENC_MODE_UDPTUNNEL_RFC; in natt_fill_options()
264 opts->mode_udp_transport = IPSECDOI_ATTR_ENC_MODE_UDPTRNS_RFC; in natt_fill_options()
265 opts->encaps_type = UDP_ENCAP_ESPINUDP; in natt_fill_options()
268 opts->float_port = lcconf->port_isakmp_natt; in natt_fill_options()
269 opts->payload_nat_d = ISAKMP_NPTYPE_NATD_RFC; in natt_fill_options()
270 opts->payload_nat_oa = ISAKMP_NPTYPE_NATOA_RFC; in natt_fill_options()
271 opts->mode_udp_tunnel = IPSECDOI_ATTR_ENC_MODE_UDPTUNNEL_RFC; in natt_fill_options()
272 opts->mode_udp_transport = IPSECDOI_ATTR_ENC_MODE_UDPTRNS_RFC; in natt_fill_options()
273 opts->encaps_type = UDP_ENCAP_ESPINUDP; in natt_fill_options()
282 opts->mode_udp_diff = opts->mode_udp_tunnel - IPSECDOI_ATTR_ENC_MODE_TUNNEL; in natt_fill_options()