[Click] SetIPDSCP problem

Laercio Cruvinel Junior lcruvinel at inesc-0.tagus.ist.utl.pt
Tue Apr 24 13:09:54 EDT 2007


Packets lack physical and transport headers. Try the following code:

RatedSource(\<0800>,10,100)
  -> UDPIPEncap(127.0.0.1, 44444, 127.0.0.1, 4010)
  -> EtherEncap(0x0800, 00:50:BA:85:84:A9, 00:50:BA:85:84:A9)
->SetIPDSCP(34)->
classify::IPClassifier(ip dscp 46,
        ip dscp 34,
        ip dscp 0,
        -);
classify[0] ->Print("audio")->Discard();
classify[1] ->Print("video")->Discard();
classify[2] ->Print("besteffort")->Discard() ;
classify[3] ->Print("shit")->Discard();

Good work.

Laercio Cruvinel


> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 24 Apr 2007 17:38:20 +0200
> From: "Povilas Germanavicius" <germas at gmail.com>
> Subject: [Click] SetIPDSCP problem
> To: click at pdos.csail.mit.edu
> Message-ID:
> 	<de1161bc0704240838g10581426pc3bc51f835b4c9c3 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-2; format=flowed
>
> I am a beginner in click, so sorry for maybe stupid questions but maybe
> you
> can help me again? I?ve stuck  on trying to do an ip generator for testing
> IPClassifier and other work I have to do. Some kind of problem I can't
> solve
> is with SetIPDSCP. I am trying to do:
>
> RatedSource(\<0800>,10,100)
> ->SetIPDSCP(46)->
> classify::IPClassifier(ip dscp 46,
>         ip dscp 34,
>         ip dscp 0,
>         -);
> classify[0] ->Print("audio")->Discard();
> classify[1] ->Print("video")->Discard();
> classify[2] ->Print("besteffort")->Discard() ;
> classify[3] ->Print("shit")->Discard();
>
> and it gives me error:
>
> click: ../elements/ip/setipdscp.cc:54: Packet*
> SetIPDSCP::smaction(Packet*):
> Assertion `ip' failed.
> Aborted
>
> Thank you in advance,
>
>
> --
> Povilas Germanavi?ius
> tel. +37067612600
> msn: germasss at hotmail.com
> skype: povilasgermas
>
> ------------------------------
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
>
> End of click Digest, Vol 46, Issue 16
> *************************************
>




More information about the click mailing list