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
0dcd1d1b
Commit
0dcd1d1b
authored
Dec 07, 2011
by
Jiri Popelka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plipconfig man page and usage output fixes
parent
81814dc2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
man/en_US/plipconfig.8
man/en_US/plipconfig.8
+10
-2
plipconfig.c
plipconfig.c
+4
-9
No files found.
man/en_US/plipconfig.8
View file @
0dcd1d1b
...
...
@@ -2,9 +2,17 @@
.SH NAME
plipconfig \- fine tune PLIP device parameters
.SH SYNOPSIS
.B "plipconfig interface"
.B plipconfig interface
.RB [ nibble
.IR NN ]
.RB [ trigger
.IR NN ]
.br
.B "plipconfig interface [nibble NN] [trigger NN] [unit NN]"
.B plipconfig
.RB [ \-V ]
.RB [ \-\-version ]
.RB [ \-h ]
.RB [ \-\-help ]
.SH DESCRIPTION
.B Plipconfig
is used to (hopefully) improve PLIP performance by changing the default
...
...
plipconfig.c
View file @
0dcd1d1b
...
...
@@ -43,9 +43,6 @@
#include "net-support.h"
#include "version.h"
int
opt_a
=
0
;
int
opt_i
=
0
;
int
opt_v
=
0
;
int
skfd
=
-
1
;
struct
ifreq
ifr
;
...
...
@@ -63,9 +60,9 @@ static void version(void)
void
usage
(
void
)
{
fprintf
(
stderr
,
_
(
"Usage: plipconfig [-a] [-i] [-v] interface
\n
"
));
fprintf
(
stderr
,
_
(
" [nibble NN] [trigger NN]
\n
"
));
fprintf
(
stderr
,
_
(
"Usage: plipconfig interface [nibble NN] [trigger NN]
\n
"
));
fprintf
(
stderr
,
_
(
" plipconfig -V | --version
\n
"
));
fprintf
(
stderr
,
_
(
" plipconfig -h | --help
\n
"
));
exit
(
-
1
);
}
...
...
@@ -93,12 +90,10 @@ int main(int argc, char **argv)
argc
--
;
argv
++
;
while
(
argv
[
0
]
&&
*
argv
[
0
]
==
'-'
)
{
if
(
!
strcmp
(
*
argv
,
"-a"
))
opt_a
=
1
;
if
(
!
strcmp
(
*
argv
,
"-v"
))
opt_v
=
1
;
if
(
!
strcmp
(
*
argv
,
"-V"
)
||
!
strcmp
(
*
argv
,
"--version"
))
version
();
else
usage
();
argv
++
;
argc
--
;
}
...
...
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