<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/netinet/ip_input.c, branch releng/9.3</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F9.3</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F9.3'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2014-05-16T05:06:46Z</updated>
<entry>
<title>MFC r265942:</title>
<updated>2014-05-16T05:06:46Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2014-05-16T05:06:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2ac9972796a98d19e549a0d354c0b783ff18f4fb'/>
<id>urn:sha1:2ac9972796a98d19e549a0d354c0b783ff18f4fb</id>
<content type='text'>
  Fix checksum computation.  Previously it didn't include carry.
</content>
</entry>
<entry>
<title>MFC r242079:</title>
<updated>2012-11-27T01:59:51Z</updated>
<author>
<name>Andrey V. Elsukov</name>
<email>ae@FreeBSD.org</email>
</author>
<published>2012-11-27T01:59:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=379401c4319c2a8f4118215cafb6dede82462a6d'/>
<id>urn:sha1:379401c4319c2a8f4118215cafb6dede82462a6d</id>
<content type='text'>
  Remove the IPFIREWALL_FORWARD kernel option and make possible to turn
  on the related functionality in the runtime via the sysctl variable
  net.pfil.forward. It is turned off by default.

MFC r242082:
  Note the removal of the IPFIREWALL_FORWARD kernel option.

MFC r242463:
  Remove the recently added sysctl variable net.pfil.forward.
  Instead, add protocol specific mbuf flags M_IP_NEXTHOP and
  M_IP6_NEXTHOP. Use them to indicate that the mbuf's chain
  contains the PACKET_TAG_IPFORWARD tag. And do a tag lookup
  only when this flag is set.
</content>
</entry>
<entry>
<title>Merge r238002, r238016, r238092 from head:</title>
<updated>2012-09-10T11:38:02Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2012-09-10T11:38:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3d372672012f2485881efb21ab5916b770a34a22'/>
<id>urn:sha1:3d372672012f2485881efb21ab5916b770a34a22</id>
<content type='text'>
r238002 by tuexen@:
  Remove dead code (on FreeBSD) as suggested by glebius@.

r238016:
  Remove route caching from IP multicast routing code. There is no
  reason to do that, and also, cached route never got unreferenced,
  which meant a reference leak.

  Reviewed by:  bms

r238092:
  When ip_output()/ip6_output() is supplied a struct route *ro argument,
  it skips FLOWTABLE lookup. However, the non-NULL ro has dual meaning
  here: it may be supplied to provide route, and it may be supplied to
  store and return to caller the route that ip_output()/ip6_output()
  finds. In the latter case skipping FLOWTABLE lookup is pessimisation.

  The difference between struct route filled by FLOWTABLE and filled
  by rtalloc() family is that the former doesn't hold a reference on
  its rtentry. Reference is hold by flow entry, and it is about to
  be released in future. Thus, route filled by FLOWTABLE shouldn't
  be passed to RTFREE() macro.

  - Introduce new flag for struct route/route_in6, that marks route
    not holding a reference on rtentry.
  - Introduce new macro RO_RTFREE() that cleans up a struct route
    depending on its kind.
  - All callers to ip_output()/ip6_output() that do supply non-NULL
    but empty route should use RO_RTFREE() to free results of
    lookup.
  - ip_output()/ip6_output() now do FLOWTABLE lookup always when
    ro-&gt;ro_rt == NULL.
</content>
</entry>
<entry>
<title>MFC r236959:</title>
<updated>2012-07-01T08:47:15Z</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2012-07-01T08:47:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=063d7f5ea4e0405528f7981afcab27a1d7df9522'/>
<id>urn:sha1:063d7f5ea4e0405528f7981afcab27a1d7df9522</id>
<content type='text'>
Add a IP_RECVTOS socket option to receive for received UDP/IPv4
packets a cmsg of type IP_RECVTOS which contains the TOS byte.
Much like IP_RECVTTL does for TTL. This allows to implement a
protocol on top of UDP and implementing ECN.
</content>
</entry>
<entry>
<title>MFC 229621:</title>
<updated>2012-03-19T20:49:16Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2012-03-19T20:49:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=391465f779db8f6d6ac9045a93c6ba1bb6e6aeab'/>
<id>urn:sha1:391465f779db8f6d6ac9045a93c6ba1bb6e6aeab</id>
<content type='text'>
Convert all users of IF_ADDR_LOCK to use new locking macros that specify
either a read lock or write lock.
</content>
</entry>
<entry>
<title>MFhead 226401,226402:</title>
<updated>2011-10-20T15:58:05Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2011-10-20T15:58:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f0ce48d9d5f1954fb5aa801fb52b5e27613f0772'/>
<id>urn:sha1:f0ce48d9d5f1954fb5aa801fb52b5e27613f0772</id>
<content type='text'>
  Remove last remnants of classful addressing:

  - Remove ia_net, ia_netmask, ia_netbroadcast from struct in_ifaddr.
  - Remove net.inet.ip.subnetsarelocal, I bet no one need it in 2011.
  - fix bug when we were not forwarding to a host which matches classful
    net address. For example router having 192.168.x.y/16 network attached,
    would not forward traffic to 192.168.*.0, which are legal IPs in
    CIDR world.
  - For compatibility, leave autoguessing of mask based on class.

  Reviewed by:  andre, bz, rwatson

  Add support for IPv4 /31 prefixes, as described in RFC3021.

  To run a /31 network, participating hosts MUST drop support
  for directed broadcasts, and treat the first and last addresses
  on subnet as unicast. The broadcast address for the prefix
  should be the link local broadcast address, INADDR_BROADCAST.

Approved by:	re (kib)
</content>
</entry>
<entry>
<title>Correct comments and debug logging in ipsec to better match reality.</title>
<updated>2011-06-08T03:02:11Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2011-06-08T03:02:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ffe8cd7b104ecc8969ec36c065629f1b70c3b3f5'/>
<id>urn:sha1:ffe8cd7b104ecc8969ec36c065629f1b70c3b3f5</id>
<content type='text'>
MFC after:	3 days
</content>
</entry>
<entry>
<title>MfP4 CH=192004:</title>
<updated>2011-04-27T19:32:27Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2011-04-27T19:32:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=74e9dcf7861d1f83d8dab9f5d3c1544c77b92e3c'/>
<id>urn:sha1:74e9dcf7861d1f83d8dab9f5d3c1544c77b92e3c</id>
<content type='text'>
Move ip_defttl to raw_ip.c where it is actually used.  In an IPv6
only world we do not want to compile ip_input.c in for that and
it is a shared default with INET6.

Reviewed by:	gnn
Sponsored by:	The FreeBSD Foundation
Sponsored by:	iXsystems
MFC after:	4 days
</content>
</entry>
<entry>
<title>MFp4 CH=191470:</title>
<updated>2011-04-20T08:00:29Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2011-04-20T08:00:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=aae49dd304ebd1dfcbaa7e21ecc0bbf37dff5c42'/>
<id>urn:sha1:aae49dd304ebd1dfcbaa7e21ecc0bbf37dff5c42</id>
<content type='text'>
Move the ipport_tick_callout and related functions from ip_input.c
to in_pcb.c.  The random source port allocation code has been merged
and is now local to in_pcb.c only.
Use a SYSINIT to get the callout started and no longer depend on
initialization from the inet code, which would not work in an IPv6
only setup.

Reviewed by:	gnn
Sponsored by:	The FreeBSD Foundation
Sponsored by:	iXsystems
MFC after:	4 days
</content>
</entry>
<entry>
<title>MFp4 CH=191466:</title>
<updated>2011-04-20T07:55:33Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2011-04-20T07:55:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ec4f97277f3db54672f90d60d72f87acc3baf5d4'/>
<id>urn:sha1:ec4f97277f3db54672f90d60d72f87acc3baf5d4</id>
<content type='text'>
Move fw_one_pass to where it belongs: it is a property of ipfw,
not of ip_input.

Reviewed by:	gnn
Sponsored by:	The FreeBSD Foundation
Sponsored by:	iXsystems
MFC after:	3 days
</content>
</entry>
</feed>
