NetBSD 2.0 has a new field in utmpx, ut_ss, for the IP address of the login client. It would be nice if sshd could support this field.
OpenSSH doesn't use utmpx on NetBSD, it uses login(3).
Created attachment 746 [details] Use {w,u}tmpx on NetBSD instead of login(3) If you want to experiment, try this patch. You will need to run "autoreconf" to rebuild configure after applying the patch, then ./configure && make. I make no guarantee that this is the right thing to do, however.
What about UseLogin in sshd.conf? Also, I wanted sshd to create both wtmp and wtmpx entries, so I compiled with both "-DUSE_WTMP" and "-DUSE_WTMPX". But this is still relevant: the NetBSD folks just added an option to /usr/bin/login to support ut_ss: "-a <address>" so that login(3) can fill in ut_ss. This is a post-NetBSD 2.0 patch. One way to detect its presence is by running "login -?" and parsing the usage message :-).
Comment on attachment 746 [details] Use {w,u}tmpx on NetBSD instead of login(3) That looks OK to me
Thanks but I'm not keen to apply this until someone who knows NetBSD can confirm that not using login(3) won't cause any other unpleasant side effects. Any NetBSD'ers lurking here want to comment?
Most of the patch has been applied - the remainder seems unnecessary.
Mass close of all bugs fixed in 8.4 release.