This is a question I've seen mixed answers for online, so I'll try to clearly explain what I'm having trouble understanding. With RIP, you have your router and you explicitly tell it your directly connected networks like such:
network [network address of the network linking the two routers]
However, from what I understand, OSPF does not do this. Instead, you configure your interfaces for OSPF like such:
network [address of Serial 0 (for example)] [wildcard address] area [X]
My question therefore is: If you're configuring interfaces rather than networks, how does OSPF come to understand the network between two routers?
I do have a theory as to why, but I'm not sure. I'm thinking that because your Serial 0 (for example) and another routers Serial 1 (for example) will have the same subnet mask, the wildcard address tells OSPF that these are on the same network. I'm not sure if this is correct, but I'd love some clarification on this if possible.