summaryrefslogtreecommitdiffstats
path: root/zebra/ipforward_solaris.c
diff options
context:
space:
mode:
authorpaul <paul>2004-05-09 17:19:24 +0000
committerpaul <paul>2004-05-09 17:19:24 +0000
commit0e9a152a322897c0c431aef9f2135dee9f42def5 (patch)
tree417bf02c02ecbe7a653b557c893d0f2766966935 /zebra/ipforward_solaris.c
parentc0df6f560cb479161d01a61ac39d8390d36ca97c (diff)
downloadquagga-0e9a152a322897c0c431aef9f2135dee9f42def5.tar.bz2
quagga-0e9a152a322897c0c431aef9f2135dee9f42def5.tar.xz
2004-05-09 Sowmini Varadhan <sowmini.varadhan@sun.com>
* ipforward_solaris.c: fix typo of ND variable.
Diffstat (limited to 'zebra/ipforward_solaris.c')
-rw-r--r--zebra/ipforward_solaris.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/zebra/ipforward_solaris.c b/zebra/ipforward_solaris.c
index 791d175c..8d6fd98b 100644
--- a/zebra/ipforward_solaris.c
+++ b/zebra/ipforward_solaris.c
@@ -61,12 +61,13 @@ solaris_nd(const int cmd, const char* parameter, const int value)
** buy a NULL. ND_GET returns a list in a similar layout, although
** here we only use the first result.
*/
- if (cmd == ND_SET) {
+ if (cmd == ND_SET)
snprintf(nd_buf, ND_BUFFER_SIZE, "%s%c%d%c", parameter, '\0', value,'\0');
- } else if (cmd == ND_GET) {
+ else if (cmd == ND_GET)
snprintf(nd_buf, ND_BUFFER_SIZE, "%s", parameter);
- } else {
- zlog_err("internal error - inappropriate command given to solaris_nd()%s:%d", __FILE__, __LINE__);
+ else {
+ zlog_err("internal error - inappropriate command given to "
+ "solaris_nd()%s:%d", __FILE__, __LINE__);
return -1;
}
@@ -144,7 +145,7 @@ ipforward_off ()
#ifdef HAVE_IPV6
int ipforward_ipv6()
{
- return solaris_nd_get("ip6_fowarding");
+ return solaris_nd_get("ip6_forwarding");
}
int
ipforward_ipv6_on ()