⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testgetifstats.c

📁 miniupnpd可以在嵌入式linux中实现upnp功能
💻 C
字号:
/* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2006 Thomas Bernard  * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */#include <stdio.h>#include "../getifstats.h"intmain(int argc, char * * argv){	int r;	struct ifdata data;	printf("usage: %s if_name\n", argv[0]);	if(argc<2)		return -1;	r = getifstats(argv[1], &data);	if(r<0)		printf("getifstats() failed\n");	else	{		printf("ipackets = %10lu   opackets = %10lu\n",		       data.ipackets, data.opackets);		printf("ibytes =   %10lu   obytes =   %10lu\n",		       data.ibytes, data.obytes);		printf("baudrate = %10lu\n", data.baudrate);	}	return 0;}

⌨️ 快捷键说明

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