Skip to content
Success

Changes

Summary

  1. server: Rename osmo_pcap_server_close_trace -> (details)
  2. Rename osmo_pcap_server_close_conn -> osmo_pcap_conn_close (details)
  3. server: Split network code into its own file (details)
  4. server: Avoid lseek syscall on every packet write to pcap file (details)
  5. cosmetic: osmo_tls: Fix indentation whitespace (details)
  6. server: Move osmo_pcap_server_alloc() to osmo_server_core.c (details)
Commit 4c913ec7acb81532be2b6ac85a9c9b9fef7a37fb by Pau Espin Pedrol
server: Rename osmo_pcap_server_close_trace -> osmo_pcap_conn_close_trace

Change-Id: I261c6a54bd31b8f511cb103840323e7343bfdc61
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 589f0c53eea8969f64a2c760ad2e47d31652f58a by Pau Espin Pedrol
Rename osmo_pcap_server_close_conn -> osmo_pcap_conn_close

While at it, remove unnecessary helper function close_connection().

Change-Id: I116f0c4d61d391faa30760be3afdf189ff921d0c
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 28e8e84e2fd31506f01cad99695c0427778070a2 by Pau Espin Pedrol
server: Split network code into its own file

Separate code related to network socket handling into its own separate
file, as already done in osmo-pcap-client.
This allows easily finding out which code is operating on the socket and
which code is operating on the pcap file being locally stored.
This will make modifying subsystems easier too.

Change-Id: I41d6e0398605becbea109a7bb5aac8981d65ab1b
The file was modifiedinclude/osmo-pcap/osmo_pcap_server.h
The file was modifiedsrc/Makefile.am
The file was addedsrc/osmo_server_core.c
The file was modifiedsrc/osmo_server_network.c
The file was modifiedtests/rotate_localtime/Makefile.am
Commit bf4f0ae829500e18668c06010809ae22713a4ae5 by Pau Espin Pedrol
server: Avoid lseek syscall on every packet write to pcap file

Instead of requesting the current size to the OS, keep track of the
amount of bytes stored in conn->wr_offset, and check agains that value
when we want to write new data to the file.
This should remove quite a lot of oeverhead when lots of traffic is
being handled.

Change-Id: I437eaca982d65d0f06e7d24863875f85267f0e44
The file was modifiedsrc/osmo_server_core.c
The file was modifiedinclude/osmo-pcap/osmo_pcap_server.h
Commit ba3c9988cb61f50a88412b5d1656db3610f89ae3 by Pau Espin Pedrol
cosmetic: osmo_tls: Fix indentation whitespace

Change-Id: I27e6d6ce64178384acbd0b8ee88d6f7ef6b2a61b
The file was modifiedsrc/osmo_tls.c
Commit b657ea9b8d41e18bc0a9095ed6238bd617b75c87 by Pau Espin Pedrol
server: Move osmo_pcap_server_alloc() to osmo_server_core.c

Change-Id: I5456e66820cec5bd5acf3cb732b47c42dae7a21e
The file was modifiedinclude/osmo-pcap/osmo_pcap_server.h
The file was modifiedsrc/osmo_server_core.c
The file was modifiedsrc/osmo_server_main.c