Hi, Fujita-san
On 2015年05月20日 15:38, FUJITA Tomonori wrote:
> On Tue, 19 May 2015 16:05:45 +0900
> Minoru TAKAHASHI <takahashi.mino...@gmail.com> wrote:
>
>> Now, I work on OF1.5 support.
>
> Nice, what message you are working on?
We are working on a B.18.15 and B.18.16 for starters.
B.18.15 Port properties for pipeline fields
B.18.16 Port property for recirculation
>
>> I want to generate OpenFlow packet binary files to use unit tests of OF1.5.
>> Then, I found out that "ryu/tests/packetgenerator" and
>> "ryu/tests/packetgenerator2".
>> My question is as follows.
>>
>> * What's the difference in the purpose of "packetgenerator" and
>> "packetgenerator2"?
>> * Do we have any document about how to use them?
>
> v1 uses LINC switch's OpenFlow library and v2 uses OVS OpenFlow
> code. About OF1.5 support, we have several problems about the former
> so v2 was added for OF1.5.
>
> So you need to use v2 for OF1.5.
>
> https://github.com/osrg/ryu/blob/master/ryu/tests/packet_data_generator2/README
Thanks for the information.
Unfortunately, while building I got some errors.
My environment is FreeBSD 10.1-RELEASE (on Vmplayer).
I have attached the edited Makefile and error result.
Any help would be greatly appreciated.
thanks,
>
# Copyright (C) 2015 Nippon Telegraph and Telephone Corporation.
# Copyright (C) 2015 YAMAMOTO Takashi <yamamoto at valinux co jp>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# OVS: openvswitch installed directory (used to look for libraries)
# OVS_SRC: openvswitch source directory
# OVS?=${HOME}/ovs
# OVS_SRC?=/disks/774373a2-e180-11e3-9fa1-08606e7f74e7/git/openvswitch
OVS=${HOME}/ovs
OVS_SRC=${HOME}/ovs
CFLAGS+=-I${OVS}/include -I${OVS_SRC}
LDFLAGS+=-L${OVS}/lib/.libs -Wl,-R${OVS}/lib/.libs -lopenvswitch
LDFLAGS+=-L${OVS}/ofproto/.libs -Wl,-R${OVS}/ofproto/.libs -lofproto
PROG=gen
NOMAN=
all: generate
generate: ${PROG}
${_MKMSG} "generate packet_data"
cd ${.CURDIR} && ${.OBJDIR}/${PROG}
.include <bsd.prog.mk>
Script started on Fri May 15 20:37:30 2015
root@:~/ryu-master/ryu/tests/packet_data_generator2 # make clean
rm -f gen gen.o gen.1.gz gen.1.cat.gz
root@:~/ryu-master/ryu/tests/packet_data_generator2 # make all
cc -O2 -pipe -I/root/ovs/include -I/root/ovs -std=gnu99 -Qunused-arguments
-fstack-protector -c gen.c
1mgen.c:76:29: 0m0;1;35mwarning: 0m1mpassing 'char [7]' to parameter of type
'const uint8_t *'
(aka 'const unsigned char *') converts between pointers to integer types
with different sign [-Wpointer-sign]0m
match_set_dl_dst(match, "\xaa\xbb\xcc\x99\x88\x77");
0;1;32m ^~~~~~~~~~~~~~~~~~~~~~~~~~
0m1m/root/ovs/lib/match.h:86:52: 0m0;1;30mnote: 0mpassing argument to parameter
here0m
void match_set_dl_dst(struct match *, const uint8_t[ETH_ADDR_LEN]);
0;1;32m ^
0m1 warning generated.
cc -O2 -pipe -I/root/ovs/include -I/root/ovs -std=gnu99 -Qunused-arguments
-fstack-protector -L/root/ovs/lib/.libs -Wl,-R/root/ovs/lib/.libs
-lopenvswitch -L/root/ovs/ofproto/.libs -Wl,-R/root/ovs/ofproto/.libs -lofproto
-o gen gen.o
gen.o: In function `clear_xid':
gen.c:(.text+0x27): undefined reference to `ovs_assert_failure'
gen.o: In function `dump_message':
gen.c:(.text+0xc1): undefined reference to `ofpmsg_update_length'
gen.o: In function `fill_match':
gen.c:(.text+0xea): undefined reference to `match_init_catchall'
gen.c:(.text+0xf7): undefined reference to `match_set_in_port'
gen.c:(.text+0x104): undefined reference to `match_set_dl_vlan'
gen.c:(.text+0x111): undefined reference to `match_set_dl_dst'
gen.c:(.text+0x11e): undefined reference to `match_set_dl_type'
gen.c:(.text+0x132): undefined reference to `match_set_nw_dst'
gen.c:(.text+0x146): undefined reference to `match_set_tun_src'
gen.c:(.text+0x15a): undefined reference to `match_set_tun_dst'
gen.c:(.text+0x172): undefined reference to `match_set_tun_id'
gen.o: In function `packet_in':
gen.c:(.text+0x1f7): undefined reference to `flow_get_metadata'
gen.c:(.text+0x208): undefined reference to `ofputil_encode_packet_in'
gen.o: In function `flow_mod':
gen.c:(.text+0x287): undefined reference to `ofpbuf_init'
gen.c:(.text+0x299): undefined reference to `ofpact_put'
gen.c:(.text+0x2ab): undefined reference to `ofpact_put'
gen.c:(.text+0x2cd): undefined reference to `ofpact_put'
gen.c:(.text+0x2f1): undefined reference to `ofputil_encode_flow_mod'
gen.o: In function `bundle_ctrl':
gen.c:(.text+0x328): undefined reference to `ofputil_protocol_to_ofp_version'
gen.c:(.text+0x353): undefined reference to `ofputil_encode_bundle_ctrl_reply'
gen.o: In function `bundle_add':
gen.c:(.text+0x3a3): undefined reference to `ofputil_protocol_to_ofp_version'
gen.c:(.text+0x3ae): undefined reference to `ofputil_encode_bundle_add'
gen.c:(.text+0x3be): undefined reference to `ofpbuf_uninit'
gen.c:(.text+0x3e6): undefined reference to `ovs_assert_failure'
gen.o: In function `main':
gen.c:(.text+0x475): undefined reference to `ofputil_protocol_from_ofp_version'
gen.c:(.text+0x4ce): undefined reference to `ofpmsg_update_length'
gen.c:(.text+0x4e6): undefined reference to `ofpbuf_uninit'
gen.c:(.text+0x54f): undefined reference to `ovs_assert_failure'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Stop.
make: stopped in /root/ryu-master/ryu/tests/packet_data_generator2
root@:~/ryu-master/ryu/tests/packet_data_generator2 # exit
Script done on Fri May 15 20:37:39 2015
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel