Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
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
net-tools
Commits
cf337801
Commit
cf337801
authored
Dec 07, 2011
by
Jiri Popelka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in kernel 2.6 /proc/net/x25_routes moves to /proc/net/x25/route
parent
96b25f18
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
lib/pathnames.h
lib/pathnames.h
+2
-2
lib/x25_gr.c
lib/x25_gr.c
+11
-1
No files found.
lib/pathnames.h
View file @
cf337801
...
...
@@ -50,7 +50,7 @@
#define _PATH_ETHERS "/etc/ethers"
#define _PATH_PROCNET_ROSE_ROUTE "/proc/net/rose_routes"
#define _PATH_PROCNET_X25 "/proc/net/x25"
#define _PATH_PROCNET_X25_ROUTE
"/proc/net/x25_routes
"
#define _PATH_PROCNET_X25_ROUTE
"/proc/net/x25/route
"
#define _PATH_PROCNET_DEV_MCAST "/proc/net/dev_mcast"
#define _PATH_PROCNET_ATALK_ROUTE "/proc/net/atalk_route"
#define _PATH_SYS_BLUETOOTH_L2CAP "/sys/class/bluetooth/l2cap"
...
...
lib/x25_gr.c
View file @
cf337801
...
...
@@ -37,6 +37,7 @@
#include <string.h>
#include "net-support.h"
#include "pathnames.h"
#include "proc.h"
#define EXTERN
#if 0
#include "net-locale.h"
...
...
@@ -48,9 +49,18 @@
#define X25_ADDR_LEN 16
#endif
static
FILE
*
proc_fopen_x25_route
(
void
)
{
FILE
*
ret
=
proc_fopen
(
_PATH_PROCNET_X25_ROUTE
);
if
(
ret
)
return
ret
;
/* try old linux-2.4 name */
return
proc_fopen
(
"/proc/net/x25_routes"
);
}
int
X25_rprint
(
int
options
)
{
FILE
*
f
=
fopen
(
_PATH_PROCNET_X25_ROUTE
,
"r"
);
FILE
*
f
=
proc_fopen_x25_route
(
);
char
buffer
[
256
];
char
*
p
;
int
digits
;
...
...
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