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

« back to all changes in this revision

Viewing changes to apps/snmpnetstat/route.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:
227
227
        case AF_INET:
228
228
                afname = "Internet";
229
229
                break;
230
 
#ifdef INET6
 
230
#ifdef NETSNMP_ENABLE_IPV6
231
231
        case AF_INET6:
232
232
                afname = "Internet6";
233
233
                break;
260
260
}
261
261
 
262
262
/* column widths; each followed by one space */
263
 
#ifndef INET6
 
263
#ifndef NETSNMP_ENABLE_IPV6
264
264
#define WID_DST(af)     26      /* width of destination column */
265
265
#define WID_GW(af)      18      /* width of gateway column */
266
266
#else
274
274
#define WID_DST(af)     ((af) == AF_INET6 ? (nflag ? 29 : 18) : 18)
275
275
#define WID_GW(af)      ((af) == AF_INET6 ? (nflag ? 25 : 18) : 18)
276
276
#endif
277
 
#endif /* INET6 */
 
277
#endif /* NETSNMP_ENABLE_IPV6 */
278
278
 
279
279
/*
280
280
 * Print header for routing table columns.
383
383
        return (line);
384
384
}
385
385
 
386
 
#undef INET6
387
 
#ifdef INET6
 
386
#undef NETSNMP_ENABLE_IPV6
 
387
#ifdef NETSNMP_ENABLE_IPV6
388
388
char *
389
389
netname6(struct sockaddr_in6 *sa6, struct in6_addr *mask)
390
390
{
488
488
                strlcpy(line, "", sizeof line);
489
489
        return line;
490
490
}
491
 
#endif /*INET6*/
 
491
#endif /*NETSNMP_ENABLE_IPV6*/
492
492
 
493
493
char *
494
494
s_rtflags( struct route_entry *rp )