Anders Persson wrote:
Hi all,
I have been looking around in ip6.c how the MIB counters are being
handled and I ran into a couple of issues with InDelivers:
In ip_rput_data_v6, when a packet is send up to SCTP the InDelivers
counter in ip_mib is incremented rather than the one in ill_ip6_mib. I
cannot see any reason why this is the case.
This seems like bug. You can fix it in your code and put it back with
your changes.
Secondly, when a multicast packet is being processed, the InDelivers
counter is incremented each time a "matching" connection is found. So
the reception of a single packet may increment the counter by more
than one, which seems rather odd. The description of the counter
itself is "the number of datagrams successfully delivered to the IP
user-protocols", so in the case multicast it seems to me that
InDelivers counter should only be incremented once as the packet is
sent up to the next protocol level (if then multiple UDP endpoints get
a copy of the packet should not matter.) What do you guys think?
I think we should leave it the way it is. The fact that Solaris delivers
only one copy to UDP is an implementation detail. IP could deliver
multiple packets. Plus this has been like this forever so let's not
change it.
Rao.
Anders
_______________________________________________
networking-discuss mailing list
[email protected]
_______________________________________________
networking-discuss mailing list
[email protected]