ifconfig.c (224179) | ifconfig.c (228571) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 24 unchanged lines hidden (view full) --- 33 The Regents of the University of California. All rights reserved.\n"; 34#endif /* not lint */ 35 36#ifndef lint 37#if 0 38static char sccsid[] = "@(#)ifconfig.c 8.2 (Berkeley) 2/16/94"; 39#endif 40static const char rcsid[] = | 1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 24 unchanged lines hidden (view full) --- 33 The Regents of the University of California. All rights reserved.\n"; 34#endif /* not lint */ 35 36#ifndef lint 37#if 0 38static char sccsid[] = "@(#)ifconfig.c 8.2 (Berkeley) 2/16/94"; 39#endif 40static const char rcsid[] = |
41 "$FreeBSD: head/sbin/ifconfig/ifconfig.c 224179 2011-07-18 10:29:16Z bz $"; | 41 "$FreeBSD: head/sbin/ifconfig/ifconfig.c 228571 2011-12-16 12:16:56Z glebius $"; |
42#endif /* not lint */ 43 44#include <sys/param.h> 45#include <sys/ioctl.h> 46#include <sys/socket.h> 47#include <sys/time.h> 48#include <sys/module.h> 49#include <sys/linker.h> --- 1023 unchanged lines hidden (view full) --- 1073 for (; *bits > 32; bits++) 1074 ; 1075 } 1076 putchar('>'); 1077 } 1078} 1079 1080void | 42#endif /* not lint */ 43 44#include <sys/param.h> 45#include <sys/ioctl.h> 46#include <sys/socket.h> 47#include <sys/time.h> 48#include <sys/module.h> 49#include <sys/linker.h> --- 1023 unchanged lines hidden (view full) --- 1073 for (; *bits > 32; bits++) 1074 ; 1075 } 1076 putchar('>'); 1077 } 1078} 1079 1080void |
1081print_vhid(const struct ifaddrs *ifa, const char *s) 1082{ 1083 struct if_data *ifd; 1084 1085 if (ifa->ifa_data == NULL) 1086 return; 1087 1088 ifd = ifa->ifa_data; 1089 if (ifd->ifi_vhid == 0) 1090 return; 1091 1092 printf("vhid %d ", ifd->ifi_vhid); 1093} 1094 1095void |
|
1081ifmaybeload(const char *name) 1082{ 1083#define MOD_PREFIX_LEN 3 /* "if_" */ 1084 struct module_stat mstat; 1085 int fileid, modid; 1086 char ifkind[IFNAMSIZ + MOD_PREFIX_LEN], ifname[IFNAMSIZ], *dp; 1087 const char *cp; 1088 --- 121 unchanged lines hidden --- | 1096ifmaybeload(const char *name) 1097{ 1098#define MOD_PREFIX_LEN 3 /* "if_" */ 1099 struct module_stat mstat; 1100 int fileid, modid; 1101 char ifkind[IFNAMSIZ + MOD_PREFIX_LEN], ifname[IFNAMSIZ], *dp; 1102 const char *cp; 1103 --- 121 unchanged lines hidden --- |