Re: Routing bugs: zebra/quagga are unusable => ifconfig bug

看板DFBSD_bugs作者時間21年前 (2005/01/06 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
The ifconfig bug described in my initial message is caused by the line 532 of sbin.ifconfig/ifconfig.c, after calling clone_create(): goto end; in FreeBSD that line was: exit(0); The goto is incorrect because at the end there is no information about the fact that a new interface has been created. That information could be saved in a variable, e.g. by incrementing "foundit", but it is much more simple to revert to the FreeBSD line. One way or the other, this must be corrected, especially for the cases when ifconfig is used in scripts, where the returned error code will lead to wrong decisions. Best regards !
文章代碼(AID): #11t2js00 (DFBSD_bugs)
文章代碼(AID): #11t2js00 (DFBSD_bugs)