Porting from l7-filter project as c implementation.