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
Kirill Smelkov
linux
Commits
a6b61aab
Commit
a6b61aab
authored
Nov 23, 2007
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import 0.99.15j
parent
9300725c
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
68 additions
and
67 deletions
+68
-67
Makefile
Makefile
+1
-1
ipc/shm.c
ipc/shm.c
+6
-0
net/inet/arp.c
net/inet/arp.c
+1
-1
net/inet/proc.c
net/inet/proc.c
+1
-1
net/inet/sock.c
net/inet/sock.c
+3
-3
net/inet/sock.h
net/inet/sock.h
+2
-1
net/inet/tcp.c
net/inet/tcp.c
+52
-57
net/inet/tcp.h
net/inet/tcp.h
+2
-3
No files found.
Makefile
View file @
a6b61aab
VERSION
=
0.99
PATCHLEVEL
=
15
ALPHA
=
i
ALPHA
=
j
all
:
Version zImage
...
...
ipc/shm.c
View file @
a6b61aab
...
...
@@ -391,6 +391,12 @@ int sys_shmat (int shmid, char *shmaddr, int shmflg, ulong *raddr)
if
(
shmid
<
0
)
return
-
EINVAL
;
if
(
raddr
)
{
err
=
verify_area
(
VERIFY_WRITE
,
raddr
,
sizeof
(
long
));
if
(
err
)
return
err
;
}
shp
=
shm_segs
[
id
=
shmid
%
SHMMNI
];
if
(
shp
==
IPC_UNUSED
||
shp
==
IPC_NOID
)
return
-
EINVAL
;
...
...
net/inet/arp.c
View file @
a6b61aab
...
...
@@ -17,10 +17,10 @@
*
* Authors: Ross Biro, <bir7@leland.Stanford.Edu>
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
* Stephen A. Wood, <saw@hallc1.cebaf.gov>
* Arnt Gulbrandsen, <agulbra@pvv.unit.no>
*
* Fixes:
* Stephen A. Wood : arp problems
* 'Mr Linux' : arp problems.
* Alan Cox : arp_ioctl now checks memory areas with verify_area.
* Alan Cox : Non IP arp message now only appears with debugging on.
...
...
net/inet/proc.c
View file @
a6b61aab
...
...
@@ -88,7 +88,7 @@ get__netinfo(struct proto *pro, char *buffer, int format)
sp
->
timer
.
expires
=
0
;
pos
+=
sprintf
(
pos
,
"%2d: %08lX:%04X %08lX:%04X %02X %08lX:%08lX %02X:%08lX %08X %d
\n
"
,
i
,
src
,
srcp
,
dest
,
destp
,
sp
->
state
,
format
==
0
?
sp
->
send
_seq
-
sp
->
rcv_ack_seq
:
sp
->
rmem_alloc
,
format
==
0
?
sp
->
write
_seq
-
sp
->
rcv_ack_seq
:
sp
->
rmem_alloc
,
format
==
0
?
sp
->
acked_seq
-
sp
->
copied_seq
:
sp
->
wmem_alloc
,
timer_active
,
sp
->
timer
.
expires
,
(
unsigned
)
sp
->
retransmits
,
SOCK_INODE
(
sp
->
socket
)
->
i_uid
);
...
...
net/inet/sock.c
View file @
a6b61aab
...
...
@@ -119,8 +119,8 @@ print_sk(struct sock *sk)
printk
(
" daddr = %lX, saddr = %lX
\n
"
,
sk
->
daddr
,
sk
->
saddr
);
printk
(
" num = %d"
,
sk
->
num
);
printk
(
" next = %p
\n
"
,
sk
->
next
);
printk
(
"
send
_seq = %ld, acked_seq = %ld, copied_seq = %ld
\n
"
,
sk
->
send
_seq
,
sk
->
acked_seq
,
sk
->
copied_seq
);
printk
(
"
write
_seq = %ld, acked_seq = %ld, copied_seq = %ld
\n
"
,
sk
->
write
_seq
,
sk
->
acked_seq
,
sk
->
copied_seq
);
printk
(
" rcv_ack_seq = %ld, window_seq = %ld, fin_seq = %ld
\n
"
,
sk
->
rcv_ack_seq
,
sk
->
window_seq
,
sk
->
fin_seq
);
printk
(
" prot = %p
\n
"
,
sk
->
prot
);
...
...
@@ -838,7 +838,7 @@ inet_create(struct socket *sock, int protocol)
sk
->
rcvbuf
=
SK_RMEM_MAX
;
sk
->
pair
=
NULL
;
sk
->
opt
=
NULL
;
sk
->
send
_seq
=
0
;
sk
->
write
_seq
=
0
;
sk
->
acked_seq
=
0
;
sk
->
copied_seq
=
0
;
sk
->
fin_seq
=
0
;
...
...
net/inet/sock.h
View file @
a6b61aab
...
...
@@ -55,7 +55,8 @@ struct sock {
struct
options
*
opt
;
volatile
unsigned
long
wmem_alloc
;
volatile
unsigned
long
rmem_alloc
;
unsigned
long
send_seq
;
unsigned
long
write_seq
;
unsigned
long
sent_seq
;
unsigned
long
acked_seq
;
unsigned
long
copied_seq
;
unsigned
long
rcv_ack_seq
;
...
...
net/inet/tcp.c
View file @
a6b61aab
This diff is collapsed.
Click to expand it.
net/inet/tcp.h
View file @
a6b61aab
...
...
@@ -80,13 +80,12 @@
*/
static
inline
int
before
(
unsigned
long
seq1
,
unsigned
long
seq2
)
{
seq2
-=
seq1
+
1
;
return
(
seq2
<
65536
);
return
(
long
)(
seq1
-
seq2
)
<
0
;
}
static
inline
int
after
(
unsigned
long
seq1
,
unsigned
long
seq2
)
{
return
before
(
seq2
,
seq1
)
;
return
(
long
)(
seq1
-
seq2
)
>
0
;
}
...
...
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