if_nameindex.c
来自「用户认证及计费系统的网络驱动库」· C语言 代码 · 共 29 行
C
29 行
#include "unp.h"
/*
* This is a placeholder if the system does not provide this RFC 2133
* function. If routing sockets with sysctl() are provided, then the
* if_XXX() functions in the libroute/ directory will replace these.
*/
struct if_nameindex *
if_nameindex(void)
{
return(NULL);
}
void
if_freenameindex(struct if_nameindex *ptr)
{
}
struct if_nameindex *
If_nameindex(void)
{
struct if_nameindex *ifptr;
if ( (ifptr = if_nameindex()) == NULL)
err_quit("if_nameindex error");
return(ifptr);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?