in reply to Re^6: SYN attack detection codein thread SYN attack detection code
You could start by doing a search.
The first plain web page (3rd one down) gives a couple of ways to detect syn floods.