<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.nftables.org/wiki-nftables/index.php?action=history&amp;feed=atom&amp;title=Portal%3ADeveloperDocs%2FDevelopment_environment</id>
	<title>Portal:DeveloperDocs/Development environment - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.nftables.org/wiki-nftables/index.php?action=history&amp;feed=atom&amp;title=Portal%3ADeveloperDocs%2FDevelopment_environment"/>
	<link rel="alternate" type="text/html" href="http://wiki.nftables.org/wiki-nftables/index.php?title=Portal:DeveloperDocs/Development_environment&amp;action=history"/>
	<updated>2026-05-26T13:03:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>http://wiki.nftables.org/wiki-nftables/index.php?title=Portal:DeveloperDocs/Development_environment&amp;diff=414&amp;oldid=prev</id>
		<title>Arturo: refresh page with interlinks etc</title>
		<link rel="alternate" type="text/html" href="http://wiki.nftables.org/wiki-nftables/index.php?title=Portal:DeveloperDocs/Development_environment&amp;diff=414&amp;oldid=prev"/>
		<updated>2019-07-14T12:55:42Z</updated>

		<summary type="html">&lt;p&gt;refresh page with interlinks etc&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:55, 14 July 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l63&quot;&gt;Line 63:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 63:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Valuable additional information:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Valuable additional information:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Patch submission guidelines]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Portal:DeveloperDocs/Patch_submission_guidelines | &lt;/ins&gt;Patch submission guidelines]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Bug reporting]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Portal:DeveloperDocs/Bug_reporting | &lt;/ins&gt;Bug reporting]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arturo</name></author>
	</entry>
	<entry>
		<id>http://wiki.nftables.org/wiki-nftables/index.php?title=Portal:DeveloperDocs/Development_environment&amp;diff=404&amp;oldid=prev</id>
		<title>Arturo: create page</title>
		<link rel="alternate" type="text/html" href="http://wiki.nftables.org/wiki-nftables/index.php?title=Portal:DeveloperDocs/Development_environment&amp;diff=404&amp;oldid=prev"/>
		<updated>2019-07-14T12:21:36Z</updated>

		<summary type="html">&lt;p&gt;create page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Setting up a proper development environment is key to success when trying to write any code.&lt;br /&gt;
In the case of the Netfilter project, software will interact network and the kernel itself, so special care should be taken.&lt;br /&gt;
&lt;br /&gt;
Our software is mostly written in C language, so the proper tooling/toolchains should be present.&lt;br /&gt;
&lt;br /&gt;
== Source code ==&lt;br /&gt;
&lt;br /&gt;
To download the source code, use &amp;#039;&amp;#039;&amp;#039;git clone&amp;#039;&amp;#039;&amp;#039; with repositories at http://git.netfilter.org/.&lt;br /&gt;
&lt;br /&gt;
Take dependencies into account. For example, to work with nftables you will need:&lt;br /&gt;
&lt;br /&gt;
* libnftnl source code from git&lt;br /&gt;
* nftables source code from git&lt;br /&gt;
&lt;br /&gt;
To work with conntrack-tools, you will need:&lt;br /&gt;
&lt;br /&gt;
* libnetfilter-conntrack&lt;br /&gt;
* libnetfilter-cttimeout&lt;br /&gt;
* libnetfilter-cthelper&lt;br /&gt;
* libnetfilter-queue&lt;br /&gt;
* libsystemd&lt;br /&gt;
* conntrack-tools&lt;br /&gt;
&lt;br /&gt;
You may discover additional dependencies by looking at the &amp;#039;&amp;#039;&amp;#039;configure.ac&amp;#039;&amp;#039;&amp;#039; script contained into each source code tree from git.&lt;br /&gt;
&lt;br /&gt;
To work with the Linux kernel, you will need to download the sources from &amp;#039;&amp;#039;&amp;#039;nf-next&amp;#039;&amp;#039;&amp;#039;. This is where the development happens for the next&lt;br /&gt;
Linux kernel release.&lt;br /&gt;
&lt;br /&gt;
You may find the nf-next branch and other related repositories at:&lt;br /&gt;
&lt;br /&gt;
https://git.kernel.org/pub/scm/linux/kernel/git/pablo&lt;br /&gt;
&lt;br /&gt;
== Packages ==&lt;br /&gt;
&lt;br /&gt;
This is the bare minimum bits you should have, but take into account that these could be discussed, as different developers have&lt;br /&gt;
different environments.&lt;br /&gt;
&lt;br /&gt;
* git: our code uses git&lt;br /&gt;
* gcc: the GNU C compiler&lt;br /&gt;
* virtual machine: to isolate all your new code and tests in a VM, so you don&amp;#039;t destroy your actual hardware by mistake. Specially when working with custom kernels&lt;br /&gt;
* automake, autoconf, autotools-dev, libtool and friends: to build the projects&lt;br /&gt;
* pkg-config: for libraries, like libnftnl or libmnl&lt;br /&gt;
* valgrind: this utility collects data about memory usage and reports memory leaks and memory-related crashes&lt;br /&gt;
* gdb: this utility can print the stack trace of functions inside programs. You would need debugging symbols to know function names&lt;br /&gt;
* strace: this tool reports the syscalls that any program does&lt;br /&gt;
* tcpdump: this can help in determining what&amp;#039;s happening with network packets/flows in the kernel&lt;br /&gt;
* stgit: (optional) tool to work with series of patches&lt;br /&gt;
&lt;br /&gt;
In Debian systems, you could probably start by installing the &amp;#039;build-essential&amp;#039; package.&lt;br /&gt;
&lt;br /&gt;
== First builds ==&lt;br /&gt;
&lt;br /&gt;
For userspace programs (like nftables), start by building and installing the dependencies:&lt;br /&gt;
&lt;br /&gt;
* libnftnl: $ ./autogen.sh &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make -j8 &amp;amp;&amp;amp; sudo make install&lt;br /&gt;
* nftables: $ ./autogen.sh &amp;amp;&amp;amp; ./configure &amp;amp;&amp;amp; make -j8 &amp;amp;&amp;amp; sudo make install&lt;br /&gt;
&lt;br /&gt;
If all was OK, both libnftnl and nftables should be installed into /usr/local/.&lt;br /&gt;
If something went wrong, you should read the output (usually really verbose) and try to&lt;br /&gt;
figure out how to address the issue (probably, a missing package or dependency).&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
Valuable additional information:&lt;br /&gt;
* [[Patch submission guidelines]]&lt;br /&gt;
* [[Bug reporting]]&lt;/div&gt;</summary>
		<author><name>Arturo</name></author>
	</entry>
</feed>