c - 如何作为中间节点访问分组数据
问题描述
A 想向 B 传输数据。C 是中间节点。发送数据如下:</p>
static void
send_packet(void *ptr)
{
uint16_t packet_id;
packet_id=(client_ipaddr.u8[sizeof(client_ipaddr.u8)-1])*100+panum;
PRINTF("The sending packet id is %u\n",packet_id);
uip_udp_packet_sendto(client_conn, &packet_id, sizeof(packet_id), &server_ipaddr, UIP_HTONS(UDP_SERVER_PORT));
panum=panum+1;
}
现在,C 嗅探数据包并希望读取 packetdata(packet_id) 作为中间节点。怎么做?
解决方案
推荐阅读
- reactjs - 使特定样式仅适用于表体中的 TableCell
- html - 导航栏中的下拉菜单在区域外打开。如何解决?
- python-3.x - 使用 MsAzure 快速入门示例代码将大型 .wav 文件转换为 .txt 文件 [连续识别]
- excel - 如何应用 InStr 将标题名称与名称数组匹配?
- amazon-dynamodb - DynamoDb 检查给定 SS 中包含的 SS 属性
- python - df.dropna() 不删除带有 na 的行
- r - R data.table 对函数参数执行连接
- javascript - Firebase 使用 javascript 查找具有用户名的用户
- angular - Module Federation - webpack 从 package.json 读取错误的依赖版本
- bash - JVM传递子shell参数