Lines Matching refs:rad_attr
891 register const struct radius_attr *rad_attr = (const struct radius_attr *)attr;
898 ND_TCHECK(*rad_attr);
900 if (rad_attr->type > 0 && rad_attr->type < TAM_SIZE(attr_type))
901 attr_string = attr_type[rad_attr->type].name;
904 if (rad_attr->len < 2)
908 rad_attr->type,
909 rad_attr->len));
912 if (rad_attr->len > length)
916 rad_attr->type,
917 rad_attr->len));
922 rad_attr->type,
923 rad_attr->len));
925 if (rad_attr->type < TAM_SIZE(attr_type))
927 if (rad_attr->len > 2)
929 if ( attr_type[rad_attr->type].print_func )
930 (*attr_type[rad_attr->type].print_func)(
931 ndo, ((const u_char *)(rad_attr+1)),
932 rad_attr->len - 2, rad_attr->type);
937 print_unknown_data(ndo, (const u_char *)rad_attr+2, "\n\t ", (rad_attr->len)-2);
939 length-=(rad_attr->len);
940 rad_attr = (const struct radius_attr *)( ((const char *)(rad_attr))+rad_attr->len);