The verb is derived from Middle English snifteren, snifter, snyfter (“to sniffle”), possibly from *snift (possibly derived from a Old Norse word—compare Old Danish snifte and Swedish snyfta (“to sniffle; to sob”); probably ultimately imitative) + -er- (frequentative suffix) + -en (suffix forming the infinitive of verbs).
The noun is derived from the verb.