Lines Matching full:proto_id
346 prop->p_no, s_ipsecdoi_proto(prop->proto_id),
352 s_ipsecdoi_trns(prop->proto_id, trns->t_id));
1058 if (p->prop->proto_id != r->prop->proto_id) {
1060 "proto_id mismathed: my:%d peer:%d\n",
1061 r->prop->proto_id, p->prop->proto_id);
1199 * find a proposal with matching proto_id.
1203 if (sp->proto_id == p->prop->proto_id)
1371 if (check_protocol[mode](prop->proto_id) < 0)
1375 if (check_spi_size(prop->proto_id, prop->spi_size) < 0)
1503 if (prop->proto_id >= ARRAYLEN(check_transform)) {
1505 "unsupported proto_id %u\n",
1506 prop->proto_id);
1509 if (prop->proto_id >= ARRAYLEN(check_attributes)) {
1511 "unsupported proto_id %u\n",
1512 prop->proto_id);
1516 if (!check_transform[prop->proto_id]
1517 || !check_attributes[prop->proto_id]) {
1519 "unsupported proto_id %u\n",
1520 prop->proto_id);
1523 if (check_transform[prop->proto_id](trns->t_id) < 0)
1527 if (check_attributes[prop->proto_id](trns) != 0)
1659 * find a proposal/transform with matching proto_id/t_id.
1663 if (p->prop->proto_id == pr->proto_id &&
1879 check_prot_main(proto_id)
1880 int proto_id;
1882 switch (proto_id) {
1888 "Illegal protocol id=%u.\n", proto_id);
1898 check_prot_quick(proto_id)
1899 int proto_id;
1901 switch (proto_id) {
1911 "invalid protocol id %d.\n", proto_id);
1918 check_spi_size(proto_id, size)
1919 int proto_id, size;
1921 switch (proto_id) {
1968 "invalid transform-id=%u in proto_id=%u.\n",
2273 check_attr_ipsec(proto_id, trns)
2274 int proto_id;
2338 if (proto_id == IPSECDOI_PROTO_IPSEC_AH &&
2349 if (proto_id == IPSECDOI_PROTO_IPSEC_AH) {
2355 if (proto_id == IPSECDOI_PROTO_IPSEC_AH) {
2361 if (proto_id == IPSECDOI_PROTO_IPSEC_AH) {
2367 if (proto_id == IPSECDOI_PROTO_IPSEC_AH) {
2476 if (proto_id == IPSECDOI_PROTO_IPSEC_AH &&
2483 if (proto_id == IPSECDOI_PROTO_IPSEC_ESP &&
2628 if (proto_id == IPSECDOI_PROTO_IPCOMP &&
2691 prop->proto_id = IPSECDOI_PROTO_ISAKMP;
2967 prop->proto_id = pr->proto_id;
2971 switch (pr->proto_id) {
2997 switch (pr->proto_id) {
3032 switch (pr->proto_id) {
3052 "invalid protocol: %d\n", pr->proto_id);
3117 if ((pr->proto_id == IPSECDOI_PROTO_IPSEC_ESP && tr->authtype != IPSECDOI_ATTR_AUTH_NONE)
3118 || pr->proto_id == IPSECDOI_PROTO_IPSEC_AH)
3259 ipsecdoi_checkalgtypes(proto_id, enc, auth, comp)
3260 int proto_id, enc, auth, comp;
3263 switch (proto_id) {
3299 "invalid ipsec protocol %d\n", proto_id);
3483 if(id_bs->proto_id != id_bt->proto_id){
3485 "check and compare ids : proto_id mismatch %d != %d\n",
3486 id_bs->proto_id, id_bt->proto_id);
3651 if (id_b->proto_id == 0 && ntohs(id_b->port) != 0) {
3654 "proto_id:%d port:%d\n",
3655 id_b->proto_id, ntohs(id_b->port));
3658 } else if (id_b->proto_id == IPPROTO_UDP) {
3763 id_b.proto_id = 0;
3830 id_b.proto_id = IPPROTO_UDP;
4167 ((struct ipsecdoi_id_b *)new->v)->proto_id =
4243 ((struct ipsecdoi_id_b *)new->v)->proto_id =
4380 *ul_proto = id_b->proto_id == 0
4382 : id_b->proto_id; /* see sockaddr2id() */
4788 if (pr->proto_id != IPSECDOI_PROTO_IPSEC_ESP) {