Changeset 6fca2f5 in rtems for cpukit/libnetworking/rtems/rtems_showifstat.c
- Timestamp:
- 10/04/99 13:51:22 (23 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- e50e3eff
- Parents:
- cb620844
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libnetworking/rtems/rtems_showifstat.c
rcb620844 r6fca2f5 38 38 struct ifnet *ifp; 39 39 struct ifaddr *ifa; 40 unsigned int bit, flags;40 unsigned short bit, flags; 41 41 int printed; 42 42 … … 58 58 for (bit = 1, flags = ifp->if_flags ; flags ; bit <<= 1) { 59 59 char *cp; 60 char xbuf[20]; 60 61 switch (flags & bit) { 61 default:cp = NULL; break;62 case 0: cp = NULL; break; 62 63 case IFF_UP: cp = "Up"; break; 63 64 case IFF_BROADCAST: cp = "Broadcast"; break; … … 75 76 case IFF_LINK2: cp = "Link2"; break; 76 77 case IFF_MULTICAST: cp = "Multicast"; break; 78 default: sprintf (xbuf, "%#x", bit); cp = xbuf; break; 77 79 } 78 80 if (cp) {
Note: See TracChangeset
for help on using the changeset viewer.