From owner-freebsd-hackers@freebsd.org Thu Mar 28 12:46:02 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5B7D3155BF4C for ; Thu, 28 Mar 2019 12:46:02 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from dedi548.your-server.de (dedi548.your-server.de [IPv6:2a01:4f8:d0a:2645::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 16E546EFA3 for ; Thu, 28 Mar 2019 12:46:00 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from [78.46.172.3] (helo=sslproxy06.your-server.de) by dedi548.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1h9UPm-0000Dm-Qj for freebsd-hackers@freebsd.org; Thu, 28 Mar 2019 13:45:50 +0100 Received: from [82.100.198.138] (helo=mail.embedded-brains.de) by sslproxy06.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1h9UPm-000EdX-L6 for freebsd-hackers@freebsd.org; Thu, 28 Mar 2019 13:45:50 +0100 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 4BF472A1611 for ; Thu, 28 Mar 2019 13:45:53 +0100 (CET) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id CCCyzojP6MXh for ; Thu, 28 Mar 2019 13:45:52 +0100 (CET) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id DA3E82A167E for ; Thu, 28 Mar 2019 13:45:52 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id G2zt5JucqwGI for ; Thu, 28 Mar 2019 13:45:52 +0100 (CET) Received: from huber-nb-linux.suse (unknown [192.168.96.161]) by mail.embedded-brains.de (Postfix) with ESMTPSA id C5C612A1611 for ; Thu, 28 Mar 2019 13:45:52 +0100 (CET) To: FreeBSD From: Sebastian Huber Subject: What is the purpose of BURN_BRIDGES? Message-ID: <1fd4571d-0da1-e325-b6a1-a3cc12f2f05d@embedded-brains.de> Date: Thu, 28 Mar 2019 13:45:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: smtp-embedded@poldinet.de X-Virus-Scanned: Clear (ClamAV 0.100.2/25402/Thu Mar 28 08:54:39 2019) X-Rspamd-Queue-Id: 16E546EFA3 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; spf=softfail (mx1.freebsd.org: 2a01:4f8:d0a:2645::2 is neither permitted nor denied by domain of sebastian.huber@embedded-brains.de) smtp.mailfrom=sebastian.huber@embedded-brains.de X-Spamd-Result: default: False [-2.82 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_SEVEN(0.00)[8]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(-0.81)[ipnet: 2a01:4f8::/29(-2.12), asn: 24940(-1.92), country: DE(-0.01)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[embedded-brains.de]; R_SPF_SOFTFAIL(0.00)[~all]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_TRACE(0.00)[0:+]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[mx.embeddedbrains.de,mx.netmuc.net]; NEURAL_HAM_SHORT(-0.91)[-0.906,0]; NEURAL_HAM_MEDIUM(-0.99)[-0.994,0]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; HAS_X_AS(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Mar 2019 12:46:02 -0000 Hello, I turned on BURN_BRIDGES in my global kernel configuration and now I get=20 undefined references, e.g. /build/rtems/5/lib/gcc/powerpc-rtems5/7.4.0/../../../../powerpc-rtems5/bi= n/ld:=20 ./libbsd.a(ip6_output.c.18.o): in function `_bsd_ip6_output': /scratch/git-rtems-libbsd/build/powerpc-rtems5-qoriq_e6500_64-default/../= ../freebsd/sys/netinet6/ip6_output.c:548:=20 undefined reference to `_bsd_in6_selectroute_fib' /build/rtems/5/lib/gcc/powerpc-rtems5/7.4.0/../../../../powerpc-rtems5/bi= n/ld:=20 ./libbsd.a(nd6.c.18.o): in function `nd6_llinfo_timer': /scratch/git-rtems-libbsd/build/powerpc-rtems5-qoriq_e6500_64-default/../= ../freebsd/sys/netinet6/nd6.c:881:=20 undefined reference to `_bsd_nd6_ns_output' /build/rtems/5/lib/gcc/powerpc-rtems5/7.4.0/../../../../powerpc-rtems5/bi= n/ld:=20 ./libbsd.a(nd6.c.18.o): in function `nd6_resolve_slow': /scratch/git-rtems-libbsd/build/powerpc-rtems5-qoriq_e6500_64-default/../= ../freebsd/sys/netinet6/nd6.c:2461:=20 undefined reference to `_bsd_nd6_ns_output' /build/rtems/5/lib/gcc/powerpc-rtems5/7.4.0/../../../../powerpc-rtems5/bi= n/ld:=20 ./libbsd.a(nd6_nbr.c.18.o): in function `nd6_dad_ns_output': /scratch/git-rtems-libbsd/build/powerpc-rtems5-qoriq_e6500_64-default/../= ../freebsd/sys/netinet6/nd6_nbr.c:1513:=20 undefined reference to `_bsd_nd6_ns_output' This is because of (in6_src.c): #ifndef BURN_BRIDGES int in6_selectroute_fib(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opt= s, =C2=A0=C2=A0=C2=A0 struct ip6_moptions *mopts, struct route_in6 *ro, =C2=A0=C2=A0=C2=A0 struct ifnet **retifp, struct rtentry **retrt, u_int = fibnum) { =C2=A0=C2=A0=C2=A0 return (selectroute(dstsock, opts, mopts, ro, retifp, =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 retrt, 0, fibnum)); } #endif And (ip6_output.c): int ip6_output(struct mbuf *m0, struct ip6_pktopts *opt, =C2=A0=C2=A0=C2=A0 struct route_in6 *ro, int flags, struct ip6_moptions = *im6o, =C2=A0=C2=A0=C2=A0 struct ifnet **ifpp, struct inpcb *inp) { ... =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 if (ro->ro_lle) =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 LLE_FREE(ro->ro= _lle);=C2=A0=C2=A0=C2=A0 /* zeros ro_lle */ =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 ro->ro_lle =3D NULL; =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 if (fwd_tag =3D=3D NULL) { =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 bzero(&dst_sa, = sizeof(dst_sa)); =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 dst_sa.sin6_fam= ily =3D AF_INET6; =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 dst_sa.sin6_len= =3D sizeof(dst_sa); =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 dst_sa.sin6_add= r =3D ip6->ip6_dst; =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 } =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 error =3D in6_selectroute_fib(&dst= _sa, opt, im6o, ro, &ifp, =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 &rt, fibnum); =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 if (error !=3D 0) { =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 if (ifp !=3D NU= LL) =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 in6_ifstat_inc(ifp, ifs6_out_discard); =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 goto bad; =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 } No BURN_BRIDGES conditional compilation. Is this option supposed to=20 work? What is its purpose? I enabled it to get rid of some legacy stuff=20 in bpf.c. --=20 Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.huber@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine gesch=C3=A4ftliche Mitteilung im Sinne des EHUG= .