Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
aa47a0f0
Commit
aa47a0f0
authored
Jan 09, 1999
by
Phil Blundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics
parent
639f0544
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
99 deletions
+5
-99
README
README
+3
-1
interface.h
interface.h
+0
-92
route.c
route.c
+2
-2
sockets.h
sockets.h
+0
-4
No files found.
README
View file @
aa47a0f0
...
...
@@ -34,7 +34,9 @@ This is net-tools 1.50. Notable changes since 1.49 include:
sockets.
- netstat -s is improved.
- route/netstat -r display the routing cache correctly.
- plipconfig and slattach are included in the distribution.
- plipconfig and slattach are included
- ipaddr and iptunnel are included (courtesy of Alexey Kuznetsov)
- as ever, various bugs have been fixed
Notable changes since 1.48 include:
...
...
interface.h
deleted
100644 → 0
View file @
639f0544
struct
user_net_device_stats
{
unsigned
long
rx_packets
;
/* total packets received */
unsigned
long
tx_packets
;
/* total packets transmitted */
unsigned
long
rx_bytes
;
/* total bytes received */
unsigned
long
tx_bytes
;
/* total bytes transmitted */
unsigned
long
rx_errors
;
/* bad packets received */
unsigned
long
tx_errors
;
/* packet transmit problems */
unsigned
long
rx_dropped
;
/* no space in linux buffers */
unsigned
long
tx_dropped
;
/* no space available in linux */
unsigned
long
rx_multicast
;
/* multicast packets received */
unsigned
long
rx_compressed
;
unsigned
long
tx_compressed
;
unsigned
long
collisions
;
/* detailed rx_errors: */
unsigned
long
rx_length_errors
;
unsigned
long
rx_over_errors
;
/* receiver ring buff overflow */
unsigned
long
rx_crc_errors
;
/* recved pkt with crc error */
unsigned
long
rx_frame_errors
;
/* recv'd frame alignment error */
unsigned
long
rx_fifo_errors
;
/* recv'r fifo overrun */
unsigned
long
rx_missed_errors
;
/* receiver missed packet */
/* detailed tx_errors */
unsigned
long
tx_aborted_errors
;
unsigned
long
tx_carrier_errors
;
unsigned
long
tx_fifo_errors
;
unsigned
long
tx_heartbeat_errors
;
unsigned
long
tx_window_errors
;
};
struct
interface
{
struct
interface
*
next
;
char
name
[
IFNAMSIZ
];
/* interface name */
short
type
;
/* if type */
short
flags
;
/* various flags */
int
metric
;
/* routing metric */
int
mtu
;
/* MTU value */
int
tx_queue_len
;
/* transmit queue length */
struct
ifmap
map
;
/* hardware setup */
struct
sockaddr
addr
;
/* IP address */
struct
sockaddr
dstaddr
;
/* P-P IP address */
struct
sockaddr
broadaddr
;
/* IP broadcast address */
struct
sockaddr
netmask
;
/* IP network mask */
struct
sockaddr
ipxaddr_bb
;
/* IPX network address */
struct
sockaddr
ipxaddr_sn
;
/* IPX network address */
struct
sockaddr
ipxaddr_e3
;
/* IPX network address */
struct
sockaddr
ipxaddr_e2
;
/* IPX network address */
struct
sockaddr
ddpaddr
;
/* Appletalk DDP address */
struct
sockaddr
ecaddr
;
/* Econet address */
int
has_ip
;
int
has_ipx_bb
;
int
has_ipx_sn
;
int
has_ipx_e3
;
int
has_ipx_e2
;
int
has_ax25
;
int
has_ddp
;
int
has_econet
;
char
hwaddr
[
32
];
/* HW address */
int
statistics_valid
;
struct
user_net_device_stats
stats
;
/* statistics */
int
keepalive
;
/* keepalive value for SLIP */
int
outfill
;
/* outfill value for SLIP */
};
extern
int
if_fetch
(
struct
interface
*
ife
);
extern
int
for_all_interfaces
(
int
(
*
)(
struct
interface
*
,
void
*
),
void
*
);
extern
struct
interface
*
lookup_interface
(
char
*
name
);
extern
int
if_readlist
(
void
);
extern
int
do_if_fetch
(
struct
interface
*
ife
);
extern
int
do_if_print
(
struct
interface
*
ife
,
void
*
cookie
);
extern
void
ife_print
(
struct
interface
*
ptr
);
/* Defines for poor glibc2.0 users, the feature check is done at runtime */
#if !defined(SIOCSIFTXQLEN)
#define SIOCSIFTXQLEN 0x8943
#define SIOCGIFTXQLEN 0x8942
#endif
#if !defined(ifr_qlen)
/* Actually it is ifru_ivalue, but that is not present in 2.0 kernel headers */
#define ifr_qlen ifr_ifru.ifru_mtu
#endif
#define HAVE_TXQUEUELEN
#define HAVE_DYNAMIC
#ifndef IFF_DYNAMIC
#define IFF_DYNAMIC 0x8000
/* dialup device with changing addresses */
#endif
route.c
View file @
aa47a0f0
...
...
@@ -2,7 +2,7 @@
* route This file contains an implementation of the command
* that manages the IP routing table in the kernel.
*
* Version: $Id: route.c,v 1.
4 1999/01/05 20:53:04
philip Exp $
* Version: $Id: route.c,v 1.
5 1999/01/09 15:37:35
philip Exp $
*
* Maintainer: Bernd 'eckes' Eckenfels, <net-tools@lina.inka.de>
*
...
...
@@ -65,7 +65,7 @@
#define FEATURE_ROUTE
#include "lib/net-features.h"
/* needs some of the system includes above! */
char
*
Release
=
RELEASE
,
*
Version
=
"route 1.96 (1999-01-01
-
)"
;
char
*
Release
=
RELEASE
,
*
Version
=
"route 1.96 (1999-01-01)"
;
int
opt_n
=
0
;
/* numerical output flag */
int
opt_v
=
0
;
/* debugging output flag */
...
...
sockets.h
deleted
100644 → 0
View file @
639f0544
extern
int
skfd
,
ipx_sock
,
ax25_sock
,
rose_sock
,
inet_sock
,
inet6_sock
,
ddp_sock
,
ec_sock
;
extern
int
sockets_open
(
int
family
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment