Lines Matching defs:idp
741 keywdtab_t *idp;
746 for (idp = idtypes; idp->kw_str != NULL; idp++) {
747 if (strcasecmp(idp->kw_str, type) == 0) {
749 *idnum = idp->kw_tag;
765 sadb_ident_t *idp;
771 *idpp = idp = (sadb_ident_t *)malloc(alloclen);
772 if (idp == NULL)
775 if ((consumed = parse_idtype(argv[0], &idp->sadb_ident_type)) < 0) {
780 idp->sadb_ident_len = SADB_8TO64(alloclen);
781 idp->sadb_ident_reserved = 0;
782 idp->sadb_ident_id = 0;
785 (void) strlcpy((char *)(idp + 1), argv[1],
1796 print_id(char *prefix, sadb_ident_t *idp, int init_instr)
1814 (void) printf(gettext("uid=%d, type "), idp->sadb_ident_id);
1815 canprint = dump_sadb_idtype(idp->sadb_ident_type, stdout, NULL);
1817 (void) printf("\n%s %s\n", prefix, (char *)(idp + 1));
1821 (const unsigned char *)(idp + 1),
1822 SADB_64TO8(idp->sadb_ident_len) - sizeof (sadb_ident_t));
1827 print_idspec(char *prefix, char *idp, int icnt, int ecnt)
1836 (void) printf("%s %s\n", prefix, idp);
1837 idp += strlen(idp) + 1;
1843 (void) printf("%s %s\n", prefix, idp);
1844 idp += strlen(idp) + 1;
2755 do_getdel_doorcall(int cmd, int idlen, int idtype, char *idp, char *name)
2784 (void) memcpy(p, idp, idlen);
2825 char *name, *idp, *p, *p1, *p2;
2850 idp = (char *)&cpr;
2866 idp = label;
2921 idp = p = (char *)malloc(idlen);
2927 do_getdel_doorcall(cmd, idlen, idtype, idp, name);
2928 free(idp);
2935 do_getdel_doorcall(cmd, idlen, idtype, idp, name);