<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/netgraph/ng_socket.c, branch releng/7.3</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F7.3</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F7.3'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2009-01-09T20:41:58Z</updated>
<entry>
<title>MFC rev. 185183</title>
<updated>2009-01-09T20:41:58Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2009-01-09T20:41:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ffc5033537240695a1815c3f0e82e1d1231a277f'/>
<id>urn:sha1:ffc5033537240695a1815c3f0e82e1d1231a277f</id>
<content type='text'>
Remove unused variable.

Found with:     Coverity Prevent(tm)
CID:            3682
</content>
</entry>
<entry>
<title>MFC:</title>
<updated>2008-03-16T22:06:07Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2008-03-16T22:06:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8e7a9b0770cc6a88d44e202816e7fbf201fa2dd2'/>
<id>urn:sha1:8e7a9b0770cc6a88d44e202816e7fbf201fa2dd2</id>
<content type='text'>
Improve apply callback error reporting:
Before this patch callback returned result of the last finished call chain.
Now it returns last nonzero result from all call chain results in this request.

As soon as this improvement gives reliable error reporting, it is now possible
to remove dirty workaround in ng_socket, made to return ENOBUFS error statuses
of request-response operations. That workaround was responsible for returning
ENOBUFS errors to completely unrelated requests working at the same time
on socket.
</content>
</entry>
<entry>
<title>MFC ng_base.c rev 1.136-1.137, netgraph.h rev 1.69, ng_socket.c rev 1.83</title>
<updated>2007-10-28T17:52:08Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2007-10-28T17:52:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=95f108cdc8a1df672f4ef63ed56f02303be479a7'/>
<id>urn:sha1:95f108cdc8a1df672f4ef63ed56f02303be479a7</id>
<content type='text'>
Implement new apply callback mechanism to handle item forwarding.
When item forwarded, refence counter is incremented, when item
processed, counter decremented. When counter reaches zero,
apply handler is getting called.
It allows to report connect() call status only when it is really completed.

Reviewed by:	julian
Approved by:	re (kensmith)
</content>
</entry>
<entry>
<title>Reduce network stack oddness: implement .pru_sockaddr and .pru_peeraddr</title>
<updated>2007-05-11T10:20:51Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2007-05-11T10:20:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=54d642bbe5699667d74f2117e6c0f58fcfa4384b'/>
<id>urn:sha1:54d642bbe5699667d74f2117e6c0f58fcfa4384b</id>
<content type='text'>
protocol entry points using functions named proto_getsockaddr and
proto_getpeeraddr rather than proto_setsockaddr and proto_setpeeraddr.
While it's true that sockaddrs are allocated and set, the net effect is
to retrieve (get) the socket address or peer address from a socket, not
set it, so align names to that intent.
</content>
</entry>
<entry>
<title>Sweep kernel replacing suser(9) calls with priv(9) calls, assigning</title>
<updated>2006-11-06T13:42:10Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2006-11-06T13:42:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=acd3428b7d3e94cef0e1881c868cb4b131d4ff41'/>
<id>urn:sha1:acd3428b7d3e94cef0e1881c868cb4b131d4ff41</id>
<content type='text'>
specific privilege names to a broad range of privileges.  These may
require some future tweaking.

Sponsored by:           nCircle Network Security, Inc.
Obtained from:          TrustedBSD Project
Discussed on:           arch@
Reviewed (at least in part) by: mlaier, jmg, pjd, bde, ceri,
                        Alex Lyashkov &lt;umka at sevcity dot net&gt;,
                        Skip Ford &lt;skip dot ford at verizon dot net&gt;,
                        Antoine Brodin &lt;antoine dot brodin at laposte dot net&gt;
</content>
</entry>
<entry>
<title>Check pointer before dereferencing.</title>
<updated>2006-10-18T07:47:07Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2006-10-18T07:47:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e4c185db7aa8e34d99568ec23eaed06fe0edf4b8'/>
<id>urn:sha1:e4c185db7aa8e34d99568ec23eaed06fe0edf4b8</id>
<content type='text'>
Reported by:	Coverity
CID:		1556
</content>
</entry>
<entry>
<title>Some clenaup of ngs_rcvmsg():</title>
<updated>2006-10-17T16:52:09Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2006-10-17T16:52:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=237af4af3f1d35355cb536b186c94513d2ca3bfd'/>
<id>urn:sha1:237af4af3f1d35355cb536b186c94513d2ca3bfd</id>
<content type='text'>
  - Inline ship_msg() into ngs_rcvmsg().
  - Plug memory leak in case if no control socket present.
  - Remove malloc() and allocate the sockaddr on stack.
  - style(9).
</content>
</entry>
<entry>
<title>Some cleanup and small changes:</title>
<updated>2006-10-17T12:21:48Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2006-10-17T12:21:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dcaf468dcba10e97fa4ef79f0f61049ea7b1d417'/>
<id>urn:sha1:dcaf468dcba10e97fa4ef79f0f61049ea7b1d417</id>
<content type='text'>
  - Use malloc() and free() instead of MALLOC() and FREE() macros.
  - Do not check malloc results if M_WAITOK was used.
  - Remove linked list of all netgraph sockets. It isn't needed.
  - Use ng_findhook() instead of searching the list ourselves.
  - Use NG_WAITOK in syscalls.
  - Remove unneeded includes.
  - style(9)
</content>
</entry>
<entry>
<title>Change semantics of socket close and detach.  Add a new protocol switch</title>
<updated>2006-07-21T17:11:15Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2006-07-21T17:11:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a152f8a36128ce99cc252941396d7db06ec7084e'/>
<id>urn:sha1:a152f8a36128ce99cc252941396d7db06ec7084e</id>
<content type='text'>
function, pru_close, to notify protocols that the file descriptor or
other consumer of a socket is closing the socket.  pru_abort is now a
notification of close also, and no longer detaches.  pru_detach is no
longer used to notify of close, and will be called during socket
tear-down by sofree() when all references to a socket evaporate after
an earlier call to abort or close the socket.  This means detach is now
an unconditional teardown of a socket, whereas previously sockets could
persist after detach of the protocol retained a reference.

This faciliates sharing mutexes between layers of the network stack as
the mutex is required during the checking and removal of references at
the head of sofree().  With this change, pru_detach can now assume that
the mutex will no longer be required by the socket layer after
completion, whereas before this was not necessarily true.

Reviewed by:	gnn
</content>
</entry>
<entry>
<title>Use kern_kldload() and kern_kldunload() to load and unload modules when</title>
<updated>2006-06-13T21:36:23Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2006-06-13T21:36:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=edd32c2da270644caf802098bd2aaa5344dc5fe0'/>
<id>urn:sha1:edd32c2da270644caf802098bd2aaa5344dc5fe0</id>
<content type='text'>
we intend for the user to be able to unload them later via kldunload(2)
instead of calling linker_load_module() and then directly adjusting the
ref count on the linker file structure.  This makes the resulting
consumer code simpler and cleaner and better hides the linker internals
making it possible to sanely lock the linker.
</content>
</entry>
</feed>
