i am experiencing the following situation:
I open with pcap_open_live() one of my network-interfaces. Then i am compiling a filter for pcap for only capturing a specified ethernet-type (ether proto 0x1234). Now i am starting the pcap_loop(). The only thing, that the callback-function executes, is to send a frame via pcap_inject(). (The frame is hard-coded as a global char array).
When i compare now the timestamps of the received and the sent frame (e.g. on wireshark …
希望我不会创建重复项,但到目前为止,我没有找到解决我问题的正确答案。
假设我们具有以下结构:
a(1).b = 1;
a(1).x.y = 2;
a(2).b = 3;
a(2).x.y = 4;
Run Code Online (Sandbox Code Playgroud)
现在,当我尝试获取b的所有值时,我可以这样做:
>> a(:).b
ans = 1
ans = 3
Run Code Online (Sandbox Code Playgroud)
但是如何使用嵌套结构.xy实现呢?
>> a(:).x.y
Run Code Online (Sandbox Code Playgroud)
期望从花括号或点索引表达式获得一个输出,但是有2个结果。
谢谢你的帮助...!