Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-10] src/sys/net



Module Name:    src
Committed By:   martin
Date:           Thu Oct 29 16:17:34 UTC 2026

Modified Files:
        src/sys/net [netbsd-10]: if_tun.c

Log Message:
Pull up following revision(s) (requested by gdt in ticket #1407):

        sys/net/if_tun.c: revision 1.179

sys/net/if_tun.c: Drop spurious EAFNOSUPPORT

When an outgoing packet is put in the queue, that might fail, and if
so the error will almost certainly be ENOBUFS.  Let that error be
returned, rather than inexplicably forcing it to be EAFNOSUPPORT.
(EAFNOSUPPORT is returned nearby in the code for other cases, such as
when sending a packet that isn't IPv4, without specifying one of the
ways to encode the address family.  The change in this commit is
entirely unrelated to that use of EAFNOSUPPORT.)

The specific problem was identified by Bill Green.  Tested in NetBSD
11 context by Matti Andreas K=C3=A4h=C3=A4ri as reported on netbsd-users@.


To generate a diff of this commit:
cvs rdiff -u -r1.173.4.3 -r1.173.4.4 src/sys/net/if_tun.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index