Merge pull request #4506 from wojciechwasko/wwasko_kindex_int_master
Make interface's kernel index an int instead of int16_t
Этот коммит содержится в:
Коммит
096edf9ec4
@ -133,7 +133,7 @@ int opal_ifnametoindex(const char* if_name)
|
||||
* corresponding kernel index.
|
||||
*/
|
||||
|
||||
int16_t opal_ifnametokindex(const char* if_name)
|
||||
int opal_ifnametokindex(const char* if_name)
|
||||
{
|
||||
opal_if_t* intf;
|
||||
|
||||
@ -235,7 +235,7 @@ int opal_ifaddrtoname(const char* if_addr, char* if_name, int length)
|
||||
* or hostname) and return the kernel index of the interface
|
||||
* on the same network as the specified address
|
||||
*/
|
||||
int16_t opal_ifaddrtokindex(const char* if_addr)
|
||||
int opal_ifaddrtokindex(const char* if_addr)
|
||||
{
|
||||
opal_if_t* intf;
|
||||
int error;
|
||||
@ -729,7 +729,7 @@ opal_ifnametoindex(const char* if_name)
|
||||
return OPAL_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
int16_t
|
||||
int
|
||||
opal_ifnametokindex(const char* if_name)
|
||||
{
|
||||
return OPAL_ERR_NOT_SUPPORTED;
|
||||
|
@ -88,14 +88,14 @@ OPAL_DECLSPEC int opal_ifnametoindex(const char* if_name);
|
||||
* @param if_name (IN) Interface name
|
||||
* @return Interface kernel index
|
||||
*/
|
||||
OPAL_DECLSPEC int16_t opal_ifnametokindex(const char* if_name);
|
||||
OPAL_DECLSPEC int opal_ifnametokindex(const char* if_name);
|
||||
|
||||
/*
|
||||
* Attempt to resolve an address (given as either IPv4/IPv6 string
|
||||
* or hostname) and return the kernel index of the interface
|
||||
* that is on the same network as the specified address
|
||||
*/
|
||||
OPAL_DECLSPEC int16_t opal_ifaddrtokindex(const char* if_addr);
|
||||
OPAL_DECLSPEC int opal_ifaddrtokindex(const char* if_addr);
|
||||
|
||||
/**
|
||||
* Lookup an interface by opal_list index and return its kernel index.
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user