首页 文章
  • 5 votes
     answers
     views

    使用libnet发送ARP请求,但获得ARP回复后arp缓存不会更新

    我需要在本地网络中查找MAC地址,而我正在使用Linux . 我所做的是发送一个带有libnet的ARP请求,但在发送3个请求后,缓存仍然不会更新 . 我使用wireshark捕获数据包 . 来自wireshark,在我的每个ARP请求之后,我确实获得了3次ARP重放 . 有谁知道ARP缓存怎么不更新?
  • 1 votes
     answers
     views

    用libnet在C中创建arp包

    我想知道在创建框架后如何发送框架 . 我有下一个: int arp_send(libnet_t * l,int op,u_char * sha,in_addr_t spa,u_char * tha,in_addr_t tpa){libnet_ptag_t t; if (sha == NULL && (sha = (u_char *)libnet_get_hwaddr(l))...
  • 1 votes
     answers
     views

    Libnet11手动构建IPv6数据包

    我正在尝试使用 Libnet11 函数: int libnet_write_raw_ipv6 (libnet_t *l, u_int8_t *packet, u_int32_t size) 在网络层注入IPv6数据包 . 我创建了IPv6数据包并使用Wireshark捕获它 . Wireshark报道:格式错误的数据包(wireshark说IPv6中的下一个标头值是错误的,我认为有效负载大小太...

热门问题