You searched for: “patronym
patronym
A description of a name derived from a male (father) ancestor’s name; especially, one that adds a prefix, e.g., "Mac-", or a suffix, e.g., "-son" to the earlier name.

Another example is the Russian "-vich" which is attached to Ivan and so becomes “Ivanovich” (son of Ivan).