|
Description
|
Based on our meeting on 12/20/2007, we (Bill, Mike, Alan, and Afshin) agreed on the following required interfaces:
typedef struct {
char ifname[LIFNAMSIZ];
uint32_t ip;
uint32_t mask;
uint32_t broadcast;
uint64_t flags;
boolean_t exclude;
} net_cfg_t;
int smb_net_associate(const char *name, int argc, net_cfg_t *const *argv)
int smb_net_disassociate(const char *name, int argc, net_cfg_t *const *argv)
The exclude flag in net_cfg_t should always be set to B_FALSE by the caller.
These functions would copy the addresses to some storage managed by your code. You are in charge of the format of that storage - our code will only access it through these two functions. The calling code will be required to refresh smb/server - this interface should not refresh smb/server every time smb_net_* is called.
|