Hi,

On Tue, Mar 21, 2006 at 07:38:06PM +0100, Robert Olsson wrote:
> 
> Steven Whitehouse writes:
> 
>  > I've been looking into MPLS recently and so one of the first things that
>  > would be useful is a testbed to generate test traffic, and hence the
>  > attached patch to pktgen.
>  > 
>  > If you have a moment to look over it, then please let me know if you
>  > would give it your blessing. The patch is against davem's current
>  > net-2.6.17 tree,
> 
>  Nice. Well never thought about mpls but it seems possible too. With mpls 
>  enabled it seems send something my tcpdump does not understand so I trust 
>  you there. I and it does not seem to brake standard ipv4 sending. So it 
>  should be OK. 
>
My tcpdump (3.9.4-2 according to RPM) shows:

09:05:28.751494 MPLS (label 16, exp 0, ttl 10)
        (label 32, exp 0, ttl 10)
        (label 0 (IPv4 explicit NULL), exp 0, [S], ttl 10)
        IP (tos 0x0, ttl  32, id 257, offset 0, flags [none], proto: UDP (17), 
length: 64) men-an-tol.chygwyn.com.discard > 10.10.10.2.discard: [no cksum] 
UDP, length 36[|MPLS]
        0x0000:  0001 000a 0002 000a 0000 010a 4500 0040
        0x0010:  0101 0000 2011 7a6e 0a2c 0107 0a0a 0a02
        0x0020:  0009 0009 002c 0000 be9b e955 0000 00c7
        0x0030:  4421 0f0f 0001 f03d 0000 0310 0000 0000
        0x0040:  0000 0000 0000 0000 0000 0000

for the example label stack. So it looks correct to me, though I'm slightly
worried by the [|MPLS] I counted up the bytes manually and unless I've
made a mistake somewhere it appears ok.
 
>  But I'll guess the mpls result code is not what you expected...
> 
>  echo "mpls 0001000a,0002000a,0000000a"  >  /proc/net/pktgen/eth1
>  cat /proc/net/pktgen/eth1 | grep Res
>  Result: 0000000a
> 
>       sprintf(pg_result, "OK: mpls=");
>       for(n = 0; n < pkt_dev->nr_labels; n++)
>                sprintf(pg_result, "%08x%s", ntohl(pkt_dev->labels[n]),
>                     n == pkt_dev->nr_labels-1 ? "" : ",");
> 
>  Cheers.
> 
>                                       --ro

Yes, I'll send another patch with that fixed shortly :-)

Steve.

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to