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
1ad2be64
Commit
1ad2be64
authored
Oct 19, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/ipv4/ip_proc.c: Include linux/ax25.h and handle modular AX25.
parent
3842f48d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
net/ipv4/ip_proc.c
net/ipv4/ip_proc.c
+6
-4
No files found.
net/ipv4/ip_proc.c
View file @
1ad2be64
...
...
@@ -31,7 +31,9 @@ extern int afinet_get_info(char *, char **, off_t, int);
extern
int
tcp_get_info
(
char
*
,
char
**
,
off_t
,
int
);
#ifdef CONFIG_PROC_FS
#ifdef CONFIG_AX25
#if defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE)
#include <linux/ax25.h>
/* ------------------------------------------------------------------------ */
/*
...
...
@@ -64,7 +66,7 @@ static char *ax2asc2(ax25_address *a, char *buf)
return
buf
;
}
#endif
/* CONFIG_AX25 */
#endif
/* CONFIG_AX25
|| CONFIG_AX25_MODULE
*/
struct
arp_iter_state
{
int
is_pneigh
,
bucket
;
...
...
@@ -196,7 +198,7 @@ static __inline__ void arp_format_neigh_entry(struct seq_file *seq,
read_lock
(
&
n
->
lock
);
/* Convert hardware address to XX:XX:XX:XX ... form. */
#if
def CONFIG_AX25
#if
defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE)
if
(
hatype
==
ARPHRD_AX25
||
hatype
==
ARPHRD_NETROM
)
ax2asc2
((
ax25_address
*
)
n
->
ha
,
hbuffer
);
else
{
...
...
@@ -207,7 +209,7 @@ static __inline__ void arp_format_neigh_entry(struct seq_file *seq,
hbuffer
[
k
++
]
=
':'
;
}
hbuffer
[
--
k
]
=
0
;
#if
def CONFIG_AX25
#if
defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE)
}
#endif
sprintf
(
tbuf
,
"%u.%u.%u.%u"
,
NIPQUAD
(
*
(
u32
*
)
n
->
primary_key
));
...
...
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