You shouldn't have to change an existing line of code to do what you want! Make your new filter a module. In the routine called by module_init(), add a call to ebt_register_table() You need to setup an struct ebt_table to describe your new filter. Look at source for exist ebtable modules to see how to do it. Of course, make sure and unregister and cleanup on module removal.