Bug 8321 - Support the bind to an IP address in smbtad
Summary: Support the bind to an IP address in smbtad
Alias: None
Product: smbta
Classification: Unclassified
Component: smbtad (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: Holger Hetterich
QA Contact:
Depends on:
Blocks: 8204 8206
  Show dependency treegraph
Reported: 2011-07-26 17:14 UTC by Holger Hetterich
Modified: 2011-08-04 21:37 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hetterich 2011-07-26 17:14:15 UTC
As discussed on IRC, smbtad shall support binding to an IP Adress (and as such to an interface) by configuration.
Comment 1 Holger Hetterich 2011-07-26 17:14:34 UTC
blocks 1.2.6 release tracker bug
Comment 2 Holger Hetterich 2011-07-26 20:06:48 UTC
and this raises a lot of coding to properly support both ipv4 and ipv6
Comment 3 Holger Hetterich 2011-07-26 20:28:00 UTC
The server interface can run on ipv6 native while supporting ipv4.

I am not ready to commit code yet, but have a bunch of code in the queue...
Comment 4 Holger Hetterich 2011-07-27 17:51:38 UTC
The current code works for me for ipv6 as well as for ipv4. 

The address to bind to can be given with:
smbtad_ip = $IPV4ADDR
smbtad_ip = $IPV6ADDR
smbtad_ip = $HOSTNAME

in case of HOSTNAME smbtad will try to resolve the hostnames ip address and uses that.

If the parameter is not given, it defaults to localhost.
Comment 5 Holger Hetterich 2011-07-27 18:52:39 UTC
I have updated the documentation about this.
Comment 6 Holger Hetterich 2011-07-27 19:12:53 UTC
I am resolving this bug, please reopen if it doesn't work.
Comment 7 Holger Hetterich 2011-07-28 07:02:03 UTC
the status table has to be updated to reflect the smbtad_ip settings in the database. reopened
Comment 8 Holger Hetterich 2011-07-28 10:10:09 UTC
smbtad_ip is now included in the report functions of smbtaquery and in the status table of smbtad.
Comment 9 Robert Piasek (dead mail address) 2011-08-04 21:37:13 UTC
I have re-factored IP address support using getaddrinfo. Right now you can not only specify either IPv4 of IPv6 address, but also and DNS name.