btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / net / net_stat.h
blobbcbb75940b2fdbfa08211f69ca3b6cac170c520d
1 /*
2 * Copyright 2006, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef NET_STAT_H
6 #define NET_STAT_H
9 #include <OS.h>
11 #include <sys/socket.h>
14 #define NET_STAT_SOCKET 1
15 #define NET_STAT_PROTOCOL 2
18 typedef struct net_stat {
19 int family;
20 int type;
21 int protocol;
22 char state[B_OS_NAME_LENGTH];
23 team_id owner;
24 struct sockaddr_storage address;
25 struct sockaddr_storage peer;
26 size_t receive_queue_size;
27 size_t send_queue_size;
28 } net_stat;
30 #endif // NET_STAT_H