route broken in 2.0.7

Nick Kralevich (nickkral@america.cs.berkeley.edu)
Thu, 18 Jul 1996 12:19:45 -0700 (PDT)


Well, this may be a minor problem, but it should also be pretty easy to
fix. Look at the "use" numbers for the command route.

jaguar:~> uname -a
Linux jaguar.autobahn.org 2.0.7 #2 Wed Jul 17 13:46:53 PDT 1996 i486
jaguar:~> /sbin/ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1
RX packets:7459 errors:0 dropped:0 overruns:0
TX packets:7459 errors:0 dropped:0 overruns:0

eth0 Link encap:10Mbps Ethernet HWaddr 00:A0:24:6C:9E:A8
inet addr:206.79.223.27 Bcast:206.79.223.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2704532 errors:0 dropped:0 overruns:0
TX packets:4488541 errors:0 dropped:0 overruns:0
Interrupt:10 Base address:0x300
jaguar:~> /sbin/route
Kernel routing table
Destination Gateway Genmask Flags MSS Window Use Iface
localnet * 255.255.255.0 U 1500 0 98 eth0
loopback * 255.0.0.0 U 3584 0 8 lo
default 206.79.223.1 * UG 1500 0 267 eth0

Naturally, I've used the "default", "localnet", and "localhost" more than
267, 98, and 8 times, respectively.

This info comes straight from /proc/net/route, where we see:

jaguar:~> cd /proc/net
jaguar:/proc/net> cat route
Iface Destination Gateway Flags RefCnt Use Metric
Mask MTU Window IRTT
eth0 00DF4FCE 00000000 01 0 99 0
00FFFFFF1500 0 0
lo 0000007F 00000000 01 0 8 0
000000FF3584 0 0
eth0 00000000 01DF4FCE 03 0 268 1
000000001500 0 0

And, for what it's worth, here is my
/usr/src/linux/include/linux/autoconf.h file:

/*
* Automatically generated by make menuconfig: don't edit
*/

/*
* Code maturity level options
*/
#define CONFIG_EXPERIMENTAL 1

/*
* Loadable module support
*/
#define CONFIG_MODULES 1
#undef CONFIG_MODVERSIONS
#undef CONFIG_KERNELD

/*
* General setup
*/
#undef CONFIG_MATH_EMULATION
#define CONFIG_NET 1
#undef CONFIG_MAX_16M
#define CONFIG_PCI 1
#undef CONFIG_PCI_OPTIMIZE
#define CONFIG_SYSVIPC 1
#define CONFIG_BINFMT_AOUT 1
#define CONFIG_BINFMT_ELF 1
#define CONFIG_BINFMT_JAVA 1
#define CONFIG_KERNEL_ELF 1
#define CONFIG_M586 1

/*
* Floppy, IDE, and other block devices
*/
#define CONFIG_BLK_DEV_FD 1
#define CONFIG_BLK_DEV_IDE 1
#undef CONFIG_BLK_DEV_HD_IDE
#define CONFIG_BLK_DEV_IDECD 1
#undef CONFIG_BLK_DEV_IDETAPE
#undef CONFIG_BLK_DEV_IDE_PCMCIA
#define CONFIG_BLK_DEV_CMD640 1
#define CONFIG_BLK_DEV_TRITON 1
#define CONFIG_BLK_DEV_RZ1000 1
#undef CONFIG_IDE_CHIPSETS
#define CONFIG_BLK_DEV_LOOP 1
#define CONFIG_BLK_DEV_MD 1
#define CONFIG_MD_LINEAR 1
#define CONFIG_MD_STRIPED 1
#undef CONFIG_BLK_DEV_RAM
#undef CONFIG_BLK_DEV_XD

/*
* Networking options
*/
#define CONFIG_FIREWALL 1
#define CONFIG_NET_ALIAS 1
#define CONFIG_INET 1
#define CONFIG_IP_FORWARD 1
#define CONFIG_IP_MULTICAST 1
#define CONFIG_IP_FIREWALL 1
#define CONFIG_IP_FIREWALL_VERBOSE 1
#undef CONFIG_IP_MASQUERADE
#undef CONFIG_IP_TRANSPARENT_PROXY
#undef CONFIG_IP_ALWAYS_DEFRAG
#define CONFIG_IP_ACCT 1
#undef CONFIG_IP_ROUTER
#define CONFIG_NET_IPIP 1
#define CONFIG_IP_MROUTE 1
#define CONFIG_IP_ALIAS 1
#undef CONFIG_INET_PCTCP
#undef CONFIG_INET_RARP
#undef CONFIG_NO_PATH_MTU_DISCOVERY
#define CONFIG_IP_NOSR 1
#define CONFIG_SKB_LARGE 1
#define CONFIG_IPX 1
#undef CONFIG_IPX_INTERN
#define CONFIG_ATALK 1
#undef CONFIG_AX25
#undef CONFIG_BRIDGE
#undef CONFIG_NETLINK

/*
* SCSI support
*/
#define CONFIG_SCSI 1
#define CONFIG_BLK_DEV_SD 1
#define CONFIG_CHR_DEV_ST 1
#define CONFIG_BLK_DEV_SR 1
#define CONFIG_CHR_DEV_SG 1
#undef CONFIG_SCSI_MULTI_LUN
#undef CONFIG_SCSI_CONSTANTS

/*
* SCSI low-level drivers
*/
#undef CONFIG_SCSI_7000FASST
#undef CONFIG_SCSI_AHA152X
#define CONFIG_SCSI_AHA1542 1
#undef CONFIG_SCSI_AHA1740
#define CONFIG_SCSI_AIC7XXX 1
#undef CONFIG_SCSI_ADVANSYS
#undef CONFIG_SCSI_IN2000
#undef CONFIG_SCSI_AM53C974
#undef CONFIG_SCSI_BUSLOGIC
#undef CONFIG_SCSI_DTC3280
#undef CONFIG_SCSI_EATA
#undef CONFIG_SCSI_EATA_DMA
#undef CONFIG_SCSI_EATA_PIO
#undef CONFIG_SCSI_FUTURE_DOMAIN
#undef CONFIG_SCSI_GENERIC_NCR5380
#undef CONFIG_SCSI_NCR53C406A
#define CONFIG_SCSI_NCR53C7xx 1
#undef CONFIG_SCSI_NCR53C7xx_sync
#undef CONFIG_SCSI_NCR53C7xx_FAST
#undef CONFIG_SCSI_NCR53C7xx_DISCONNECT
#undef CONFIG_SCSI_PPA
#undef CONFIG_SCSI_PAS16
#undef CONFIG_SCSI_QLOGIC_FAS
#undef CONFIG_SCSI_QLOGIC_ISP
#undef CONFIG_SCSI_SEAGATE
#undef CONFIG_SCSI_T128
#undef CONFIG_SCSI_U14_34F
#undef CONFIG_SCSI_ULTRASTOR

/*
* Network device support
*/
#define CONFIG_NETDEVICES 1
#define CONFIG_DUMMY 1
#define CONFIG_EQUALIZER 1
#undef CONFIG_DLCI
#undef CONFIG_PLIP
#define CONFIG_PPP 1
#define CONFIG_SLIP 1
#define CONFIG_SLIP_COMPRESSED 1
#undef CONFIG_SLIP_SMART
#undef CONFIG_SLIP_MODE_SLIP6
#undef CONFIG_NET_RADIO
#define CONFIG_NET_ETHERNET 1
#define CONFIG_NET_VENDOR_3COM 1
#undef CONFIG_EL1
#undef CONFIG_EL2
#undef CONFIG_ELPLUS
#undef CONFIG_EL16
#define CONFIG_EL3 1
#undef CONFIG_VORTEX
#undef CONFIG_LANCE
#undef CONFIG_NET_VENDOR_SMC
#undef CONFIG_NET_ISA
#undef CONFIG_NET_EISA
#undef CONFIG_NET_POCKET
#undef CONFIG_TR
#undef CONFIG_ARCNET

/*
* ISDN subsystem
*/
#undef CONFIG_ISDN

/*
* CD-ROM drivers (not for SCSI or IDE/ATAPI drives)
*/
#undef CONFIG_CD_NO_IDESCSI

/*
* Filesystems
*/
#define CONFIG_QUOTA 1
#undef CONFIG_LOCK_MANDATORY
#define CONFIG_MINIX_FS 1
#undef CONFIG_EXT_FS
#define CONFIG_EXT2_FS 1
#undef CONFIG_XIA_FS
#define CONFIG_FAT_FS 1
#define CONFIG_MSDOS_FS 1
#define CONFIG_VFAT_FS 1
#define CONFIG_UMSDOS_FS 1
#define CONFIG_PROC_FS 1
#define CONFIG_NFS_FS 1
#undef CONFIG_ROOT_NFS
#define CONFIG_SMB_FS 1
#undef CONFIG_SMB_LONG
#undef CONFIG_NCP_FS
#define CONFIG_ISO9660_FS 1
#undef CONFIG_HPFS_FS
#undef CONFIG_SYSV_FS
#undef CONFIG_AFFS_FS
#undef CONFIG_UFS_FS

/*
* Character devices
*/
#define CONFIG_SERIAL 1
#undef CONFIG_DIGI
#undef CONFIG_CYCLADES
#undef CONFIG_STALDRV
#undef CONFIG_RISCOM8
#define CONFIG_PRINTER 1
#define CONFIG_MOUSE 1
#undef CONFIG_ATIXL_BUSMOUSE
#undef CONFIG_BUSMOUSE
#undef CONFIG_MS_BUSMOUSE
#define CONFIG_PSMOUSE 1
#undef CONFIG_82C710_MOUSE
#undef CONFIG_UMISC
#undef CONFIG_QIC02_TAPE
#undef CONFIG_FTAPE
#undef CONFIG_APM
#undef CONFIG_WATCHDOG
#define CONFIG_RTC 1

/*
* Sound
*/
#undef CONFIG_SOUND

/*
* Kernel hacking
*/
#undef CONFIG_PROFILE

Anyway, keep up the good work!

Take care,
-- Nick