<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Uncategorized on Inliniac</title>
    <link>https://inliniac.net/blog/category/uncategorized/</link>
    <description>Recent content in Uncategorized on Inliniac</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 19 May 2017 09:34:20 +0000</lastBuildDate>
    <atom:link href="https://inliniac.net/blog/category/uncategorized/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Learning Rust: hash map lookup/insert pattern</title>
      <link>https://inliniac.net/blog/2017/05/19/learning-rust-hash-map-lookupinsert-pattern/</link>
      <pubDate>Fri, 19 May 2017 09:34:20 +0000</pubDate>
      <guid>https://inliniac.net/blog/2017/05/19/learning-rust-hash-map-lookupinsert-pattern/</guid>
      <description>&lt;p&gt;In Suricata we&amp;rsquo;re experimenting with implementing app-layer parser in Rust. See Pierre Chifflier&amp;rsquo;s presentation at the last SuriCon: [ &lt;a href=&#34;https://suricon.net/blog/wp-content/uploads/2016/11/SuriCon2016_PierreChifflier.pdf&#34;&gt;pdf&lt;/a&gt;].&lt;/p&gt;&#xA;&lt;p&gt;The first experimental parsers will soon land in master.&lt;/p&gt;&#xA;&lt;p&gt;So coming from a C world I often use a pattern like:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-rust&#34; data-lang=&#34;rust&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;value &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; hash_lookup(hashtable, key)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#f92672&#34;&gt;!&lt;/span&gt;value) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    hash_insert(hashtable, key, somevalue);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Playing with Rust and it&amp;rsquo;s HashMap implementation I wanted to do something very similar. Look up a vector and update it with the new data if it exists, or create a new vector if not:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Major Suricata 1.4 update</title>
      <link>https://inliniac.net/blog/2013/03/08/728/</link>
      <pubDate>Fri, 08 Mar 2013 14:24:32 +0000</pubDate>
      <guid>https://inliniac.net/blog/2013/03/08/728/</guid>
      <description>&lt;p&gt;Major 1.4 update.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://suricata.io/2013/03/08/suricata-1-4-1-released/&#34;&gt;https://suricata.io/2013/03/08/suricata-1-4-1-released/&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Suricata 1.4.1 is out</title>
      <link>https://inliniac.net/blog/2012/12/13/712/</link>
      <pubDate>Thu, 13 Dec 2012 16:52:58 +0000</pubDate>
      <guid>https://inliniac.net/blog/2012/12/13/712/</guid>
      <description>&lt;p&gt;First stable release in the 1.4 branch, right in time for the holidays. Enjoy!&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://suricata.io/2013/03/08/suricata-1-4-1-released/&#34;&gt;https://suricata.io/2013/03/08/suricata-1-4-1-released/&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Hello (security) world!</title>
      <link>https://inliniac.net/blog/2006/07/10/hello-world-2/</link>
      <pubDate>Mon, 10 Jul 2006 16:01:32 +0000</pubDate>
      <guid>https://inliniac.net/blog/2006/07/10/hello-world-2/</guid>
      <description>&lt;p&gt;Welcome to my new blog, Inliniac. I plan to write here often about all kinds of inline related projects and developments. Focus will most likely be on my Vuurmuur project, the Snort_inline project and also ModSecurity. But more general inline and security subjects will be handled if i feel like it.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
