Source-Changes archive

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

CVS commit: src/sys/net



Module Name:    src
Committed By:   gdt
Date:           Thu Oct 29 11:07:18 UTC 2026

Modified Files:
        src/sys/net: if_tun.c

Log Message:
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ähäri as reported on netbsd-users@.

Should be pulled up to 11 and 10.

CVS: ----------------------------------------------------------------------
CVS: CVSROOT  cvs.NetBSD.org:/cvsroot
CVS: please use "PR category/123" to have the commitmsg appended to PR 123
CVS:
CVS: Please evaluate your changes and consider the following.
CVS: Abort checkin if you answer no.
CVS: => For all changes:
CVS: Do the changed files compile?
CVS: Has the change been tested?
CVS: => If you are not completely familiar with the changed components:
CVS: Has the change been posted for review?
CVS: Have you allowed enough time for feedback?
CVS: => If the change is major:
CVS: => If the change adds files to, or removes files from $DESTDIR:
CVS: => If you are changing a library or kernel interface:
CVS: Have you successfully run "./build.sh release"?


To generate a diff of this commit:
cvs rdiff -u -r1.178 -r1.179 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