Hi!
Maybe you would give a potential helper the reasons why you want synflood code.
If you expect an answer you probably should start to give some code you already tried out?.
If for testing **your** local network then there are a lot of possibilities to run network test suites out there so I ask myself why to reinvent the wheel again?