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

« back to all changes in this revision

Viewing changes to agent/mibgroup/examples/example.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:
598
598
         *  (In fact, they can fail, but they return no
599
599
         *   indication of this, which is the next best thing!)
600
600
         */
601
 
        DEBUGMSGTL(("example", "write_exampletrap sending the trap\n",
602
 
                    action));
 
601
        DEBUGMSGTL(("example", "write_exampletrap sending the trap\n"));
603
602
        send_easy_trap(SNMP_TRAP_ENTERPRISESPECIFIC, 99);
604
 
        DEBUGMSGTL(("example", "write_exampletrap trap sent\n", action));
 
603
        DEBUGMSGTL(("example", "write_exampletrap trap sent\n"));
605
604
        break;
606
605
 
607
606
    }
733
732
        var_obj.type = ASN_OCTET_STR;   /* type of variable */
734
733
        var_obj.val.string = example_str;       /* value */
735
734
        var_obj.val_len = strlen(example_str);
736
 
        DEBUGMSGTL(("example", "write_exampletrap2 sending the v2 trap\n",
737
 
                    action));
 
735
        DEBUGMSGTL(("example", "write_exampletrap2 sending the v2 trap\n"));
738
736
        send_v2trap(&var_trap);
739
 
        DEBUGMSGTL(("example", "write_exampletrap2 v2 trap sent\n",
740
 
                    action));
 
737
        DEBUGMSGTL(("example", "write_exampletrap2 v2 trap sent\n"));
741
738
 
742
739
        break;
743
740