Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Again allow multicast packets to be sent from un...



details:   https://anonhg.NetBSD.org/src/rev/ea4caf1943d4
branches:  trunk
changeset: 374342:ea4caf1943d4
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Wed Apr 19 22:00:18 2023 +0000

description:
Again allow multicast packets to be sent from unnumbered interfaces.

diffstat:

 sys/netinet/ip_output.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (30 lines):

diff -r b4f931970eb1 -r ea4caf1943d4 sys/netinet/ip_output.c
--- a/sys/netinet/ip_output.c   Wed Apr 19 18:39:18 2023 +0000
+++ b/sys/netinet/ip_output.c   Wed Apr 19 22:00:18 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_output.c,v 1.325 2023/04/19 02:43:40 ozaki-r Exp $  */
+/*     $NetBSD: ip_output.c,v 1.326 2023/04/19 22:00:18 mlelstv Exp $  */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.325 2023/04/19 02:43:40 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.326 2023/04/19 22:00:18 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -348,11 +348,6 @@ ip_output(struct mbuf *m0, struct mbuf *
                }
                mtu = ifp->if_mtu;
                ia = in_get_ia_from_ifp_psref(ifp, &psref_ia);
-               if (ia == NULL) {
-                       IP_STATINC(IP_STAT_IFNOADDR);
-                       error = EADDRNOTAVAIL;
-                       goto bad;
-               }
                if (IN_MULTICAST(ip->ip_dst.s_addr) ||
                    ip->ip_dst.s_addr == INADDR_BROADCAST) {
                        isbroadcast = 0;



Home | Main Index | Thread Index | Old Index