diff options
author | glebius <glebius@FreeBSD.org> | 2005-02-04 21:36:10 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-02-04 21:36:10 +0000 |
commit | e7fd5fd51ead6fe4e2182d665ebaa04a1580093a (patch) | |
tree | 58c03f54386024a6ddf7bdc3549fcabc7eb9cdaa /lib/libnetgraph | |
parent | 50c3fd3802472a7ac9a9d99975361c5896cca0de (diff) | |
download | FreeBSD-src-e7fd5fd51ead6fe4e2182d665ebaa04a1580093a.zip FreeBSD-src-e7fd5fd51ead6fe4e2182d665ebaa04a1580093a.tar.gz |
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
Diffstat (limited to 'lib/libnetgraph')
-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 90b6278..2c5953d 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); |