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
e192426f
Commit
e192426f
authored
Oct 29, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge kernel.bkbits.net:/home/acme/net-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5
parents
3c498e87
0f9045ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
20 deletions
+22
-20
net/802/psnap.c
net/802/psnap.c
+4
-1
net/llc/llc_proc.c
net/llc/llc_proc.c
+18
-19
No files found.
net/802/psnap.c
View file @
e192426f
...
...
@@ -91,12 +91,15 @@ static int snap_request(struct datalink_proto *dl,
EXPORT_SYMBOL
(
register_snap_client
);
EXPORT_SYMBOL
(
unregister_snap_client
);
static
char
snap_err_msg
[]
__initdata
=
KERN_CRIT
"SNAP - unable to register with 802.2
\n
"
;
static
int
__init
snap_init
(
void
)
{
snap_sap
=
llc_sap_open
(
0xAA
,
snap_rcv
);
if
(
!
snap_sap
)
printk
(
KERN_CRIT
"SNAP - unable to register with 802.2
\n
"
);
printk
(
snap_err_msg
);
return
0
;
}
...
...
net/llc/llc_proc.c
View file @
e192426f
...
...
@@ -13,10 +13,11 @@
*/
#include <linux/config.h>
#include <linux/init.h>
#ifdef CONFIG_PROC_FS
#include <linux/kernel.h>
#include <linux/proc_fs.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/seq_file.h>
#include <net/sock.h>
#include <net/llc_c_ac.h>
...
...
@@ -27,14 +28,13 @@
#include <net/llc_main.h>
#include <net/llc_sap.h>
#ifdef CONFIG_PROC_FS
static
void
llc_ui_format_mac
(
struct
seq_file
*
seq
,
unsigned
char
*
mac
)
{
seq_printf
(
seq
,
"%02X:%02X:%02X:%02X:%02X:%02X"
,
mac
[
0
],
mac
[
1
],
mac
[
2
],
mac
[
3
],
mac
[
4
],
mac
[
5
]);
}
static
__inline__
struct
sock
*
llc_get_sk_idx
(
loff_t
pos
)
static
struct
sock
*
llc_get_sk_idx
(
loff_t
pos
)
{
struct
list_head
*
sap_entry
;
struct
llc_sap
*
sap
;
...
...
@@ -44,15 +44,15 @@ static __inline__ struct sock *llc_get_sk_idx(loff_t pos)
sap
=
list_entry
(
sap_entry
,
struct
llc_sap
,
node
);
read_lock_bh
(
&
sap
->
sk_list
.
lock
);
for
(
sk
=
sap
->
sk_list
.
list
;
pos
&&
sk
;
sk
=
sk
->
next
)
--
pos
;
if
(
!
pos
)
{
if
(
!
sk
)
read_unlock_bh
(
&
sap
->
sk_list
.
lock
);
break
;
}
for
(
sk
=
sap
->
sk_list
.
list
;
sk
;
sk
=
sk
->
next
)
if
(
!
pos
--
)
{
if
(
!
sk
)
read_unlock_bh
(
&
sap
->
sk_list
.
lock
);
goto
out
;
}
read_unlock_bh
(
&
sap
->
sk_list
.
lock
);
}
out:
return
sk
;
}
...
...
@@ -72,15 +72,7 @@ static void *llc_seq_next(struct seq_file *seq, void *v, loff_t *pos)
++*
pos
;
if
(
v
==
(
void
*
)
1
)
{
if
(
list_empty
(
&
llc_main_station
.
sap_list
.
list
))
{
sk
=
NULL
;
goto
out
;
}
sap
=
list_entry
(
llc_main_station
.
sap_list
.
list
.
next
,
struct
llc_sap
,
node
);
read_lock_bh
(
&
sap
->
sk_list
.
lock
);
sk
=
sap
->
sk_list
.
list
;
sk
=
llc_get_sk_idx
(
0
);
goto
out
;
}
sk
=
v
;
...
...
@@ -109,6 +101,13 @@ static void *llc_seq_next(struct seq_file *seq, void *v, loff_t *pos)
static
void
llc_seq_stop
(
struct
seq_file
*
seq
,
void
*
v
)
{
if
(
v
)
{
struct
sock
*
sk
=
v
;
struct
llc_opt
*
llc
=
llc_sk
(
sk
);
struct
llc_sap
*
sap
=
llc
->
sap
;
read_unlock_bh
(
&
sap
->
sk_list
.
lock
);
}
read_unlock_bh
(
&
llc_main_station
.
sap_list
.
lock
);
}
...
...
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