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
c7f5d607
Commit
c7f5d607
authored
Dec 11, 1999
by
Phil Blundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support new token ring ARP type
Patch from "Mike Phillips" <phillim@amtrak.com>
parent
09c0d844
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
lib/hw.c
lib/hw.c
+11
-1
lib/tr.c
lib/tr.c
+8
-1
No files found.
lib/hw.c
View file @
c7f5d607
...
...
@@ -2,7 +2,7 @@
* lib/hw.c This file contains the top-level part of the hardware
* support functions module.
*
* Version: $Id: hw.c,v 1.1
4 1999/05/16 16:41:12
philip Exp $
* Version: $Id: hw.c,v 1.1
5 1999/12/11 12:09:23
philip Exp $
*
* Maintainer: Bernd 'eckes' Eckenfels, <net-tools@lina.inka.de>
*
...
...
@@ -19,6 +19,7 @@
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if_arp.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
...
...
@@ -43,6 +44,9 @@ extern struct hwtype ether_hwtype;
extern
struct
hwtype
fddi_hwtype
;
extern
struct
hwtype
hippi_hwtype
;
extern
struct
hwtype
tr_hwtype
;
#ifdef ARPHRD_IEEE802_TR
extern
struct
hwtype
tr_hwtype1
;
#endif
extern
struct
hwtype
ax25_hwtype
;
extern
struct
hwtype
rose_hwtype
;
...
...
@@ -87,6 +91,9 @@ static struct hwtype *hwtypes[] =
#endif
#if HAVE_HWTR
&
tr_hwtype
,
#ifdef ARPHRD_IEEE802_TR
&
tr_hwtype1
,
#endif
#endif
#if HAVE_HWAX25
&
ax25_hwtype
,
...
...
@@ -192,6 +199,9 @@ void hwinit()
#endif
#if HAVE_HWTR
tr_hwtype
.
title
=
_
(
"16/4 Mbps Token Ring"
);
#ifdef ARPHRD_IEEE802_TR
tr_hwtype1
.
title
=
_
(
"16/4 Mbps Token Ring (New)"
)
;
#endif
#endif
#if HAVE_HWEC
ec_hwtype
.
title
=
_
(
"Econet"
);
...
...
lib/tr.c
View file @
c7f5d607
...
...
@@ -2,7 +2,7 @@
* lib/tr.c This file contains an implementation of the "Tokenring"
* support functions.
*
* Version: $Id: tr.c,v 1.
6 1999/09/27 11:00:49
philip Exp $
* Version: $Id: tr.c,v 1.
7 1999/12/11 12:09:24
philip Exp $
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* Copyright 1993 MicroWalt Corporation
...
...
@@ -124,6 +124,13 @@ struct hwtype tr_hwtype =
"tr"
,
NULL
/* "16/4 Mbps Token Ring" */
,
ARPHRD_IEEE802
,
TR_ALEN
,
pr_tr
,
in_tr
,
NULL
};
#ifdef ARPHRD_IEEE802_TR
struct
hwtype
tr_hwtype1
=
{
"tr"
,
NULL
/* "16/4 Mbps Token Ring" */
,
ARPHRD_IEEE802_TR
,
TR_ALEN
,
pr_tr
,
pr_str
,
in_tr
,
NULL
};
#endif
#endif
/* HAVE_HWTR */
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