[PATCH 0/3] Decode AF_TIPC socket addresses and options

sahilcdq0 at gmail.com sahilcdq0 at gmail.com
Thu May 22 19:33:58 UTC 2025


From: Sahil Siddiq <sahilcdq0 at gmail.com>

Hi,

This patch series implements the decoding of AF_TIPC socket addresses
(struct sockaddr_tipc) used in syscalls such as connect() and bind().

It also implements the decoding of AF_TIPC socket options (SOL_TIPC
socket level). The GROUP_JOIN option takes "struct tipc_group_req" as
an argument. The argument is an integer for the remaining options.

Thanks,
Sahil

[1] http://tipc.io/programming.html#socket_api


Sahil Siddiq (3):
  sockaddr: Implement decoding of AF_TIPC socket addresses
  net: Implement decoding of AF_TIPC socket options
  tests: Add tests for AF_TIPC decoding

 NEWS                                         |   1 +
 src/net.c                                    |  80 +++++++++
 src/sockaddr.c                               |  75 ++++++++
 src/xlat/af_tipc_flags.in                    |   3 +
 src/xlat/af_tipc_importance.in               |   5 +
 src/xlat/af_tipc_scope.in                    |   2 +
 src/xlat/af_tipc_types.in                    |   4 +
 tests/.gitignore                             |  16 ++
 tests/Makefile.am                            |  16 ++
 tests/gen_tests.in                           |  16 ++
 tests/sockaddr_xlat.c                        | 112 ++++++++++++
 tests/sol_tipc-group_join-Xabbrev.c          |   2 +
 tests/sol_tipc-group_join-Xraw.c             |   2 +
 tests/sol_tipc-group_join-Xverbose.c         |   2 +
 tests/sol_tipc-group_join-success-Xabbrev.c  |   2 +
 tests/sol_tipc-group_join-success-Xraw.c     |   2 +
 tests/sol_tipc-group_join-success-Xverbose.c |   2 +
 tests/sol_tipc-group_join-success.c          |   2 +
 tests/sol_tipc-group_join.c                  | 169 +++++++++++++++++++
 tests/sol_tipc-importance-Xabbrev.c          |   2 +
 tests/sol_tipc-importance-Xraw.c             |   2 +
 tests/sol_tipc-importance-Xverbose.c         |   2 +
 tests/sol_tipc-importance-success-Xabbrev.c  |   2 +
 tests/sol_tipc-importance-success-Xraw.c     |   2 +
 tests/sol_tipc-importance-success-Xverbose.c |   2 +
 tests/sol_tipc-importance-success.c          |   2 +
 tests/sol_tipc-importance.c                  | 167 ++++++++++++++++++
 27 files changed, 694 insertions(+)
 create mode 100644 src/xlat/af_tipc_flags.in
 create mode 100644 src/xlat/af_tipc_importance.in
 create mode 100644 src/xlat/af_tipc_scope.in
 create mode 100644 src/xlat/af_tipc_types.in
 create mode 100644 tests/sol_tipc-group_join-Xabbrev.c
 create mode 100644 tests/sol_tipc-group_join-Xraw.c
 create mode 100644 tests/sol_tipc-group_join-Xverbose.c
 create mode 100644 tests/sol_tipc-group_join-success-Xabbrev.c
 create mode 100644 tests/sol_tipc-group_join-success-Xraw.c
 create mode 100644 tests/sol_tipc-group_join-success-Xverbose.c
 create mode 100644 tests/sol_tipc-group_join-success.c
 create mode 100644 tests/sol_tipc-group_join.c
 create mode 100644 tests/sol_tipc-importance-Xabbrev.c
 create mode 100644 tests/sol_tipc-importance-Xraw.c
 create mode 100644 tests/sol_tipc-importance-Xverbose.c
 create mode 100644 tests/sol_tipc-importance-success-Xabbrev.c
 create mode 100644 tests/sol_tipc-importance-success-Xraw.c
 create mode 100644 tests/sol_tipc-importance-success-Xverbose.c
 create mode 100644 tests/sol_tipc-importance-success.c
 create mode 100644 tests/sol_tipc-importance.c

-- 
2.49.0



More information about the Strace-devel mailing list