[LARTC] A question in tcng

Rani Ahmed rani79 at idm.net.lb
Thu Feb 2 08:33:51 CET 2006


this my tcng code.
when converting tcng to tc code, i get in the tc code for the (ipproto 
"skip") =>(ipproto 57). sure, it's taken from the mapping  
/etc/protocols . ipproto is the protocol value.

what kind of "ipproto" integer value should it be to mean (ipproto "any" 
) or (ipproto "whatever" ) or (ipproto "don't_care" )? i'll replace the 
string value later from my /etc/protocols . however, i think it's zero.

i know i could have not inserted the option (ipproto), but it's 
complaining about it.
rsvp is not working as rsvp() (without parameters, i mean). the 
documetation says it can be without parameters.


ingress {


// can be also rsvp(ipproto "tcp")  or whatever in /etc/protocols 
according to requirements

 rsvp(ipproto "skip") {



// example on using the on() function
/*
on ( src 192.168.2.1 ,sport 30, dst 192.168.2.1, dport 21)
        police(rate 5kBps,burst 5kB) drop ;
*/



class(1)
on ( src 192.168.2.2 , dst 192.168.2.1)
        police(rate 5kBps,burst 50kB) drop ; //,mtu 1510B



} // end rsvp
} // end ingress



More information about the LARTC mailing list