TCP packet injection and modification framework