Menu

Skip to content
  • Home
  • OrchIDS internals
    • How Orchids reads, dispatches events and reacts
    • The Orchids virtual machine
    • Memory management
    • The ovm_var_t universal type

Writing functions that allocate memory

The purpose of this note is to explain how to write functions that allocate memory.  One basic principle is that one should see the garbage collector as an adversary, which always tries to deallocate memory.  You should protect your data against it.  Here are a few examples. Continue reading →

This entry was posted in Memory management on July 15, 2014 by orchidsdev.

The ovm_extern_t type

The ovm_extern_t type is a catch-all OrchIDS type, for all foreign data structures. Continue reading →

This entry was posted in Data types, Virtual machine on July 6, 2014 by orchidsdev.

The ovm_snmpoid_t type

The ovm_snmpoid_t type is the OrchIDS type of SNMP object identifiers. Continue reading →

This entry was posted in Data types, Virtual machine on July 4, 2014 by orchidsdev.

The ovm_float_t type

The ovm_float_t type is the OrchIDS incarnation of the data type double of 64-bit floating point values. Continue reading →

This entry was posted in Data types, Virtual machine on July 3, 2014 by orchidsdev.

The ovm_regex_t type

The ovm_regex_t type is the OrchIDS type of regular expression matchers. Continue reading →

This entry was posted in Data types, Virtual machine on July 3, 2014 by orchidsdev.

The ovm_timeval_t type

The ovm_timeval_t type is the OrchIDS incarnation of the data type struct timeval of times and durations. Continue reading →

This entry was posted in Data types, Virtual machine on July 3, 2014 by orchidsdev.

The ovm_ipv4_t type

The ovm_ipv4_t type is the OrchIDS type of IPv4 addresses.
Continue reading →

This entry was posted in Data types, Virtual machine on July 3, 2014 by orchidsdev.

The ovm_ctime_t type

The ovm_ctime_t type is the OrchIDS incarnation of the data type time_t of times (not durations: durations are represented as machine integers, of type ovm_int_t). Continue reading →

This entry was posted in Data types, Virtual machine on July 3, 2014 by orchidsdev.

The ovm_vstr_t type

The ovm_vstr_t type is the OrchIDS type of virtual character strings. Strings are fixed-size arrays of chars, and are implemented as the ovm_str_t type. On the opposite, virtual character strings are merely pointers to a subinterval of an actual character string. Continue reading →

This entry was posted in Data types, Virtual machine on July 3, 2014 by orchidsdev.

The ovm_str_t type

The ovm_str_t type is the OrchIDS type of (fixed-size) character strings.

Continue reading →

This entry was posted in Data types, Virtual machine on July 3, 2014 by orchidsdev.

Post navigation

← Older posts
Newer posts →

Categories

  • Bugs, mean bugs, and C
  • Data types
  • Dissecting data sources into events
  • Event management
  • Memory management
  • Virtual machine

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Designed by Alappin 2013