~ubuntu-branches/ubuntu/trusty/net-snmp/trusty

« back to all changes in this revision

Viewing changes to agent/mibgroup/snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_interface.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-12-08 14:59:50 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20071208145950-u1tykhpw56nyzqik
Tags: 5.4.1~dfsg-4ubuntu1
* Merge from debian unstable.
* Remaining Ubuntu changes:
  - Remove stop links from rc0 and rc6
  - Munge Maintainer field as per spec.
* Ubuntu changes dropped:
  - Symlink common files between the packages, CDBS ought to handle that
    for us automatically.
* The latest Debian changes has dropped history from the changelog. Slot in
  the Ubuntu changes as best I can. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * Note: this file originally auto-generated by mib2c using
3
3
 *       version : 1.67 $ of : mfd-interface.m2c,v $ 
4
4
 *
5
 
 * $Id: snmpNotifyFilterTable_interface.c,v 1.5 2005/12/01 21:06:00 rstory Exp $
 
5
 * $Id: snmpNotifyFilterTable_interface.c 15989 2007-03-23 09:15:11Z dts12 $
6
6
 */
7
7
/*
8
8
 * *********************************************************************
628
628
    if (NULL == rowreq_ctx) {
629
629
        snmp_log(LOG_ERR, "Couldn't allocate memory for a "
630
630
                 "snmpNotifyFilterTable_rowreq_ctx.\n");
 
631
        return NULL;
631
632
    }
632
633
 
633
634
    rowreq_ctx->oid_idx.oids = rowreq_ctx->oid_tmp;
1811
1812
     * and update column exist flags...
1812
1813
     */
1813
1814
    if (rowreq_ctx->rowreq_flags & MFD_ROW_DELETED) {
1814
 
        CONTAINER_REMOVE(snmpNotifyFilterTable_if_ctx.container,
1815
 
                         rowreq_ctx);
 
1815
        if (!(rowreq_ctx->rowreq_flags & MFD_ROW_CREATED))
 
1816
            CONTAINER_REMOVE(snmpNotifyFilterTable_if_ctx.container,
 
1817
                             rowreq_ctx);
1816
1818
    } else {
1817
1819
        if (rowreq_ctx->column_set_flags) {
1818
1820
            rowreq_ctx->column_set_flags = 0;
2085
2087
     * column values, 12 bytes [11 for oid + 1 for ':'] per
2086
2088
     * column are added).
2087
2089
     */
2088
 
        /** xxx: add storage for external index(s)! */
 
2090
 
2089
2091
#define MAX_ROW_SIZE (sizeof(row_token) + 1 +  \
 
2092
        ( 12 * 128 ) + /* ASN_OBJECT_ID snmpNotifyFilterSubtree and */ \
 
2093
                       /* ASN_OCTET_STR snmpNotifyFilterProfileName indices */ \
2090
2094
        ( ( 2 * sizeof(rowreq_ctx->data.snmpNotifyFilterMask) ) + 3 ) + /* ASN_OCTET_STR */ \
2091
2095
        ( 12 ) + /* ASN_INTEGER snmpNotifyFilterType */ \
2092
2096
        ( 12 ) + /* ASN_INTEGER snmpNotifyFilterStorageType */ \