iface.h
Go to the documentation of this file.
58 * @brief contains the file descriptor, interface status (up or down), profile name, interface frequency struct, wpa control struct, wpa id, and a bool to indicare whether the interface is wireless or not
90 * @brief adds a new interface to the list of available interfaces, and checks whether it is IPv4 and IPv6 capable, and whether it is wireless
92 * @param family address family of the interface. Must be AF_INET (IPv4) or AF_INET6 (IPv6), which uses host and port number for addressing
199 //int co_set_dns(const char *dnsservers[], const size_t numservers, const char *searchdomain, const char *resolvpath);
208 int co_generate_ip(const char *base, const char *genmask, const nodeid_t id, char *output, int type);
Commotion object model.
Definition: id.h:40
int co_iface_unset_ip(co_obj_t *iface)
Resets ip address of chosen interface.
Definition: iface.c:259
int co_iface_wpa_disconnect(co_obj_t *iface)
turns off wpa supplicant
Definition: iface.c:273
int co_set_dns(const char *dnsserver, const char *searchdomain, const char *resolvpath)
sets DNS name server and sets search domain
Definition: iface.c:426
int co_iface_set_mode(co_obj_t *iface, const char *mode)
specifies the Wi-Fi mode
Definition: iface.c:366
int co_iface_set_encryption(co_obj_t *iface, const char *proto)
specifies the wpa encryption protocol
Definition: iface.c:352
int co_iface_set_ip(co_obj_t *iface, const char *ip_addr, const char *netmask)
sets ip address and netmask for commotion interface
Definition: iface.c:232
int co_iface_set_ssid(co_obj_t *iface, const char *ssid)
sets SSID from profile or uses default
Definition: iface.c:309
co_obj_t * co_iface_get(char *iface_name)
retrieves node configuration profile
Definition: iface.c:502
simple interface for managing node id
contains the file descriptor, interface status (up or down), profile name, interface frequency struct...
Definition: iface.h:60
int co_iface_get_mac(co_obj_t *iface, unsigned char *output, int output_size)
Definition: iface.c:210
Definition: obj.h:131
int co_iface_wpa_connect(co_obj_t *iface)
connects the commotion interface to wpa supplicant
Definition: iface.c:285
int co_iface_wireless_disable(co_obj_t *iface)
disables specified wireless network
Definition: iface.c:401
int co_iface_set_apscan(co_obj_t *iface, const int value)
sets AP_SCAN value
Definition: iface.c:373
int co_iface_remove(char *iface_name)
removes an interface from the list of available interfaces
Definition: iface.c:166
int co_iface_wireless_enable(co_obj_t *iface)
enables specified wireless network
Definition: iface.c:387
Definition: wpa_ctrl.c:76
int co_iface_set_key(co_obj_t *iface, const char *key)
specifies the wpa encryption key
Definition: iface.c:359
co_obj_t * co_iface_add(const char *iface_name, const int family)
adds a new interface to the list of available interfaces, and checks whether it is IPv4 and IPv6 capa...
Definition: iface.c:180
char * co_iface_profile(char *iface_name)
sets node configuration profile
Definition: iface.c:494
int co_iface_set_bssid(co_obj_t *iface, const char *bssid)
sets BSSID from profile or uses default
Definition: iface.c:316
int co_generate_ip(const char *base, const char *genmask, const nodeid_t id, char *output, int type)
generates an ip table for a commotion interface
Definition: iface.c:437
int co_iface_set_frequency(co_obj_t *iface, const int frequency)
sets wireless frequency (eg. channel) from profile or uses default
Definition: iface.c:343
Generated on Fri Jun 6 2014 13:22:05 for commotiond by 1.8.7