Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4727 → Rev 4728

/branches/network/uspace/srv/net/include/hardware.h
32,7 → 32,6
 
/** @file
* Hardware types according to the on-line IANA - Address Resolution Protocol (ARP) Parameters - <http://www.iana.org/assignments/arp-parameters/arp-parameters.xml>, cited January 14 2009.
* Names similar to the linux src/include/linux/if_arp.h header file.
*/
 
#ifndef __NET_HW_TYPES_H__
/branches/network/uspace/srv/net/include/device.h
83,33 → 83,32
};
 
/** Device usage statistics.
* Based on linux_kernel/include/linux/netdevice.h.
*/
struct device_stats{
/** Total packets received.
*/
unsigned long rx_packets;
unsigned long receive_packets;
/** Total packets transmitted.
*/
unsigned long tx_packets;
unsigned long send_packets;
/** Total bytes received.
*/
unsigned long rx_bytes;
unsigned long receive_bytes;
/** Total bytes transmitted.
*/
unsigned long tx_bytes;
unsigned long send_bytes;
/** Bad packets received counter.
*/
unsigned long rx_errors;
unsigned long receive_errors;
/** Packet transmition problems counter.
*/
unsigned long tx_errors;
unsigned long send_errors;
/** No space in buffers counter.
*/
unsigned long rx_dropped;
unsigned long receive_dropped;
/** No space available counter.
*/
unsigned long tx_dropped;
unsigned long send_dropped;
/** Total multicast packets received.
*/
unsigned long multicast;
117,50 → 116,50
*/
unsigned long collisions;
 
/* detailed rx_errors: */
/* detailed receive_errors: */
/** Received packet length error counter.
*/
unsigned long rx_length_errors;
unsigned long receive_length_errors;
/** Receiver buffer overflow counter.
*/
unsigned long rx_over_errors;
unsigned long receive_over_errors;
/** Received packet with crc error counter.
*/
unsigned long rx_crc_errors;
unsigned long receive_crc_errors;
/** Received frame alignment error counter.
*/
unsigned long rx_frame_errors;
unsigned long receive_frame_errors;
/** Receiver fifo overrun counter.
*/
unsigned long rx_fifo_errors;
unsigned long receive_fifo_errors;
/** Receiver missed packet counter.
*/
unsigned long rx_missed_errors;
unsigned long receive_missed_errors;
 
/* detailed tx_errors */
/* detailed send_errors */
/** Transmitter aborted counter.
*/
unsigned long tx_aborted_errors;
unsigned long send_aborted_errors;
/** Transmitter carrier errors counter.
*/
unsigned long tx_carrier_errors;
unsigned long send_carrier_errors;
/** Transmitter fifo overrun counter.
*/
unsigned long tx_fifo_errors;
unsigned long send_fifo_errors;
/** Transmitter carrier errors counter.
*/
unsigned long tx_heartbeat_errors;
unsigned long send_heartbeat_errors;
/** Transmitter window errors counter.
*/
unsigned long tx_window_errors;
unsigned long send_window_errors;
 
/* for cslip etc */
/** Total compressed packets received.
*/
unsigned long rx_compressed;
unsigned long receive_compressed;
/** Total compressed packet transmitted.
*/
unsigned long tx_compressed;
unsigned long send_compressed;
};
 
#endif
/branches/network/uspace/srv/net/include/socket_codes.h
41,8 → 41,9
#include <sys/types.h>
 
/** @name Address families definitions
*/
*/
/*@{*/
 
/** Unspecified address family.
*/
#define AF_UNSPEC 0
174,6 → 175,7
/** Maximum address family.
*/
#define AF_MAX 34
 
/*@}*/
 
/** @name Protocol families definitions
180,6 → 182,7
* Same as address families.
*/
/*@{*/
 
/** Unspecified protocol family.
*/
#define PF_UNSPEC AF_UNSPEC
311,6 → 314,7
/** Maximum protocol family.
*/
#define PF_MAX AF_MAX
 
/*@}*/
 
/** @name Socket option levels definitions
432,11 → 436,6
 
/*@}*/
 
//
/* * IPX options.
*/
//#define IPX_TYPE 1
 
/** Socket types.
*/
typedef enum sock_type{
/branches/network/uspace/srv/net/include/icmp_codes.h
32,7 → 32,6
 
/** @file
* ICMP types and codes according to the on-line IANA - ICMP Type Numbers - <http://http://www.iana.org/assignments/icmp-parameters>, cited September 14 2009.
* Names according to the linux src/include/linux/icmp.h header file.
*/
 
#ifndef __NET_ICMP_CODES_H__
/branches/network/uspace/srv/net/include/ip_protocols.h
32,7 → 32,6
 
/** @file
* Internet protocol numbers according to the on-line IANA - Assigned Protocol numbers - <http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xml>, cited January 14 2009.
* Names according to the linux src/include/linux/in.h header file.
*/
 
#ifndef __NET_IPPROTOCOLS_H__
/branches/network/uspace/srv/net/include/ethernet_protocols.h
32,7 → 32,6
 
/** @file
* Ethernet protocol numbers according to the on-line IANA - Ethernet numbers - <http://www.iana.org/assignments/ethernet-numbers>, cited January 17 2009.
* Names according to the linux src/include/linux/if_ether.h header file.
*/
 
#ifndef __NET_ETHERNET_PROTOCOLS_H__
/branches/network/uspace/srv/net/include/socket.h
33,7 → 33,7
/** @file
* Socket application program interface (API).
* This is a part of the network application library.
* Based on the linux src/include/linux/socket.h header file and BSD socket interface.
* Based on the BSD socket interface.
*/
 
#ifndef __NET_SOCKET_H__