The DDoS penetrated your router and made it onto your PC? Or it was launched from your LAN? What are the circumstances?
Most routers from consumer grade up now have DDoS and other intrusion detection capabilities, so your solution may lie there, but without more information it's difficult to say for sure.