I want to find all the possible ip addresses my router can send packet to. I know there is a command route print that give let me see the default gateway, but I want to get all the possible ip address the default gateway can send packets to. A reference to C++ API or command in the cmd will be great.
If you have a default gateway (0.0.0.0/0), then you can send to all of them. Or at least all of them that are valid. Some networks are reserved for private usage or other purposes by various standards.