better help for getting addresses for dgrams received with divert-to.
authordlg <dlg@openbsd.org>
Wed, 23 Feb 2022 13:37:06 +0000 (13:37 +0000)
committerdlg <dlg@openbsd.org>
Wed, 23 Feb 2022 13:37:06 +0000 (13:37 +0000)
commitb3639f441e4bfe476fd14b993717c34d7eaa7d29
treec4f4a51faea1f4f4a559bd1660a2a1eb0cb1cf2c
parentb926ef24286fd57d76c5d3e65c1fc05e3e005857
better help for getting addresses for dgrams received with divert-to.

getsockname is for connected sockets, not all sockets. dgrams need
to use some setsockopt stuff and cmsgs to get packet info like that.

suggested by K R on bugs@
share/man/man5/pf.conf.5