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
b88cab78
Commit
b88cab78
authored
Jan 09, 2005
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AX25]: Put back ax25digicmp.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
1cdd77fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
include/net/ax25.h
include/net/ax25.h
+1
-0
net/ax25/ax25_addr.c
net/ax25/ax25_addr.c
+20
-0
No files found.
include/net/ax25.h
View file @
b88cab78
...
...
@@ -238,6 +238,7 @@ extern ax25_address null_ax25_address;
extern
char
*
ax2asc
(
ax25_address
*
);
extern
ax25_address
*
asc2ax
(
char
*
);
extern
int
ax25cmp
(
ax25_address
*
,
ax25_address
*
);
extern
int
ax25digicmp
(
ax25_digi
*
,
ax25_digi
*
);
extern
unsigned
char
*
ax25_addr_parse
(
unsigned
char
*
,
int
,
ax25_address
*
,
ax25_address
*
,
ax25_digi
*
,
int
*
,
int
*
);
extern
int
ax25_addr_build
(
unsigned
char
*
,
ax25_address
*
,
ax25_address
*
,
ax25_digi
*
,
int
,
int
);
extern
int
ax25_addr_size
(
ax25_digi
*
);
...
...
net/ax25/ax25_addr.c
View file @
b88cab78
...
...
@@ -120,6 +120,26 @@ int ax25cmp(ax25_address *a, ax25_address *b)
return
2
;
/* Partial match */
}
/*
* Compare two AX.25 digipeater paths.
*/
int
ax25digicmp
(
ax25_digi
*
digi1
,
ax25_digi
*
digi2
)
{
int
i
;
if
(
digi1
->
ndigi
!=
digi2
->
ndigi
)
return
1
;
if
(
digi1
->
lastrepeat
!=
digi2
->
lastrepeat
)
return
1
;
for
(
i
=
0
;
i
<
digi1
->
ndigi
;
i
++
)
if
(
ax25cmp
(
&
digi1
->
calls
[
i
],
&
digi2
->
calls
[
i
])
!=
0
)
return
1
;
return
0
;
}
/*
* Given an AX.25 address pull of to, from, digi list, command/response and the start of data
*
...
...
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