Skip to content
Success

Changes

Summary

  1. server: Simplify (store|no-store) feature (details)
  2. cosmetic: server: document functions (details)
  3. server: Simplify code paths in read_cb_* (details)
  4. server: Delay reopen of pcap only until necessary (details)
  5. server: Store read buf max len as conn field (details)
  6. server: Split osmo_pcap_conn alloc to its own function (details)
  7. server: Rename function osmo_pcap_server_delete -> osmo_pcap_conn_free (details)
  8. cosmetic: server: Fix typo in comment (details)
  9. server: Rename func client_data() -> zmq_send_client_data() (details)
  10. Cleanup and reorder includes in header files (details)
  11. Makefile.am: proper format and reorder source file lists (details)
Commit b8b65026780504fc22e4f26962c18f552ce1720a by Pau Espin Pedrol
server: Simplify (store|no-store) feature

Having a bool variable with a negation in its name just makes everything
more complex for no good reason.

Change-Id: If0b76e7a922c26859d04d339bcc3bdccd66a6922
The file was modifiedsrc/osmo_server_network.c
The file was modifiedsrc/osmo_server_vty.c
The file was modifiedinclude/osmo-pcap/osmo_pcap_server.h
Commit 42fbe39d1717bb2042d2d08f44c653ca45ae9d1b by Pau Espin Pedrol
cosmetic: server: document functions

Change-Id: I6709b720e236514b8572fe60834a990558e67f5c
The file was modifiedsrc/osmo_server_network.c
Commit b22c5cb7b49da57044fded3d7fc15f30a929f671 by Pau Espin Pedrol
server: Simplify code paths in read_cb_*

Change-Id: Ib609af3b1788fe02d9d6957a08d85bc8bae821e8
The file was modifiedsrc/osmo_server_network.c
Commit 869c0833fc3c711d0c439666a96915e78dbdfbc4 by Pau Espin Pedrol
server: Delay reopen of pcap only until necessary

If we are asked to reopen a pcap file (eg due to external SIGUSR1) while
in the middle of receiving a data packet (we already received the header
of the segment so data will arrive soon), code exists to delay reopening
so that we can include that last packet which arrived because the time
where we were asked to reopen.
However, the new pcap file was reopened only after next packet arrived.
Instead, we want to reopen it as soon as that last packet is received,
so that a new pcap file is created. This allows better tracking eg.
empty traffic during time in between last data packet before reopen and
the next data packet arriving.

While at it, rename the variable to make it more informative, and
convert it to a bool.

Change-Id: Id79500717a2e186aac979cded340a5af6ce3035b
The file was modifiedinclude/osmo-pcap/osmo_pcap_server.h
The file was modifiedsrc/osmo_server_network.c
Commit 8d2e574c981cd315d2022f6e13496a52ba9c2e99 by Pau Espin Pedrol
server: Store read buf max len as conn field

This will be useful later on when adding pcapng support, since checks
will become more complex due to different data types to be checked,
based on information from pcap vs pcapng gathered from magic field
inside the received link_hdr buffer.

Change-Id: I8f62aa0bdb04e73223c0c6803a58241f83a5ebe9
The file was modifiedsrc/osmo_server_network.c
The file was modifiedinclude/osmo-pcap/osmo_pcap_server.h
Commit 0b00e83cd224e44ba38c9d2434a302976759feb8 by Pau Espin Pedrol
server: Split osmo_pcap_conn alloc to its own function

Change-Id: I622c9662b0a451ca5466e053a046346b536ed0a6
The file was modifiedsrc/osmo_server_vty.c
The file was modifiedinclude/osmo-pcap/osmo_pcap_server.h
The file was modifiedsrc/osmo_server_network.c
Commit ecc39d5cafd64c043ad4d4d61af5f168f5f86a36 by Pau Espin Pedrol
server: Rename function osmo_pcap_server_delete -> osmo_pcap_conn_free

Change-Id: I72372b43eddc74e80c430c9a9e4337809c123ed6
The file was modifiedinclude/osmo-pcap/osmo_pcap_server.h
The file was modifiedsrc/osmo_server_network.c
The file was modifiedsrc/osmo_server_vty.c
Commit e2d33edc5dc0deecaecb0c2c404328c844c36bdc by Pau Espin Pedrol
cosmetic: server: Fix typo in comment

Change-Id: I03aa0137d5470717104f27cb55d4bde802d00a95
The file was modifiedsrc/osmo_server_network.c
Commit 816a61dca84325be72cefcf1340b7957ea7798da by Pau Espin Pedrol
server: Rename func client_data() -> zmq_send_client_data()

Change-Id: I1b22046464cf969fb5d74b6c2580aaec1feffefa
The file was modifiedsrc/osmo_server_network.c
Commit 135690d39584640537b630aac7e85a9762501050 by Pau Espin Pedrol
Cleanup and reorder includes in header files

Put all includes in same order of dependencies.

Include stdint.h instead of inttypes.h since that's the file actually
containing the standard int types.

Change-Id: I0467d3c3a2687a7990c0db7371d0c89f97e8400a
The file was modifiedsrc/osmo_server_network.c
The file was modifiedinclude/osmo-pcap/osmo_pcap_client.h
The file was modifiedinclude/osmo-pcap/wireformat.h
The file was modifiedinclude/osmo-pcap/osmo_pcap_server.h
The file was modifiedinclude/osmo-pcap/osmo_tls.h
Commit 620832db372ea8ca2e68551242a364e9912ba9a0 by Pau Espin Pedrol
Makefile.am: proper format and reorder source file lists

Change-Id: Ie39bd0348f4f329539c1d9dabc8fa87f3e4bbefe
The file was modifiedinclude/osmo-pcap/Makefile.am
The file was modifiedsrc/Makefile.am