On Mon, Jun 29, 2020 at 11:55:10PM +0900, YASUOKA Masahiko wrote:
> The function mask_addr() doesn't mask address for IPv4 and IPv6.  Does
> any address family other than IPv4 or IPv6 require #1142:1148?  The
> function seems to just trim the trailing zero.  Is it neccesaary?  And
> it causes the confusion on the kernel.  How about deleting
> mask_addr()?
> 
> The diff following also fixes the problem.
Removing it breaks IPv4 default routes:

        # ifconfig lo1 rdomain 1 127.1.1.1
        # ./obj/route -nT1 add 0.0.0.0/0 127.1.1.1
        add net 0.0.0.0/0: gateway 127.1.1.1: Invalid argument
        # route -nT1 add 0.0.0.0/0 127.1.1.1      
        add net 0.0.0.0/0: gateway 127.1.1.1

Reply via email to