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
af8a45cb
Commit
af8a45cb
authored
Aug 14, 2003
by
Jeroen Vreeken
Committed by
David S. Miller
Aug 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NETROM]: Reserve space in socket header for AX25 header.
parent
f0089edf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
net/netrom/nr_dev.c
net/netrom/nr_dev.c
+1
-1
net/netrom/nr_subr.c
net/netrom/nr_subr.c
+4
-4
No files found.
net/netrom/nr_dev.c
View file @
af8a45cb
...
@@ -204,7 +204,7 @@ int nr_init(struct net_device *dev)
...
@@ -204,7 +204,7 @@ int nr_init(struct net_device *dev)
dev
->
stop
=
nr_close
;
dev
->
stop
=
nr_close
;
dev
->
hard_header
=
nr_header
;
dev
->
hard_header
=
nr_header
;
dev
->
hard_header_len
=
AX25_BPQ_HEADER_LEN
+
AX25_MAX_HEADER_LEN
+
NR_NETWORK_LEN
+
NR_TRANSPORT_LEN
;
dev
->
hard_header_len
=
NR_NETWORK_LEN
+
NR_TRANSPORT_LEN
;
dev
->
addr_len
=
AX25_ADDR_LEN
;
dev
->
addr_len
=
AX25_ADDR_LEN
;
dev
->
type
=
ARPHRD_NETROM
;
dev
->
type
=
ARPHRD_NETROM
;
dev
->
rebuild_header
=
nr_rebuild_header
;
dev
->
rebuild_header
=
nr_rebuild_header
;
...
...
net/netrom/nr_subr.c
View file @
af8a45cb
...
@@ -127,7 +127,7 @@ void nr_write_internal(struct sock *sk, int frametype)
...
@@ -127,7 +127,7 @@ void nr_write_internal(struct sock *sk, int frametype)
unsigned
char
*
dptr
;
unsigned
char
*
dptr
;
int
len
,
timeout
;
int
len
,
timeout
;
len
=
AX25_BPQ_HEADER_LEN
+
AX25_MAX_HEADER_LEN
+
NR_NETWORK_LEN
+
NR_TRANSPORT_LEN
;
len
=
NR_NETWORK_LEN
+
NR_TRANSPORT_LEN
;
switch
(
frametype
&
0x0F
)
{
switch
(
frametype
&
0x0F
)
{
case
NR_CONNREQ
:
case
NR_CONNREQ
:
...
@@ -151,7 +151,7 @@ void nr_write_internal(struct sock *sk, int frametype)
...
@@ -151,7 +151,7 @@ void nr_write_internal(struct sock *sk, int frametype)
/*
/*
* Space for AX.25 and NET/ROM network header
* Space for AX.25 and NET/ROM network header
*/
*/
skb_reserve
(
skb
,
AX25_BPQ_HEADER_LEN
+
AX25_MAX_HEADER_LEN
+
NR_NETWORK_LEN
);
skb_reserve
(
skb
,
NR_NETWORK_LEN
);
dptr
=
skb_put
(
skb
,
skb_tailroom
(
skb
));
dptr
=
skb_put
(
skb
,
skb_tailroom
(
skb
));
...
@@ -219,12 +219,12 @@ void nr_transmit_refusal(struct sk_buff *skb, int mine)
...
@@ -219,12 +219,12 @@ void nr_transmit_refusal(struct sk_buff *skb, int mine)
unsigned
char
*
dptr
;
unsigned
char
*
dptr
;
int
len
;
int
len
;
len
=
AX25_BPQ_HEADER_LEN
+
AX25_MAX_HEADER_LEN
+
NR_NETWORK_LEN
+
NR_TRANSPORT_LEN
+
1
;
len
=
NR_NETWORK_LEN
+
NR_TRANSPORT_LEN
+
1
;
if
((
skbn
=
alloc_skb
(
len
,
GFP_ATOMIC
))
==
NULL
)
if
((
skbn
=
alloc_skb
(
len
,
GFP_ATOMIC
))
==
NULL
)
return
;
return
;
skb_reserve
(
skbn
,
AX25_BPQ_HEADER_LEN
+
AX25_MAX_HEADER_LEN
);
skb_reserve
(
skbn
,
0
);
dptr
=
skb_put
(
skbn
,
NR_NETWORK_LEN
+
NR_TRANSPORT_LEN
);
dptr
=
skb_put
(
skbn
,
NR_NETWORK_LEN
+
NR_TRANSPORT_LEN
);
...
...
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