mbimcli: implement --set-ip-packet-filters

The option receives a key-value pair string that can be used to define
zero or more filters.

E.g. if we want to add TCP and UDP packets to the filters, we could run:

  $ PF_TCP="packet-filter=40000000000000000006,packet-mask=F00000000000000000FF"
  $ PF_UDP="packet-filter=40000000000000000011,packet-mask=F00000000000000000FF"
  $ sudo mbimcli -v -d /dev/wwan0mbim0 -p --set-ip-packet-filters="session-id=0,${PF_TCP},${PF_UDP}"

Or, if we want to remove all filters, we could run:

  $ sudo mbimcli -v -d /dev/wwan0mbim0 -p --set-ip-packet-filters="session-id=0"
3 files changed
tree: 3dc84e184e25603dc81f08873431849b1ab1ef79
  1. build-aux/
  2. data/
  3. docs/
  4. examples/
  5. LICENSES/
  6. src/
  7. utils/
  8. .gitignore
  9. .gitlab-ci.yml
  10. AUTHORS
  11. meson.build
  12. meson_options.txt
  13. NEWS
  14. README.md
  15. RELEASING
README.md

libmbim

libmbim is a glib-based library for talking to WWAN modems and devices which speak the Mobile Broadband Interface Model (MBIM) protocol.

License

  • libmbim-glib library is released under the LGPL-2.1-or-later license.
  • mbimcli tool is released under the GPL-2.0-or-later license.

License texts can be found under the LICENSES folder.

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms, which you can find in the following link: https://www.freedesktop.org/wiki/CodeOfConduct CoC issues may be raised to the project maintainers at the following address: libmbim-devel-owner@lists.freedesktop.org