wpan-hwsim: hardware simulator configuration utility
Subsystems (2)
PATCH v2 1/1 wpan-hwsim: hardware simulator configuration utility
This patch adds initial support for wpan-hwsim utility to control the mac802154_hwsim driver over netlink.
---
Forgot if I ever send v2 but my local change has the last complain. So I resend.
changes since v2:
- help and version both do not need an argument, please use no_argument
- printf("wpan-hwsim " PACKAGE_VERSION "\n");
Makefile.am | 1 + configure.ac | 1 + wpan-hwsim/Makefile.am | 8 + wpan-hwsim/mac802154_hwsim.h | 73 +++++++ wpan-hwsim/wpan-hwsim.c | 510 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 593 insertions(+) create mode 100644 wpan-hwsim/Makefile.am create mode 100644 wpan-hwsim/mac802154_hwsim.h create mode 100644 wpan-hwsim/wpan-hwsim.c
Makefile.am +1 -0
@@ -21,4 +21,5 @@ AM_LDFLAGS = \ SUBDIRS = \ src \ wpan-ping \ + wpan-hwsim \ examples
configure.ac +1 -0
@@ -56,6 +56,7 @@ AC_CONFIG_FILES([ Makefile src/Makefile wpan-ping/Makefile + wpan-hwsim/Makefile examples/Makefile ])
wpan-hwsim/Makefile.am new file +8 -0
@@ -0,0 +1,8 @@ +bin_PROGRAMS = wpan-hwsim + +wpan_hwsim_SOURCES = wpan-hwsim.c + +wpan_hwsim_CFLAGS = $(AM_CFLAGS) $(LIBNL3_CFLAGS) +wpan_hwsim_LDADD = $(LIBNL3_LIBS) + +EXTRA_DIST = README.wpan-hwsim
wpan-hwsim/mac802154_hwsim.h new file +73 -0
73 lines not on this page · raw message
wpan-hwsim/wpan-hwsim.c new file +510 -0
510 lines not on this page · raw message
Signature · 1 line
2.11.0
Stefan Schmidt
maintainerHello.
Quoted 4 lines · Alexander Aring
This patch adds initial support for wpan-hwsim utility to control the
mac802154_hwsimdriver over netlink.Signed-off-by Alexander Aring <[email protected]>
Quoted 8 lines
---
Forgot if I ever send v2 but my local change has the last complain. So I resend.
changes since v2:
- help and version both do not need an argument, please useno_argument
-printf("wpan-hwsim " PACKAGE_VERSION "\n");
Patch has been applied to wpan-tools. Thanks for fixing up my review comments.
Seems we want to get out a new wpan-tools release in the next weeks to have this utility available. I will see what I can do.
regards
Stefan Schmidt
Hi,
Quoted 16 lines · Stefan Schmidt
Hello.
Quoted 4 lines · Alexander Aring
This patch adds initial support for wpan-hwsim utility to control the
mac802154_hwsimdriver over netlink.Signed-off-by Alexander Aring <[email protected]>Quoted 8 lines
---
Forgot if I ever send v2 but my local change has the last complain. So I resend.
changes since v2:
- help and version both do not need an argument, please useno_argument
-printf("wpan-hwsim " PACKAGE_VERSION "\n");
Quoted 6 lines
Patch has been applied to wpan-tools. Thanks for fixing up my review comments.
Seems we want to get out a new wpan-tools release in the next weeks to have this utility available. I will see what I can do.
wait please for a fix... I forgot that dot longarg needs no_argument as well...
I begin to hate that interface. I need to define it for short with ':' and then again for long in this struct. I do short sometimes only... I will never do long args again, I fall into mistakes.
btw: I getting an expert to making python bindings... maybe I should make a lib only in C and then all tools getting python based. :-) At least for the next tool which I want to write.
- Alex
Stefan Schmidt
maintainerHello.
Quoted 22 lines · Alexander Aring
Hi,
Quoted 19 lines · Stefan Schmidt
Hello.
Quoted 4 lines · Alexander Aring
This patch adds initial support for wpan-hwsim utility to control the
mac802154_hwsimdriver over netlink.Signed-off-by Alexander Aring <[email protected]>Quoted 8 lines
---
Forgot if I ever send v2 but my local change has the last complain. So I resend.
changes since v2:
- help and version both do not need an argument, please useno_argument
-printf("wpan-hwsim " PACKAGE_VERSION "\n");Patch has been applied to wpan-tools. Thanks for fixing up my review comments.
Quoted 6 lines
Quoted 3 lines
Seems we want to get out a new wpan-tools release in the next weeks to have this utility available. I will see what I can do.
wait please for a fix... I forgot that dot longarg needs
no_argumentas well...
No problem. We have time to get fixes in. Juts wanted to make sure we get a new release with the hwsim utility out to match the latest kernel release.
Quoted 3 lines
I begin to hate that interface. I need to define it for short with ':' and then again for long in this struct. I do short sometimes only... I will never do long args again, I fall into mistakes.
Yeah, getopt is not the nicest interface, but doing command line option handling by hand is not nice either.
regards
Stefan Schmidt