
网络
文章平均质量分 53
uefi_artisan
这个作者很懒,什么都没留下…
展开
-
关于局域网内两主机之间单向ping通的问题
在局域网内为什么主机A可以ping通主机B,主机B却ping不通主机A呢?大家可以看一下ping命令的工作流程 假定主机A的IP地址是192.168.1.3,主机B的IP地址是192.168.1.2,都在同一子网内,则当你在主机A上运行“Ping 192.168.1.2”后,都发生了些什么呢? 首先,Ping命令会构建一个固定格式的ICMP请求数据包,然后由ICMP协议将这个数据包连同...转载 2018-04-03 19:10:47 · 12095 阅读 · 0 评论 -
UEFI EDKII 网络调试
先用虚拟机(VirtualBox)虚拟一张网卡:然后,配置其ip地址:配置NT32 网卡ip 地址:最后,测试一下,能不能连通:看起来,妥妥的,接下来,就尽情的浪吧~~...原创 2018-03-27 18:50:55 · 924 阅读 · 1 评论 -
connect 函数
函数unix_find_other()根据给定的地址找到目标插口sock数据结构,其代码也在net/unix/af_unix.c中:static unix_socket *unix_find_other(struct sockaddr_un *sunname, int len, int type, unsigned hash, int *error){ unix_socket ...转载 2018-04-01 22:23:08 · 475 阅读 · 0 评论 -
监听连接请求
sys_listen 函数执行监听任务,传递的两个参数分别是socket的文件号和连接数。/* * Perform a listen. Basically, we allow the protocol to do anything * necessary for a listen, and if that works, we mark the socket as * ready for li...转载 2018-04-07 23:06:04 · 405 阅读 · 0 评论 -
uefi edk2 socket 实现
edk2 里面有个叫socket.c 的文件,里面实现了socket // // Initialize the socket protocol // pSocket->Signature = SOCKET_SIGNATURE; pSocket->SocketProtocol.pfnAccept = EslSocketAccept; pSo...原创 2018-03-14 09:51:08 · 684 阅读 · 0 评论 -
uefi edkII NT32 环境下网络连接
第一步:关闭防火墙第二步,设置Ip 地址:第三步:client 端ip 设置:为什么选eth1, NT32的mac 地址,要和本机的mac 地址mapping 起来,默认是mac+1==Nt32 mac原创 2018-03-19 11:56:11 · 673 阅读 · 1 评论 -
uefi 网络实现
server端:intOobRx ( IN int ArgC, IN char **ArgV ){ SOCKET a; ssize_t BytesReceived; struct sockaddr_in LocalPort; UINT32 OobInLine; UINT16 PortNumber; struct timeval ReceiveTimeout;...原创 2018-03-22 14:02:28 · 1715 阅读 · 0 评论 -
UEFI 环境网络连接情景分析 追踪OOBRX与OOBTX
/** @file Windows version of the OOB Receive application Copyright (c) 2011-2012, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made avai...原创 2018-04-28 00:24:28 · 331 阅读 · 0 评论