* Implemented a basic infrastructure for a netstat command.
* Started a netstat command. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19560 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2006, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef NET_STAT_H
|
||||
#define NET_STAT_H
|
||||
|
||||
|
||||
#include <OS.h>
|
||||
|
||||
#include <sys/socket.h>
|
||||
|
||||
|
||||
#define NET_STAT_SOCKET 1
|
||||
#define NET_STAT_PROTOCOL 2
|
||||
|
||||
|
||||
typedef struct net_stat {
|
||||
int family;
|
||||
int type;
|
||||
int protocol;
|
||||
char state[B_OS_NAME_LENGTH];
|
||||
team_id owner;
|
||||
struct sockaddr_storage address;
|
||||
struct sockaddr_storage peer;
|
||||
} net_stat;
|
||||
|
||||
#endif // NET_STAT_H
|
||||
Reference in New Issue
Block a user