How to get router id (ip address) #251
Unanswered
thekioskman
asked this question in
[Project Q&A] 3. Internet Layer (IP/Routing)
Replies: 1 comment
-
You should use port 0 as stated in the documentation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To send the packets we need the router ID, which is the IP address of our current router. The parameter to pwospfquery(ipv4 ) seems to be the id of the router we want to find a path to. So how do we get our own IP address? If we use std::optional<ipv4_t> ip = getIPAddr(port); which port should we use?
Beta Was this translation helpful? Give feedback.
All reactions