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
nexedi
linux
Commits
70f5897b
Commit
70f5897b
authored
Sep 20, 2003
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] replace sppp_of macro with inline
Replace macro with inline and get some type checking.
parent
e1153a5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
include/net/syncppp.h
include/net/syncppp.h
+5
-2
No files found.
include/net/syncppp.h
View file @
70f5897b
...
...
@@ -57,8 +57,11 @@ struct ppp_device
struct
sppp
sppp
;
/* Synchronous PPP */
};
#define sppp_of(dev) \
(&((struct ppp_device *)(*(unsigned long *)((dev)->priv)))->sppp)
static
inline
struct
sppp
*
sppp_of
(
struct
net_device
*
dev
)
{
struct
ppp_device
*
ppp
=
dev
->
priv
;
return
&
ppp
->
sppp
;
}
#define PP_KEEPALIVE 0x01
/* use keepalive protocol */
#define PP_CISCO 0x02
/* use Cisco protocol instead of PPP */
...
...
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