Wind River Support Network

HomeDefectsLIN5-15435
Fixed

LIN5-15435 : ripd advertises incorrect routes following SIGHUP

Created: Aug 27, 2012    Updated: Dec 19, 2017
Resolved Date: Nov 4, 2013
Previous ID: LIN3-5499
Found In Version: 5.0
Fix Version: 5.0.1.9
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Networking

Description

RIPD that's part of quagga package has following problems after receiving SIGHUP:
a. ripd starts sending several rip packets instead of one
b. ripd advertises incorrect routes

The problem is reported for quagga 0.99.10 shipped with WR Linux 3.0.2. The problem looks like bug 205.

Steps to Reproduce

ripd.conf and dump is in in attached bug notes.pdf. 

GOAL: Get RIP running on rtm1 interface only and advertize routing info about several IP addresses served by the blade. Subnet of rtm1 should not be advertized.
 
Interface rtm1 configuration:
 
7367-Slot12# ifconfig rtm1
rtm1      Link encap:Ethernet  HWaddr EC:9E:CD:06:D1:E5
          inet addr:173.59.2.15  Bcast:173.59.2.255  Mask:255.255.255.0
          inet6 addr: fe80::ee9e:cdff:fe06:d1e5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:59544 errors:0 dropped:0 overruns:0 frame:0
          TX packets:247045 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:4788099 (4.5 MiB)  TX bytes:70149426 (66.8 MiB)
 
 
IP that should be advertized:
 
          173.59.2.16/32
          173.59.2.17/32
 
 
Configuration file for zebra daemon
 
7367-Slot12# cat /etc/quagga/zebra.conf
! -*- zebra -*-
!
! zebra configuration file
!
!
hostname Router
password z
enable password z
!
! Interface's description.
!
interface rtm1
multicast
 
 
Configuration file for RIP daemon
 
7367-Slot12# cat /etc/quagga/ripd.conf
! -*- rip -*-
!
! RIPd configuration file
!
!
hostname ripd
password z
 
!
debug rip events
debug rip packet
!
router rip
  version 2
  passive-interface default
  no passive-interface rtm1
 
network rtm1
 
no redistribute static
no redistribute kernel
no redistribute ospf
no redistribute connected
route 173.59.2.16
route 173.59.2.17
 
distribute-list private in rtm1
  access-list private deny any
 
!
log file /var/log/ripd.log
!
!<eof ripd.conf>
 
 
Just after RIP start the following desired routing info is advertized:
 
07:11:13.036156 IP (tos 0x0, ttl   1, id 0, offset 0, flags [DF], proto: UDP (17), length: 72) 173.59.2.15.route > 224.0.0.9.route: [bad udp cksum e87b!]
        RIPv2, Response, length: 44, routes: 2
          AFI: IPv4:     173.59.2.16/32, tag 0x0000, metric: 1, next-hop: self
          AFI: IPv4:     173.59.2.17/32, tag 0x0000, metric: 1, next-hop: self
        0x0000:  0202 0000 0002 0000 ad3b 0210 ffff ffff
        0x0010:  0000 0000 0000 0001 0002 0000 ad3b 0211
        0x0020:  ffff ffff 0000 0000 0000 0001
07:11:37.036169 IP (tos 0x0, ttl   1, id 0, offset 0, flags [DF], proto: UDP (17), length: 72) 173.59.2.15.route > 224.0.0.9.route: [bad udp cksum e87b!]
        RIPv2, Response, length: 44, routes: 2
          AFI: IPv4:     173.59.2.16/32, tag 0x0000, metric: 1, next-hop: self
          AFI: IPv4:     173.59.2.17/32, tag 0x0000, metric: 1, next-hop: self
        0x0000:  0202 0000 0002 0000 ad3b 0210 ffff ffff
        0x0010:  0000 0000 0000 0001 0002 0000 ad3b 0211
        0x0020:  ffff ffff 0000 0000 0000 0001
07:12:06.037155 IP (tos 0x0, ttl   1, id 0, offset 0, flags [DF], proto: UDP (17), length: 72) 173.59.2.15.route > 224.0.0.9.route: [bad udp cksum e87b!]
        RIPv2, Response, length: 44, routes: 2
          AFI: IPv4:     173.59.2.16/32, tag 0x0000, metric: 1, next-hop: self
          AFI: IPv4:     173.59.2.17/32, tag 0x0000, metric: 1, next-hop: self
        0x0000:  0202 0000 0002 0000 ad3b 0210 ffff ffff
        0x0010:  0000 0000 0000 0001 0002 0000 ad3b 0211
        0x0020:  ffff ffff 0000 0000 0000 0001
 
 
Reload configuration for the RIP
 
7367-Slot12# date;kill -SIGHUP $(cat /var/run/quagga/ripd.pid)
Thu Sep  6 07:13:53 STD 2012
 
Here is RIP advertisement after SIGHUP
 
07:13:53.317725 IP (tos 0x0, ttl   1, id 0, offset 0, flags [DF], proto: UDP (17), length: 92) 173.59.2.15.route > 224.0.0.9.route: [bad udp cksum 6ccd!]
        RIPv2, Response, length: 64, routes: 3
          AFI: IPv4:      173.59.2.0/24, tag 0x0000, metric: 1, next-hop: self   -------> In red
          AFI: IPv4:     173.59.2.16/32, tag 0x0000, metric: 1, next-hop: self
          AFI: IPv4:     173.59.2.17/32, tag 0x0000, metric: 1, next-hop: self
        0x0000:  0202 0000 0002 0000 ad3b 0200 ffff ff00
        0x0010:  0000 0000 0000 0001 0002 0000 ad3b 0210
        0x0020:  ffff ffff 0000 0000 0000 0001 0002 0000
        0x0030:  ad3b 0211 ffff ffff 0000 0000 0000 0001
 
 
A route (in red) based on rtm1 configuration is included.

Other Downloads


Live chat
Online