Add support for user-defined interfaces for Samba
commitaba33b10d7c68b127efa605b9da1e918a6380322
authorJeremy Chadwick <jdc@koitsu.org>
Tue, 13 Dec 2016 07:05:34 +0000 (13 14:05 +0700)
committerM_ars <m_ars@linksysinfo.org>
Tue, 13 Dec 2016 13:17:07 +0000 (13 20:17 +0700)
treef93400b299bdef697252f53acb39adb3d3de8f2c
parent63a8b536f419ec050b8a2ef5d5e92b6ae4407fc0
Add support for user-defined interfaces for Samba

This adds a new NVRAM variable, smbd_ifnames, a space-delimited list of
interface names to bind to.  It is used by the "interfaces" smb.conf
directive.  The variable defaults to br0 (lan_ifname) in cases where
the user has upgraded the FW without resetting NVRAM to defaults (i.e.
smbd_ifnames is unset), or when leaving the GUI form field empty.

Reference: https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html
Reference: https://www.samba.org/~tpot/articles/multiple-interfaces.html
Reference: http://www.linksysinfo.org/index.php?threads/attempt-at-patching-smb-custom-vs-default-config-conflict-for-interfaces-option.73024/
release/src-rt-6.x.4708/router/httpd/tomato.c
release/src-rt-6.x.4708/router/rc/services.c
release/src-rt-6.x.4708/router/shared/defaults.c
release/src-rt-6.x.4708/router/www/nas-samba.asp