Simon J. Gerraty
9d2ab4a62d
Merge head
2014-04-27 08:13:43 +00:00
John-Mark Gurney
4e5422a9e6
make sure that rbuf is aligned by making a union w/ the structure we
...
need to access... access the struct through the union too...
PR: 185165
Submitted by: Guy Yur
MFC after: 1 week
2014-01-07 23:01:05 +00:00
Gleb Smirnoff
4131c351c3
Fix some misinformation in netgraph manual pages.
...
Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com>
2013-11-28 06:45:30 +00:00
Gleb Smirnoff
acfa99a6f6
Remove ng_fec(4).
2013-10-28 14:47:33 +00:00
Simon J. Gerraty
69e6d7b75e
sync from head
2013-04-12 20:48:55 +00:00
Simon J. Gerraty
7cf3a1c6b2
Updated dependencies
2013-03-11 17:21:52 +00:00
Gleb Smirnoff
61dbb845c7
Fix for quite a special case when userland emulates a netgraph node, and
...
userland can reply to a message with NGM_HASREPLY bit set. In this case
we should not wait for a response to a responce.
PR: 176771
Submitted by: Keith Reynolds <keith.reynolds tidalscale.com>
2013-03-11 13:05:11 +00:00
Simon J. Gerraty
f5f7c05209
Updated dependencies
2013-02-16 01:23:54 +00:00
David E. O'Brien
d9a447559b
Sync with HEAD.
2013-02-08 16:10:16 +00:00
Kevin Lo
a5752d55e0
Fix socket calls on error post-r243965.
...
Submitted by: Garrett Cooper
2012-12-21 15:54:13 +00:00
Simon J. Gerraty
7cd2dcf076
Updated/new Makefile.depend
2012-11-08 21:24:17 +00:00
Marcel Moolenaar
7750ad47a9
Sync FreeBSD's bmake branch with Juniper's internal bmake branch.
...
Requested by: Simon Gerraty <sjg@juniper.net>
2012-08-22 19:25:57 +00:00
Luigi Rizzo
e59084e086
bring the NGM_IPFW_COOKIE back into ng_ipfw.h, libnetgraph expects
...
to find it there. Unfortunately this reintroduces the dependency
on ip_fw_pfil.c
2009-12-28 12:29:13 +00:00
Luigi Rizzo
b6d33186d2
this file is also affected by the ipfw changes
2009-12-28 10:48:01 +00:00
Ken Smith
3ca3047aee
Bump the version of all non-symbol-versioned shared libraries in
...
preparation for 8.0-RELEASE. Add the previous version of those
libraries to ObsoleteFiles.inc and bump __FreeBSD_Version.
Reviewed by: kib
Approved by: re (rwatson)
2009-07-19 17:25:24 +00:00
Daniel Eischen
419ecd5dee
Bump library versions in preparation for 7.0.
...
Ok'd by: kan
2007-05-21 02:49:08 +00:00
Alexander Motin
82a35b739a
Replace select() by poll() to avoid problems with big
...
descriptor number.
Approved by: glebius (mentor)
2007-05-14 14:18:41 +00:00
Gleb Smirnoff
bbf889eded
Include sys/socket.h to know about sa_family_t.
2006-10-17 16:56:29 +00:00
Gleb Smirnoff
2df050ad10
In the splnet(9) times netgraph(4) was synchronous and if a message
...
had been replied, the reply was always delivered to the originator
synchronously.
With introduction of netgraph item callbacks and a wait channel with
mutex in ng_socket(4), we have fixed the problem with ngctl(8) returning
earlier than the command has been proceeded by target node. But still
ngctl(8) can return prior to the reply has arrived to its node.
To fix this:
- Introduce a new flag for netgraph(4) messages - NGM_HASREPLY.
This flag is or'ed with message like NGM_READONLY.
- In netgraph userland library if we have sent a message with
NGM_HASREPLY flag, then select(2) until reply comes.
- Mark appropriate generic commands with NGM_HASREPLY flag,
gathering them into one enum {}. Bump generic cookie.
2006-01-12 19:14:40 +00:00
Ruslan Ermilov
41fa1ea96a
Recognize all current standard node types.
2005-10-25 20:58:30 +00:00
Ken Smith
a84020c2b9
Bump the shared library version number of all libraries that have not
...
been bumped since RELENG_5.
Reviewed by: ru
Approved by: re (not needed for commit check but in principle...)
2005-07-22 17:19:05 +00:00
Maxime Henrion
b92367948a
Make this compile with GCC4 by fixing a few signedness related warnings.
...
Reviewed by: md5(1)
2005-04-26 14:25:11 +00:00
Gleb Smirnoff
e551a1c3c2
When we have converted an ASCII message to binary, set its version in
...
the header. Otherwise we will send a message with zero version.
MFC after: 3 days
2005-02-04 21:36:10 +00:00
Stefan Farfeleder
e60b9f5130
Prefer C99's __func__ over GCC's __FUNCTION__.
2004-09-22 16:56:49 +00:00
Juli Mallett
32889325b8
Yes, NgRecvAsciiMsg has the same results as NgRecvAsciiMsg, but it's
...
much more apt to note that it has the same result as NgRecvMsg. Make
the manual page less circular in its reference to this fact.
2004-07-04 04:03:37 +00:00
Ruslan Ermilov
1a0a934547
Mechanically kill hard sentence breaks.
2004-07-02 23:52:20 +00:00
Ruslan Ermilov
254ae03ba3
Increment WARNS.
2004-01-28 00:11:42 +00:00
Ruslan Ermilov
d15ff41778
- Added three new interfaces, NgAllocRecvMsg(), NgAllocRecvAsciiMsg(),
...
and NgAllocRecvData(), that dynamically allocate buffer for a binary
message, an ascii message, and a data packet, respectively. The size
of the allocated buffer is equal to the socket's receive buffer size
to guarantee that a message or a data packet is not truncated.
- Get rid of the static size buffer in NgSendAsciiMsg().
OK'ed by: archie, julian
2004-01-27 20:25:14 +00:00
Ruslan Ermilov
bbc5b4d9c5
mdoc(7) cleanup.
2004-01-27 19:24:53 +00:00
Ruslan Ermilov
430b8c1b05
Fixed memory leak in NgSendAsciiMsg().
2004-01-27 18:38:22 +00:00
Hartmut Brandt
54e3311643
Use the new defines that include the trailing '\0' in the code.
...
Replace occurences of the magic constant 2 with an offsetof macro
call that computes the size of the leading members of the sockaddr.
Use strlcpy instead of sprintf where appropriate. Document the new changes
in the man page.
2003-11-14 08:09:01 +00:00
Philippe Charnier
3c024cc85c
The .Fn function
2003-06-08 10:34:00 +00:00
Jens Schweikhardt
9d5abbddbf
Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
...
especially in troff files.
2003-01-01 18:49:04 +00:00
Jens Schweikhardt
57bd0fc6e8
english(4) police.
2002-12-27 12:15:40 +00:00
Peter Wemm
224af215a6
Zap now-unused SHLIB_MINOR
2002-09-28 00:25:32 +00:00
Archie Cobbs
0fb56449d6
Fix bugs in NgSendMsg() and NgSendAsciiMsg() where the wrong token
...
value could be returned when the debug level was non-zero.
Submitted by: Harti Brandt <brandt@fokus.gmd.de>
MFC after: 5 days
2001-10-25 04:02:25 +00:00
Ruslan Ermilov
32eef9aeb1
mdoc(7) police: Use the new .In macro for #include statements.
2001-10-01 16:09:29 +00:00
Matthew Dillon
fd0d00c597
Add __FBSDID()s to libnetgraph
2001-09-30 22:03:54 +00:00
Ruslan Ermilov
b711601269
mdoc(7) police: markup nits.
2001-08-27 08:01:01 +00:00
Brian Somers
cb526d28ce
Rename the DIAGNOSTICS section to RETURN VALUES and describe the
...
return values a little more. Specifically, mention that a return
of 0 from NgRecvData() and NgRecvMsg() means the socket has been
closed.
Suggested by: jkh
2001-08-24 21:39:27 +00:00
Brian Somers
fd048a1c8a
Explain what the return value from NgRecvMsg() and NgRecvData() means,
...
specifically that 0 means the socket has been closed.
2001-08-24 14:52:05 +00:00
Kris Kennaway
6dac8ac9e5
Mark some functions as __printflike() and/or taking const char * arguments
...
instead of char *.
MFC after: 2 weeks
2001-08-20 12:53:36 +00:00
Dima Dorfman
7ebcc426ef
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00
Dima Dorfman
fe70891a02
Set WARNS=2 on libraries that compile cleanly with it.
...
Submitted by: Mike Barcroft <mike@q9media.com>
2001-07-15 06:46:02 +00:00
Ruslan Ermilov
a307d59838
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 13:41:46 +00:00
Ruslan Ermilov
5521ff5a4d
mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).
2001-07-06 16:46:48 +00:00
Maxim Sobolev
fe11f6f605
Correct cross-references:
...
ng_bpf.8 --> ng_bpf.4
ng_ether.8 --> ng_ether.4
ng_iface.8 --> ng_iface.4
ng_pppoe.8 --> ng_pppoe.4
ng_socket.8 --> ng_socket.4
ng_tty.8 --> ng_tty.4
ng_{type}.4 --> /dev/null
MFC after: 1 week
2001-06-05 12:40:03 +00:00
Ruslan Ermilov
4a558355e5
MAN[1-9] -> MAN.
2001-03-27 17:27:19 +00:00
Ruslan Ermilov
ed40311694
mdoc(7) police: removed history info from the .Os FreeBSD call.
2000-12-14 11:52:05 +00:00
Archie Cobbs
33c22c64e9
- Make sure the message token returned by NgSendMsg() is non-negative
...
- Have NgSendAsciiMsg() return the same token as NgSendMsg()
- Document that NgSendMsg() and NgSendAsciiMsg() return the token
- Add MLINKS for the functions defined in netgraph(3)
2000-06-21 23:01:07 +00:00