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
21eca083
Commit
21eca083
authored
Jun 05, 2004
by
Jamal Hadi Salim
Committed by
Linus Torvalds
Jun 05, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Add ARPHRD_NONE and use it in tun driver.
parent
0d570a57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
drivers/net/tun.c
drivers/net/tun.c
+2
-2
include/linux/if_arp.h
include/linux/if_arp.h
+1
-0
No files found.
drivers/net/tun.c
View file @
21eca083
...
@@ -129,8 +129,8 @@ static void tun_net_init(struct net_device *dev)
...
@@ -129,8 +129,8 @@ static void tun_net_init(struct net_device *dev)
dev
->
addr_len
=
0
;
dev
->
addr_len
=
0
;
dev
->
mtu
=
1500
;
dev
->
mtu
=
1500
;
/*
Type PPP seems most suitable
*/
/*
Zero header length
*/
dev
->
type
=
ARPHRD_
PPP
;
dev
->
type
=
ARPHRD_
NONE
;
dev
->
flags
=
IFF_POINTOPOINT
|
IFF_NOARP
|
IFF_MULTICAST
;
dev
->
flags
=
IFF_POINTOPOINT
|
IFF_NOARP
|
IFF_MULTICAST
;
dev
->
tx_queue_len
=
10
;
dev
->
tx_queue_len
=
10
;
break
;
break
;
...
...
include/linux/if_arp.h
View file @
21eca083
...
@@ -86,6 +86,7 @@
...
@@ -86,6 +86,7 @@
#define ARPHRD_IEEE80211_PRISM 802
/* IEEE 802.11 + Prism2 header */
#define ARPHRD_IEEE80211_PRISM 802
/* IEEE 802.11 + Prism2 header */
#define ARPHRD_VOID 0xFFFF
/* Void type, nothing is known */
#define ARPHRD_VOID 0xFFFF
/* Void type, nothing is known */
#define ARPHRD_NONE 0xFFFE
/* zero header length */
/* ARP protocol opcodes. */
/* ARP protocol opcodes. */
#define ARPOP_REQUEST 1
/* ARP request */
#define ARPOP_REQUEST 1
/* ARP request */
...
...
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