|
a/libupnpp/getsyshwaddr.h |
|
b/libupnpp/getsyshwaddr.h |
|
... |
|
... |
35 |
|
35 |
|
36 |
typedef void (*type_ifreporter)(void *, const char *);
|
36 |
typedef void (*type_ifreporter)(void *, const char *);
|
37 |
/**
|
37 |
/**
|
38 |
* Retrieve hardware (ethernet) network address for this host.
|
38 |
* Retrieve hardware (ethernet) network address for this host.
|
39 |
* @param iface if not null or empty, use this interface, else first found.
|
39 |
* @param iface if not null or empty, use this interface, else first found.
|
40 |
* @param[output] ip IP address in dotted string notation.
|
40 |
* @param[out] ip IP address in dotted string notation.
|
41 |
* @param ilen size in bytes of the ip buffer.
|
41 |
* @param ilen size in bytes of the ip buffer.
|
42 |
* @param[output] buf in which to return the hardware address.
|
42 |
* @param[out] buf in which to return the hardware address.
|
43 |
* @param hlen size in bytes of the buf buffer. Caller should use 6 for binary
|
43 |
* @param hlen size in bytes of the buf buffer. Caller should use 6 for binary
|
44 |
* or > 12 for ascii return.
|
44 |
* or > 12 for ascii return.
|
45 |
*/
|
45 |
*/
|
46 |
int getsyshwaddr(const char *iface, char *ip, int ilen, char *buf, int hlen,
|
46 |
int getsyshwaddr(const char *iface, char *ip, int ilen, char *buf, int hlen,
|
47 |
type_ifreporter cback, void *tok);
|
47 |
type_ifreporter cback, void *tok);
|