diff options
| author | Allan Stephens <[email protected]> | 2006-10-17 05:00:56 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2006-10-19 02:55:23 +0000 |
| commit | 53cfd1e102c759c958f907ee40a58bec3fc5911a (patch) | |
| tree | c7641cb87ec974cefe0ad40e7407b0e9e3cabf97 /net/tipc | |
| parent | [TIPC]: Added subscription cancellation capability (diff) | |
| download | kernel-53cfd1e102c759c958f907ee40a58bec3fc5911a.tar.gz kernel-53cfd1e102c759c958f907ee40a58bec3fc5911a.zip | |
[TIPC]: Unrecognized configuration command now returns error message
This patch causes TIPC to return an error message when it receives
an unrecognized configuration command. (Previously, the sender
received no feedback.)
Signed-off-by: Allan Stephens <[email protected]>
Signed-off-by: Per Liden <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc')
| -rw-r--r-- | net/tipc/config.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/tipc/config.c b/net/tipc/config.c index 285e1bc2d880..ed1351ed05e1 100644 --- a/net/tipc/config.c +++ b/net/tipc/config.c @@ -2,7 +2,7 @@ * net/tipc/config.c: TIPC configuration management code * * Copyright (c) 2002-2006, Ericsson AB - * Copyright (c) 2004-2005, Wind River Systems + * Copyright (c) 2004-2006, Wind River Systems * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -613,7 +613,8 @@ struct sk_buff *tipc_cfg_do_cmd(u32 orig_node, u16 cmd, const void *request_area rep_tlv_buf = tipc_cfg_reply_unsigned(tipc_net_id); break; default: - rep_tlv_buf = NULL; + rep_tlv_buf = tipc_cfg_reply_error_string(TIPC_CFG_NOT_SUPPORTED + " (unknown command)"); break; } |
