PR: 23806 Submitted by: Yen-Ming Lee <leeym@bsd.ce.ntu.edu.tw>
PR: 4823 Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>