| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
to find it there. Unfortunately this reintroduces the dependency
on ip_fw_pfil.c
|
| |
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
Ok'd by: kan
|
|
|
|
|
|
| |
descriptor number.
Approved by: glebius (mentor)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
been bumped since RELENG_5.
Reviewed by: ru
Approved by: re (not needed for commit check but in principle...)
|
|
|
|
| |
Reviewed by: md5(1)
|
|
|
|
|
|
| |
the header. Otherwise we will send a message with zero version.
MFC after: 3 days
|
| |
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
especially in troff files.
|
| |
|
| |
|
|
|
|
|
|
|
| |
value could be returned when the debug level was non-zero.
Submitted by: Harti Brandt <brandt@fokus.gmd.de>
MFC after: 5 days
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
specifically that 0 means the socket has been closed.
|
|
|
|
|
|
| |
instead of char *.
MFC after: 2 weeks
|
| |
|
|
|
|
| |
Submitted by: Mike Barcroft <mike@q9media.com>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
| |
- 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)
|
| |
|
| |
|
|
|
|
| |
in their ASCII forms at debug levels >= 3.
|
| |
|
|
|
|
| |
already loaded (indicated by EPROTONOSUPPORT from socket(2)).
|
|
|
|
| |
Reviewed by: marcel, and make world
|
| |
|
|
|
|
|
| |
Submitted by: Alexey Zelkin <phantom@FreeBSD.org>
thanks!
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
NGM_BINARY2ASCII, which convert control messages to ASCII and back.
This allows control messages to be sent and received in ASCII form
using ngctl(8), which makes ngctl a lot more useful.
This also allows all the type-specific debugging code in libnetgraph
to go away -- instead, we just ask the node itself to do the ASCII
translation for us.
Currently, all generic control messages are supported, as well as
messages associated with the following node types: async, cisco,
ksocket, and ppp.
See /usr/share/examples/netgraph/ngctl for an example of using this.
Also give ngctl(8) the ability to print out incoming data and
control messages at any time. Eventually nghook(8) may be subsumed.
Several other misc. bug fixes.
Reviewed by: julian
|
|
|
|
|
|
| |
way to do that but it fixes buildworld.
World broken by: archie :-)
|