Home | History | Annotate | Download | only in racoon

Lines Matching defs:port

3594  *   (proto, port) must be (0, 0), (udp, 500) or (udp, [specified]).
3651 if (id_b->proto_id == 0 && ntohs(id_b->port) != 0) {
3653 "protocol ID and Port mismatched. "
3654 "proto_id:%d port:%d\n",
3655 id_b->proto_id, ntohs(id_b->port));
3660 * copmaring with expecting port.
3661 * always permit if port is equal to PORT_ISAKMP
3663 if (ntohs(id_b->port) != PORT_ISAKMP) {
3664 u_int16_t port;
3666 port = extract_port(iph1->remote);
3667 if (ntohs(id_b->port) != port) {
3669 "port %d expected, but %d\n",
3670 port, ntohs(id_b->port));
3764 id_b.port = 0;
3831 id_b.port = htons(PORT_ISAKMP);
4110 u_short port;
4127 port = ((struct sockaddr_in *)(saddr))->sin_port;
4140 port = ((struct sockaddr_in6 *)(saddr))->sin6_port;
4162 /* set ul_proto and port */
4165 * because 0 means port number of 0. Instead of 0, we use IPSEC_*_ANY.
4169 ((struct ipsecdoi_id_b *)new->v)->port =
4170 port == IPSEC_PORT_ANY ? 0 : port;
4200 u_short port;
4238 /* set ul_proto and port */
4241 * because 0 means port number of 0. Instead of 0, we use IPSEC_*_ANY.
4245 port = ((struct sockaddr_in *)(laddr))->sin_port;
4246 ((struct ipsecdoi_id_b *)new->v)->port =
4247 port == IPSEC_PORT_ANY ? 0 : port;
4288 (id_b->port == 0
4290 : id_b->port); /* see sockaddr2id() */
4302 (id_b->port == 0
4304 : id_b->port); /* see sockaddr2id() */