Lines Matching refs:sup
142 setsupportedmap(struct sadb_supported *sup) in setsupportedmap() argument
146 switch (sup->sadb_supported_exttype) { in setsupportedmap()
161 *ipsup = malloc(sup->sadb_supported_len); in setsupportedmap()
166 memcpy(*ipsup, sup, sup->sadb_supported_len); in setsupportedmap()
705 struct sadb_supported *sup; in pfkey_set_supported() local
721 sup = (struct sadb_supported *)p; in pfkey_set_supported()
722 if (ep < p + sizeof(*sup) || in pfkey_set_supported()
723 PFKEY_EXTLEN(sup) < sizeof(*sup) || in pfkey_set_supported()
724 ep < p + sup->sadb_supported_len) { in pfkey_set_supported()
729 switch (sup->sadb_supported_exttype) { in pfkey_set_supported()
739 sup->sadb_supported_len = PFKEY_EXTLEN(sup); in pfkey_set_supported()
742 if (setsupportedmap(sup) != 0) in pfkey_set_supported()
745 p += sup->sadb_supported_len; in pfkey_set_supported()