Is this a typo in if_tap.c?

看板FB_current作者時間12年前 (2013/04/27 12:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
When I was trying to create a second tap device, kernel crashed. Is this patch correct ? Index: sys/net/if_tap.c =================================================================== --- sys/net/if_tap.c (revision 243397) +++ sys/net/if_tap.c (working copy) @@ -186,7 +186,7 @@ /* Find any existing device, or allocate new unit number. */ i = clone_create(&tapclones, &tap_cdevsw, &unit, &dev, 0); if (i) { - dev = make_dev(&tap_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, + dev = make_dev(&tap_cdevsw, unit, UID_ROOT, GID_WHEEL, 0600, "%s%d", tapname, unit); } _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1HUrK2U- (FB_current)
文章代碼(AID): #1HUrK2U- (FB_current)