OpenSolaris

Printable Version Enter a New Search
Bug ID 6653315
Synopsis Want smb interface to associate hostname with network interfaces
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:cifs
Keywords
Responsible Engineer Afshin Ardakani
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_84
Fixed In snv_84
Release Fixed solaris_nevada(snv_84)
Related Bugs 6630612 , 6666158 , 6677657
Submit Date 22-January-2008
Last Update Date 9-May-2008
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.
Work Around
N/A
Comments
N/A