-1

Does anybody know how can I find out what's the interface a packet arrived on? I captured packets with tcpdump using "-i any" and now I want to find out on what interface a certain packet was received. And another question, can I start tcpdump on an interface that does not exist yet? The code I am testing creates an interface and starts sending packets imediately. The problem is that by the time I get to hit tcpdump, some packets are already sent.

Thanks!

4

1 回答 1

1

我认为我们不能在不在网络中的接口上这样做..我们可以处理在网络中飞行的数据包,因此以太网应该在网络中

于 2013-07-18T17:42:42.953 回答