Friends in China often call each other 老 (lǎo) or 小 (xiǎo) + the family name.
老 (lǎo) is for someone older than you, 小 (xiǎo) for someone younger. 老林 (Lǎo Lín) is not rude: it is friendly and respectful.
Most Chinese family names have one syllable, so a foreign name is often cut to its first syllable: 卡特 (Kǎtè) becomes 老卡 (Lǎo Kǎ).