<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/net/ipv4/ip_input.c, branch v2.6.24.1</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/net/ipv4/ip_input.c?h=v2.6.24.1</id>
<link rel='self' href='https://git.amat.us/linux/atom/net/ipv4/ip_input.c?h=v2.6.24.1'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2007-10-15T19:26:35Z</updated>
<entry>
<title>[IPV4]: Uninline netfilter okfns</title>
<updated>2007-10-15T19:26:35Z</updated>
<author>
<name>Patrick McHardy</name>
<email>kaber@trash.net</email>
</author>
<published>2007-10-15T08:48:39Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=861d04860725dc85944bf9fa815af338d9e56b43'/>
<id>urn:sha1:861d04860725dc85944bf9fa815af338d9e56b43</id>
<content type='text'>
Now that we don't pass double skb pointers to nf_hook_slow anymore, gcc
can generate tail calls for some of the netfilter hook okfn invocations,
so there is no need to inline the functions anymore. This caused huge
code bloat since we ended up with one inlined version and one out-of-line
version since we pass the address to nf_hook_slow.

Before:
   text    data     bss     dec     hex filename
8997385 1016524  524652 10538561         a0ce41 vmlinux

After:
   text    data     bss     dec     hex filename
8994009 1016524  524652 10535185         a0c111 vmlinux
-------------------------------------------------------
  -3376

All cases have been verified to generate tail-calls with and without
netfilter. The okfns in ipmr and xfrm4_input still remain inline because
gcc can't generate tail-calls for them.

Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[IPV4]: Change ip_defrag to return an integer</title>
<updated>2007-10-15T19:26:25Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2007-10-14T07:38:32Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=776c729e8d91b2740583a2169678f2d3f383458b'/>
<id>urn:sha1:776c729e8d91b2740583a2169678f2d3f383458b</id>
<content type='text'>
Now that ip_frag always returns the packet given to it on input, we can
change it to return an integer indicating error instead.  This patch does
that and updates all its callers accordingly.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET]: Make packet reception network namespace safe</title>
<updated>2007-10-10T23:49:08Z</updated>
<author>
<name>Eric W. Biederman</name>
<email>ebiederm@xmission.com</email>
</author>
<published>2007-09-17T18:53:39Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e730c15519d09ea528b4d2f1103681fa5937c0e6'/>
<id>urn:sha1:e730c15519d09ea528b4d2f1103681fa5937c0e6</id>
<content type='text'>
This patch modifies every packet receive function
registered with dev_add_pack() to drop packets if they
are not from the initial network namespace.

This should ensure that the various network stacks do
not receive packets in a anything but the initial network
namespace until the code has been converted and is ready
for them.

Signed-off-by: Eric W. Biederman &lt;ebiederm@xmission.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[IPV4] SNMP: Support InMcastPkts and InBcastPkts</title>
<updated>2007-04-30T07:58:29Z</updated>
<author>
<name>Mitsuru Chinen</name>
<email>mitch@linux.vnet.ibm.com</email>
</author>
<published>2007-04-30T07:48:10Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=5506b54b36f067b9776935085c9f8e607b026b23'/>
<id>urn:sha1:5506b54b36f067b9776935085c9f8e607b026b23</id>
<content type='text'>
A received IP multicast datagram should be counted as InMcastPkts.
By the same token, a received IP broadcast datagram should be
counted as InBcastPkts.

Signed-off-by: Mitsuru Chinen &lt;mitch@linux.vnet.ibm.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[IPV4] SNMP: Support InTruncatedPkts</title>
<updated>2007-04-30T07:58:26Z</updated>
<author>
<name>Mitsuru Chinen</name>
<email>mitch@linux.vnet.ibm.com</email>
</author>
<published>2007-04-30T07:46:30Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=704aed53b4e43bebfbd425cf95b66794a9cfa2c2'/>
<id>urn:sha1:704aed53b4e43bebfbd425cf95b66794a9cfa2c2</id>
<content type='text'>
An IP datagram which is being discarded because the datagram frame
didn't carry enough data should be counted as InTruncatedPkts.

Signed-off-by: Mitsuru Chinen &lt;mitch@linux.vnet.ibm.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[IPV4] SNMP: Support InNoRoutes</title>
<updated>2007-04-30T07:58:22Z</updated>
<author>
<name>Mitsuru Chinen</name>
<email>mitch@linux.vnet.ibm.com</email>
</author>
<published>2007-04-30T07:45:49Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e91a47ebb130b90790c7a8c625ade4dcea246842'/>
<id>urn:sha1:e91a47ebb130b90790c7a8c625ade4dcea246842</id>
<content type='text'>
An IP datagram which is being discarded because of no routes in the
forwarding path should be counted as InNoRoutes.

Signed-off-by: Mitsuru Chinen &lt;mitch@linux.vnet.ibm.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[SK_BUFF]: Introduce skb_reset_transport_header(skb)</title>
<updated>2007-04-26T05:25:15Z</updated>
<author>
<name>Arnaldo Carvalho de Melo</name>
<email>acme@redhat.com</email>
</author>
<published>2007-03-13T16:06:52Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=badff6d01a8589a1c828b0bf118903ca38627f4e'/>
<id>urn:sha1:badff6d01a8589a1c828b0bf118903ca38627f4e</id>
<content type='text'>
For the common, open coded 'skb-&gt;h.raw = skb-&gt;data' operation, so that we can
later turn skb-&gt;h.raw into a offset, reducing the size of struct sk_buff in
64bit land while possibly keeping it as a pointer on 32bit.

This one touches just the most simple cases:

skb-&gt;h.raw = skb-&gt;data;
skb-&gt;h.raw = {skb_push|[__]skb_pull}()

The next ones will handle the slightly more "complex" cases.

Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[SK_BUFF]: Introduce ip_hdr(), remove skb-&gt;nh.iph</title>
<updated>2007-04-26T05:25:10Z</updated>
<author>
<name>Arnaldo Carvalho de Melo</name>
<email>acme@redhat.com</email>
</author>
<published>2007-04-21T05:47:35Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=eddc9ec53be2ecdbf4efe0efd4a83052594f0ac0'/>
<id>urn:sha1:eddc9ec53be2ecdbf4efe0efd4a83052594f0ac0</id>
<content type='text'>
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[IP]: Introduce ip_hdrlen()</title>
<updated>2007-04-26T05:25:07Z</updated>
<author>
<name>Arnaldo Carvalho de Melo</name>
<email>acme@redhat.com</email>
</author>
<published>2007-03-12T23:09:15Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c9bdd4b5257406b0608385d19c40b5511decf4f6'/>
<id>urn:sha1:c9bdd4b5257406b0608385d19c40b5511decf4f6</id>
<content type='text'>
For the common sequence "skb-&gt;nh.iph-&gt;ihl * 4", removing a good number of open
coded skb-&gt;nh.iph uses, now to go after the rest...

Just out of curiosity, here are the idioms found to get the same result:

skb-&gt;nh.iph-&gt;ihl &lt;&lt; 2
skb-&gt;nh.iph-&gt;ihl&lt;&lt;2
skb-&gt;nh.iph-&gt;ihl * 4
skb-&gt;nh.iph-&gt;ihl*4
(skb-&gt;nh.iph)-&gt;ihl * sizeof(u32)

Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET] IPV4: Fix whitespace errors.</title>
<updated>2007-02-11T07:19:39Z</updated>
<author>
<name>YOSHIFUJI Hideaki</name>
<email>yoshfuji@linux-ipv6.org</email>
</author>
<published>2007-02-09T14:24:47Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e905a9edab7f4f14f9213b52234e4a346c690911'/>
<id>urn:sha1:e905a9edab7f4f14f9213b52234e4a346c690911</id>
<content type='text'>
Signed-off-by: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
