diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2005-02-04 21:36:10 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2005-02-04 21:36:10 +0000 |
commit | e551a1c3c28a1bbe9e994eb002f01dc0f2d75b99 (patch) | |
tree | 58c03f54386024a6ddf7bdc3549fcabc7eb9cdaa /lib/libnetgraph/msg.c | |
parent | b2723608979a99cfdc9c0ab6913ec5c05d0071fd (diff) | |
download | src-e551a1c3c28a1bbe9e994eb002f01dc0f2d75b99.tar.gz src-e551a1c3c28a1bbe9e994eb002f01dc0f2d75b99.zip |
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
Notes
Notes:
svn path=/head/; revision=141307
Diffstat (limited to 'lib/libnetgraph/msg.c')
-rw-r--r-- | lib/libnetgraph/msg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libnetgraph/msg.c b/lib/libnetgraph/msg.c index 90b6278a5315..2c5953d928bd 100644 --- a/lib/libnetgraph/msg.c +++ b/lib/libnetgraph/msg.c @@ -144,6 +144,7 @@ NgSendAsciiMsg(int cs, const char *path, const char *fmt, ...) if (++gMsgId < 0) gMsgId = 1; binary->header.token = gMsgId; + binary->header.version = NG_VERSION; if (NgDeliverMsg(cs, path, binary, binary->data, binary->header.arglen) < 0) { free(reply); |