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

« back to all changes in this revision

Viewing changes to agent/mibgroup/udp-mib/udpEndpointTable/udpEndpointTable_data_access.c

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-05-16 21:01:27 UTC
  • mfrom: (1.2.4) (1.1.23 sid)
  • Revision ID: package-import@ubuntu.com-20130516210127-y6meyeiobdx0131q
Tags: 5.7.2~dfsg-4ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/rules: Don't stop service in runlevels 0 and 6.
  - debian/snmpd.init: LSBify the init script.
  - debian/snmp.preinst, debian/snmp.prerm: Kill any/all processes owned
    by snmp user before install/uninstall.
  - Add apport hook.
* debian/patches/ubuntu-fix-lp-587828.patch: Drop. Fixed upstream.

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.17 $ of : mfd-data-access.m2c,v $ 
4
4
 *
5
 
 * $Id: udpEndpointTable_data_access.c 17719 2009-08-05 15:12:06Z jsafranek $
 
5
 * $Id$
6
6
 */
7
7
/*
8
8
 * standard Net-SNMP includes 
239
239
    if (NULL == ep_c)
240
240
        return MFD_RESOURCE_UNAVAILABLE;
241
241
    ep_it = CONTAINER_ITERATOR(ep_c);
242
 
    if (NULL == ep_c) {
 
242
    if (NULL == ep_it) {
243
243
        netsnmp_access_udp_endpoint_container_free(ep_c, 0);
244
244
        return MFD_RESOURCE_UNAVAILABLE;
245
245
    }
246
 
    for (ep = ITERATOR_FIRST(ep_it); ep; ep = ITERATOR_NEXT(ep_it)) {
 
246
    for (ep = (netsnmp_udp_endpoint_entry*)ITERATOR_FIRST(ep_it); ep;
 
247
         ep = (netsnmp_udp_endpoint_entry*)ITERATOR_NEXT (ep_it)) {
247
248
 
248
249
        /*
249
250
         * TODO:352:M: |   |-> set indexes in new udpEndpointTable rowreq context.
258
259
        if (MFD_SUCCESS !=
259
260
            udpEndpointTable_indexes_set(rowreq_ctx,
260
261
                                         udpEndpointLocalAddressType,
261
 
                                         ep->loc_addr,
 
262
                                         (char *) ep->loc_addr,
262
263
                                         ep->loc_addr_len,
263
264
                                         ep->loc_port,
264
265
                                         udpEndpointRemoteAddressType,
265
 
                                         ep->rmt_addr,
 
266
                                         (char *) ep->rmt_addr,
266
267
                                         ep->rmt_addr_len,
267
268
                                         ep->rmt_port,
268
 
                                         ep->instance)) {
 
269
                                         ep->instance,
 
270
                                         ep->pid)) {
269
271
            snmp_log(LOG_ERR,
270
272
                     "error setting index while loading "
271
273
                     "udpEndpointTable data.\n");
293
295
 
294
296
 
295
297
    DEBUGMSGT(("verbose:udpEndpointTable:udpEndpointTable_container_load",
296
 
               "inserted %d records\n", CONTAINER_SIZE(container)));
 
298
               "inserted %d records\n", (int)CONTAINER_SIZE(container)));
297
299
 
298
300
    return MFD_SUCCESS;
299
301
}                               /* udpEndpointTable_container_load */