usrnetloopbackstart.c

来自「IXP425的BSP代码」· C语言 代码 · 共 43 行

C
43
字号
/* usrNetLoopbackStart.c - Start the loopback interface *//* Copyright 1992 - 1998 Wind River Systems, Inc. *//*modification history--------------------01b,19aug98,ann  removed call to usrNetIfAttach and made an                 explicit call to loattach (i.e removed BSD dependancy)01a,05dec97,spm  added DHCP code review modifications*//********************************************************************************* usrNetLoopbackStart - start the loopback device** This routine attaches the loopback driver with IP address 127.0.0.1 and* host name "localhost". It is the initialization routine for the* INCLUDE_LOOPBACK_START component which is included automatically by* the configuration tool when INCLUDE_LOOPBACK is defined.** RETURNS: N/A** NOMANUAL*/void usrNetLoopbackStart (void)    {    printf ("Attaching interface lo0...");    if (loattach () != OK)	return;    printf ("done\n");    if (usrNetIfConfig ("lo", 0, "127.0.0.1", "localhost", 0) != OK)	return;    return;     }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?