version 1.1, 2012/02/21 23:16:02
|
version 1.1.1.2, 2012/05/29 12:55:57
|
Line 1
|
Line 1
|
/* $Id$ */ |
/* $Id$ */ |
/* MiniUPnP project |
/* MiniUPnP project |
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ |
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ |
* (c) 2006-2008 Thomas Bernard | * (c) 2006-2011 Thomas Bernard |
* This software is subject to the conditions detailed |
* This software is subject to the conditions detailed |
* in the LICENCE file provided within the distribution */ |
* in the LICENCE file provided within the distribution */ |
#include <stdio.h> |
#include <stdio.h> |
Line 9
|
Line 9
|
#include "getifaddr.h" |
#include "getifaddr.h" |
|
|
int main(int argc, char * * argv) { |
int main(int argc, char * * argv) { |
char addr[16]; | char addr[64]; |
if(argc < 2) { |
if(argc < 2) { |
fprintf(stderr, "Usage:\t%s interface_name\n", argv[0]); |
fprintf(stderr, "Usage:\t%s interface_name\n", argv[0]); |
return 1; |
return 1; |