首页 文章
  • 0 votes
     answers
     views

    套接字程序无法从python中的ECU接收以太网数据包

    我正在尝试构建一个套接字以从ecu中检索以太网数据包 . 当我在Windows上运行我的代码没有问题,代码运行正常 . 但是当我在Linux上运行我的代码时,它会陷入s.recv(65565) . 我已经在/ etc / network / interfaces中设置了静态ip,如下所示:iface eth0 inet static address 160.48.199.91 netmask 25...
  • 1 votes
     answers
     views

    recvfrom多次读取同一帧

    我正在玩STP数据包并编写程序原始套接字来修改它们 . 阅读fropm eth0发送到eth1 . 系统是ubuntu 14.10 / Kernel 3.somewhat . 使用Karat的其他计算机生成数据包,Wireshark也运行此接口 . 注入一个数据包,并在第一次运行recvfrom后没有停止 . 从eth0读取相同的数据包并将其发送到eth1 . 调试会话???????最终版本应该从...
  • 0 votes
     answers
     views

    C recv函数行为

    这是我的两段代码: server.c #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <sys...

热门问题