Hello!

I need a way to override how the OSPF protocol sees a device interface. I had an interface which had a peer address (/32) but I needed it to be able to communicate with an upstream OSPF router which was set as (/24) communicating via broadcast and expecting a larger mask. While it is of course possible to modify the upstream OSPF router to act as PTP this was not possible in my situation.

So essentially I needed to override the /32 on an interface to behave as /24 and for it to communicate in the broadcast type. In my case the interface had to remain /32 so changing it to /24 manually was not a viable option.  I looked at ptp netmask but all that did was send up /32 instead of /0 as part of the hello packets.

Has this ever come up as a request? If not then this is how I got around this issue.  Let me know your thoughts. I added a configuration option into the device protocol to support a list of interface patterns which if matched will override the prefix to what is passed in. The sysdep/linux/netlink.c then looks for an interface match and modifies the pxlen to be the real prefix that is configured. This resulted in the OSPF protocol seeing the device as broadcast and /24 instead of p2p.

I also have some basic questions:
Thank you very much!