All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] to classify non-IP packet???
@ 2003-02-05  3:24 Liu Zhiyong
  2003-02-06 15:23 ` Liu Zhiyong
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Liu Zhiyong @ 2003-02-05  3:24 UTC (permalink / raw)
  To: lartc

I implemented a new network protocol(called QRoute), the Eth protocol code
is 0x8000(for unicast) and 0x8001(for multicast), and there are 2 kind of 
QRoute packets: data packet( the first 2 bytes is 0x40), and control
packet(the fist 2 bytes is 0x00, 0x10,0x20 or 0x30). There are 3 kinds of
packets in the network: IP packets, Qroute(including unicast and
multicast)  data packets, and Qroute control packet. I want to classify
these 3 kinds of packets, how can I do it? I tried to use: "tc filter add
dev eth0 parent 1:0 protocol ip prio 1 u32 match u16 0x8000 0xffff at -2
flowid 1:10" to classfiy the Qroute unicast packet, but it doesn't work.
There is a protocol called "802.1Q" whose Eth protocol code is 0x8001(It
can be found in "iproute2/lib/lI_proto.c"), so I tried to use "tc filter
add dev eth0 parent 1:0 protocol 802.1Q prio 1 u32 match u16 0x8000 0xffff
at -2 flowid 1:10", and it works. but it can't further classify the
packets according to the first 2 bytes! And I tried to add protocol
{0x8000, "QRoute"} in "iproute2/lib/lI_proto.c and compiled the iproute2
packet again, then tried " tc filter add dev eth0 parent 1:0 protocol
QRoute prio 1 u32 match u16 0x8000 0xffff at -2 flowid 1:10", it still
doesn't work! anyone can help me ? Thanks very much



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] to classify non-IP packet???
  2003-02-05  3:24 [LARTC] to classify non-IP packet??? Liu Zhiyong
@ 2003-02-06 15:23 ` Liu Zhiyong
  2003-02-06 15:23 ` Liu Zhiyong
  2003-02-10 14:50 ` Liu Zhiyong
  2 siblings, 0 replies; 4+ messages in thread
From: Liu Zhiyong @ 2003-02-06 15:23 UTC (permalink / raw)
  To: lartc

I have successfully classified QRoute packet from IP packet by adding
{0x8000, "qroute"} to /iproute2/lib/ll_protocol.c, and make iproute2
again,then use: "tc filter add dev eth0 parent 1: prio 5 protocol qroute u32
match u8 0x00 0x00 at 0 flowid 1:10". It will classify the all the qroute
packet to flow 1:10. Now I want to further classify QRoute packet according
to the first 2 bytes of the packet, I have tried to use tc filter add dev
eth0 parent 1: prio 6 protocol qroute u32 match u8 0x40 0xff at 0 flowid
1:20", but it doesn't work! anyone know how to do it?

----- Original Message -----
From: "Liu Zhiyong" <liuzhiyo@comp.nus.edu.sg>
To: <lartc@mailman.ds9a.nl>
Sent: Wednesday, February 05, 2003 11:24 AM
Subject: [LARTC] to classify non-IP packet???


> I implemented a new network protocol(called QRoute), the Eth protocol code
> is 0x8000(for unicast) and 0x8001(for multicast), and there are 2 kind of
> QRoute packets: data packet( the first 2 bytes is 0x40), and control
> packet(the fist 2 bytes is 0x00, 0x10,0x20 or 0x30). There are 3 kinds of
> packets in the network: IP packets, Qroute(including unicast and
> multicast)  data packets, and Qroute control packet. I want to classify
> these 3 kinds of packets, how can I do it? I tried to use: "tc filter add
> dev eth0 parent 1:0 protocol ip prio 1 u32 match u16 0x8000 0xffff at -2
> flowid 1:10" to classfiy the Qroute unicast packet, but it doesn't work.
> There is a protocol called "802.1Q" whose Eth protocol code is 0x8001(It
> can be found in "iproute2/lib/lI_proto.c"), so I tried to use "tc filter
> add dev eth0 parent 1:0 protocol 802.1Q prio 1 u32 match u16 0x8000 0xffff
> at -2 flowid 1:10", and it works. but it can't further classify the
> packets according to the first 2 bytes! And I tried to add protocol
> {0x8000, "QRoute"} in "iproute2/lib/lI_proto.c and compiled the iproute2
> packet again, then tried " tc filter add dev eth0 parent 1:0 protocol
> QRoute prio 1 u32 match u16 0x8000 0xffff at -2 flowid 1:10", it still
> doesn't work! anyone can help me ? Thanks very much
>
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] to classify non-IP packet???
  2003-02-05  3:24 [LARTC] to classify non-IP packet??? Liu Zhiyong
  2003-02-06 15:23 ` Liu Zhiyong
@ 2003-02-06 15:23 ` Liu Zhiyong
  2003-02-10 14:50 ` Liu Zhiyong
  2 siblings, 0 replies; 4+ messages in thread
From: Liu Zhiyong @ 2003-02-06 15:23 UTC (permalink / raw)
  To: lartc

I have successfully classified QRoute packet from IP packet by adding
{0x8000, "qroute"} to /iproute2/lib/ll_protocol.c, and make iproute2
again,then use: "tc filter add dev eth0 parent 1: prio 5 protocol qroute u32
match u8 0x00 0x00 at 0 flowid 1:10". It will classify the all the qroute
packet to flow 1:10. Now I want to further classify QRoute packet according
to the first 2 bytes of the packet, I have tried to use tc filter add dev
eth0 parent 1: prio 6 protocol qroute u32 match u8 0x40 0xff at 0 flowid
1:20", but it doesn't work! anyone know how to do it?

----- Original Message -----
From: "Liu Zhiyong" <liuzhiyo@comp.nus.edu.sg>
To: <lartc@mailman.ds9a.nl>
Sent: Wednesday, February 05, 2003 11:24 AM
Subject: [LARTC] to classify non-IP packet???


> I implemented a new network protocol(called QRoute), the Eth protocol code
> is 0x8000(for unicast) and 0x8001(for multicast), and there are 2 kind of
> QRoute packets: data packet( the first 2 bytes is 0x40), and control
> packet(the fist 2 bytes is 0x00, 0x10,0x20 or 0x30). There are 3 kinds of
> packets in the network: IP packets, Qroute(including unicast and
> multicast)  data packets, and Qroute control packet. I want to classify
> these 3 kinds of packets, how can I do it? I tried to use: "tc filter add
> dev eth0 parent 1:0 protocol ip prio 1 u32 match u16 0x8000 0xffff at -2
> flowid 1:10" to classfiy the Qroute unicast packet, but it doesn't work.
> There is a protocol called "802.1Q" whose Eth protocol code is 0x8001(It
> can be found in "iproute2/lib/lI_proto.c"), so I tried to use "tc filter
> add dev eth0 parent 1:0 protocol 802.1Q prio 1 u32 match u16 0x8000 0xffff
> at -2 flowid 1:10", and it works. but it can't further classify the
> packets according to the first 2 bytes! And I tried to add protocol
> {0x8000, "QRoute"} in "iproute2/lib/lI_proto.c and compiled the iproute2
> packet again, then tried " tc filter add dev eth0 parent 1:0 protocol
> QRoute prio 1 u32 match u16 0x8000 0xffff at -2 flowid 1:10", it still
> doesn't work! anyone can help me ? Thanks very much
>
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] to classify non-IP packet???
  2003-02-05  3:24 [LARTC] to classify non-IP packet??? Liu Zhiyong
  2003-02-06 15:23 ` Liu Zhiyong
  2003-02-06 15:23 ` Liu Zhiyong
@ 2003-02-10 14:50 ` Liu Zhiyong
  2 siblings, 0 replies; 4+ messages in thread
From: Liu Zhiyong @ 2003-02-10 14:50 UTC (permalink / raw)
  To: lartc

I have successfully classified QRoute packet from IP packet by adding
{0x8000, "qroute"} to /iproute2/lib/ll_protocol.c, and make iproute2
again,then use: "tc filter add dev eth0 parent 1: prio 5 protocol qroute u32
match u8 0x00 0x00 at 0 flowid 1:10". It will classify the all the qroute
packet to flow 1:10. Now I want to further classify QRoute packet according
to the first 2 bytes of the packet, I have tried to use tc filter add dev
eth0 parent 1: prio 6 protocol qroute u32 match u8 0x40 0xff at 0 flowid
1:20", but it doesn't work! anyone know how to do it?



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-02-10 14:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-05  3:24 [LARTC] to classify non-IP packet??? Liu Zhiyong
2003-02-06 15:23 ` Liu Zhiyong
2003-02-06 15:23 ` Liu Zhiyong
2003-02-10 14:50 ` Liu Zhiyong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.