Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
nexedi
linux
Commits
bebc2f3f
Commit
bebc2f3f
authored
May 15, 2003
by
Hideaki Yoshifuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: ARCnet support, driver side.
parent
861c1242
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
drivers/net/arcnet/arcnet.c
drivers/net/arcnet/arcnet.c
+1
-1
drivers/net/arcnet/rfc1201.c
drivers/net/arcnet/rfc1201.c
+6
-0
include/linux/if_arcnet.h
include/linux/if_arcnet.h
+4
-0
No files found.
drivers/net/arcnet/arcnet.c
View file @
bebc2f3f
...
...
@@ -340,7 +340,7 @@ void arcdev_setup(struct net_device *dev)
dev
->
hard_header_len
=
sizeof
(
struct
archdr
);
dev
->
mtu
=
choose_mtu
();
dev
->
addr_len
=
1
;
dev
->
addr_len
=
ARCNET_ALEN
;
dev
->
tx_queue_len
=
30
;
dev
->
broadcast
[
0
]
=
0x00
;
/* for us, broadcasts are address 0 */
dev
->
watchdog_timeo
=
TX_TIMEOUT
;
...
...
drivers/net/arcnet/rfc1201.c
View file @
bebc2f3f
...
...
@@ -56,6 +56,7 @@ struct ArcProto rfc1201_proto =
void
__init
arcnet_rfc1201_init
(
void
)
{
arc_proto_map
[
ARC_P_IP
]
=
arc_proto_map
[
ARC_P_IPV6
]
=
arc_proto_map
[
ARC_P_ARP
]
=
arc_proto_map
[
ARC_P_RARP
]
=
arc_proto_map
[
ARC_P_IPX
]
...
...
@@ -114,6 +115,8 @@ static unsigned short type_trans(struct sk_buff *skb, struct net_device *dev)
switch
(
soft
->
proto
)
{
case
ARC_P_IP
:
return
htons
(
ETH_P_IP
);
case
ARC_P_IPV6
:
return
htons
(
ETH_P_IPV6
);
case
ARC_P_ARP
:
return
htons
(
ETH_P_ARP
);
case
ARC_P_RARP
:
...
...
@@ -389,6 +392,9 @@ static int build_header(struct sk_buff *skb, unsigned short type,
case
ETH_P_IP
:
soft
->
proto
=
ARC_P_IP
;
break
;
case
ETH_P_IPV6
:
soft
->
proto
=
ARC_P_IPV6
;
break
;
case
ETH_P_ARP
:
soft
->
proto
=
ARC_P_ARP
;
break
;
...
...
include/linux/if_arcnet.h
View file @
bebc2f3f
...
...
@@ -25,6 +25,7 @@
/* RFC1201 Protocol ID's */
#define ARC_P_IP 212
/* 0xD4 */
#define ARC_P_IPV6 196
/* 0xC4: RFC2497 */
#define ARC_P_ARP 213
/* 0xD5 */
#define ARC_P_RARP 214
/* 0xD6 */
#define ARC_P_IPX 250
/* 0xFA */
...
...
@@ -45,6 +46,9 @@
#define ARC_P_LANSOFT 251
/* 0xFB - what is this? */
#define ARC_P_ATALK 0xDD
/* Hardware address length */
#define ARCNET_ALEN 1
/*
* The RFC1201-specific components of an arcnet packet header.
*/
...
...
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