search for: f_u32

Displaying 8 results from an estimated 8 matches for "f_u32".

Did you mean: __u32
2006 Feb 10
14
[PATCH] TC: bug fixes to the "sample" clause
...sample" for the u32 filter. Eg: tc filter add dev eth2 parent 1:0 protocol ip prio 1 u32 ht 801: \ classid 1:3 \ sample ip protocol 1 0xff match ip protocol 1 0xff Illegal "sample" The reason is a missing memset. This patch fixes it. diff -Nur iproute-20051007.keep/tc/f_u32.c iproute-20051007/tc/f_u32.c --- iproute-20051007.keep/tc/f_u32.c 2005-01-19 08:11:58.000000000 +1000 +++ iproute-20051007/tc/f_u32.c 2006-01-12 17:12:43.000000000 +1000 @@ -878,6 +878,7 @@ struct tc_u32_sel sel; struct tc_u32_key keys[4]; } sel2; + memset(&sel2, 0, sizeof(sel2...
2004 May 26
1
error compilling TC
...ón `get_addr_and_pi'': f_rsvp.c:57: aviso: declaración implícita de la función `htonl'' gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -I/usr /include/db3 -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLV E_HOSTNAMES -c -o f_u32.o f_u32.c f_u32.c: En la función `pack_key32'': f_u32.c:143: aviso: declaración implícita de la función `htonl'' f_u32.c: En la función `parse_offset'': f_u32.c:679: aviso: declaración implícita de la función `htons'' f_u32.c: En la función `u32_print_opt'':...
2007 Jun 01
2
tc offset & subheader matching clarification / question
...ommand''s help provides. I''ve been looking for information about the uses of ''offset'' parameter, or more detailed explanation of a few other/relevan options, but what I''ve found is very brief to say the least. So I checked the sources of cls_u32.c and f_u32.c. According to that, the separate ''offset'' parameter controls the offset to the subheader (i.e. tcp from the beginning of ip), and it must be supplied explicitely. So for example, doing something like: tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 \ match tcp dst...
2005 Dec 20
1
IPv6 priority in tc filter
Hi, I have recently started to use ''tc'' on ipv6 traffic and have come across an issue with tc filter. As per tc_filter.c in iproute2-050816, to match ''priority'' of an ipv6 packet, the u32 filter matches against the first 8 bits of the packet. From f_u32.c: if (strcmp(*argv, "priority") == 0) { NEXT_ARG(); res = parse_u8(&argc, &argv, sel, 0, 0); goto done; } According to RFC2460 for IPv6 (http://www.ietf.org/rfc/rfc2460.txt), the first 4 bits of the packet are the...
2007 Jul 07
0
tc u32''s indev paramater
After checking f_u32.c sources, there''s one extra parameter parsed - indev, that is nowhere described - not even in commandline help or in excellent Russell''s documentation. Does anyone know, what''s the purpose of it ?
2003 Aug 16
0
offset mask usage in u32 filter
...shown in an example in Linux - Advanced Networking Overview: http://qos.ittc.ku.edu/howto/node48.html I could find no explanation of this usage in LARTC, and specifically, Section 12.4 on Hashing filters does not use it. Searches of the mailing list did not yield an answer. Review of tc code in f_u32.c showed that in parse_offset() the arguments were assembled into tc_u32_sel structure fields and passed into the kernel. However, I could not figure out what the intent was in cls_u32.c for these fields. I would much appreciate an explanation or pointers to information. Walter _______________...
2002 Sep 13
0
tcng version 8w
...ttp://tcng.sourceforge.net/#src This one has the first steps towards getting non-IPv4 classification right: - I''ve added fields for skb meta-data (meta_protocol, etc.) - if USE_META_PROTOCOL is #defined (tcc -D... or tcsim -Xc,-D...), ip_hdr and ip6_hdr check the protocol number - if_u32 generates distinct classifier branches for each protocol - f_fw, f_tcindex, and f_u32 now default to ETH_P_ALL instead of ETH_P_IP The latter change affects how u32 classification works ! tests/protu32 illustrates how protocol-aware classification is used. What''s missing: - C and t...
2005 Jul 04
0
Problem linking with libdb
...NU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DCONFIG_GACT -DCONFIG_GACT_PROB -c -o p_udp.o p_udp.c gcc -Wl,-export-dynamic tc.o tc_qdisc.o tc_class.o tc_filter.o tc_util.o m_police.o m_estimator.o m_action.o q_fifo.o q_sfq.o q_red.o q_prio.o q_tbf.o q_cbq.o f_rsvp.o f_u32.o f_route.o f_fw.o q_dsmark.o q_gred.o f_tcindex.o q_ingress.o q_hfsc.o q_htb.o m_gact.o m_mirred.o m_ipt.o m_pedit.o p_ip.o p_icmp.o p_tcp.o p_udp.o ../lib/libnetlink.a ../lib/libutil.a tc_core.o tc_red.o tc_cbq.o tc_estimator.o -lresolv -L../lib -lnetlink -lutil -L/usr/local/BerkeleyDB.4.2/lib...