projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
integrate mklibs.py support into the build process
[openwrt.git]
/
package
/
wprobe
/
src
/
exporter
/
wprobe-export.c
diff --git
a/package/wprobe/src/exporter/wprobe-export.c
b/package/wprobe/src/exporter/wprobe-export.c
index
fa32e8b
..
48be5f3
100644
(file)
--- a/
package/wprobe/src/exporter/wprobe-export.c
+++ b/
package/wprobe/src/exporter/wprobe-export.c
@@
-194,6
+194,7
@@
int main ( int argc, char **argv )
int port = IPFIX_PORTNO;
int verbose_level = 0;
int opt, i = 10;
int port = IPFIX_PORTNO;
int verbose_level = 0;
int opt, i = 10;
+ char *err = NULL;
while ((opt = getopt(argc, argv, "hi:c:p:vstu")) != EOF) {
switch (opt) {
while ((opt = getopt(argc, argv, "hi:c:p:vstu")) != EOF) {
switch (opt) {
@@
-252,9
+253,9
@@
int main ( int argc, char **argv )
return -1;
}
return -1;
}
- dev = wprobe_get_
dev(ifname
);
+ dev = wprobe_get_
auto(ifname, &err
);
if (!dev || (list_empty(&dev->global_attr) && list_empty(&dev->link_attr))) {
if (!dev || (list_empty(&dev->global_attr) && list_empty(&dev->link_attr))) {
- fprintf(stderr, "Cannot connect to wprobe on interface '%s'
\n", ifname
);
+ fprintf(stderr, "Cannot connect to wprobe on interface '%s'
: %s\n", ifname, (err ? err : "Unknown error")
);
return -1;
}
return -1;
}
This page took
0.021191 seconds
and
4
git commands to generate.