About first interface IP address of router #240
Answered
by
Pusnow
03psb
asked this question in
[Project Q&A] 3. Internet Layer (IP/Routing)
-
#90 according to this discussion, I can use GetIpAddr() to figure out which source IP to use when destination IP is given. But in the implementation of OSPF protocol, router is identified by first IP address of its interfaces. |
Beta Was this translation helpful? Give feedback.
Answered by
Pusnow
May 20, 2024
Replies: 1 comment 1 reply
-
Use "getIPAddr(0); // retrieve 0th interface's IP" |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
03psb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use "getIPAddr(0); // retrieve 0th interface's IP"