~ubuntu-branches/ubuntu/precise/net-snmp/precise

« back to all changes in this revision

Viewing changes to agent/mibgroup/ip-mib/data_access/scalars_linux.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2009-11-26 01:27:00 UTC
  • mfrom: (1.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091126012700-pox7w0a5j2x305h9
Tags: 5.4.2.1~dfsg-3ubuntu1
* Merge from debian testing.  Remaining changes:
  - Set Ubuntu maintainer address.
  - net-snmp-config: Use bash. (LP: #104738)
  - Removed multiuser option when calling update-rc.d. (LP: #254261)
  - debian/snmpd.init: LSBify the init script.
  - debian/patches/52_fix_snmpcmd_1_typo.patch: Adjust a typo in snmpcmd.1
    (LP: #250459)
  - debian/patches/99-fix-ubuntu-div0.patch: Fix dvision by zero.
    (LP: #426813).
 * Dropped patches:
   - debian/patches/101-fix-ipalias.patch: Applied upstream.
   - debian/patches/99-fix-net-snmp-syslog.patch: Applied upstream.
   - debian/patches/99-fix-perl-counter-in-subagent.patch: Applied upstream.
   - ebian/patches/103-fix-ubuntu-lmsensors.patch: No longer needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  Arp MIB architecture support
3
3
 *
4
 
 * $Id: scalars_linux.c 15120 2006-08-31 08:34:18Z tanders $
 
4
 * $Id: scalars_linux.c 16965 2008-05-25 07:14:16Z magfr $
5
5
 */
6
6
#include <net-snmp/net-snmp-config.h>
7
7
#include <net-snmp/net-snmp-includes.h>
8
8
 
9
9
#include <net-snmp/data_access/ip_scalars.h>
10
10
 
11
 
const char *ipfw_name = "/proc/sys/net/ipv6/conf/all/forwarding";
 
11
static const char ipfw_name[] = "/proc/sys/net/ipv6/conf/all/forwarding";
12
12
 
13
13
int
14
14
netsnmp_arch_ip_scalars_ipv6IpForwarding_get(u_long *value)
55
55
    else if (2 == value)
56
56
        value = 0;
57
57
    else {
58
 
        DEBUGMSGTL(("access:ipv6IpForwarding", "bad value %ld for %s\n",
59
 
                    value));
 
58
        DEBUGMSGTL(("access:ipv6IpForwarding",
 
59
                    "bad value %ld for ipv6IpForwarding\n", value));
60
60
        return SNMP_ERR_WRONGVALUE;
61
61
    }
62
62