The pointer should be moved adequately depending on the length of socket address as populated in the structure after the call.
根据调用之后该结构中填充的套接字地址的长度,可以对这个指针进行移动。
For example, if you call on a DNS resolver to get information (such as the canonical name of an IP address), remember that this data might be directly provided by an attacker.
例如,如果您调用了一个DNS解析程序来获得一些信息(例如ip地址所对应的域名),就请记住这些数据可能会是由攻击者直接提供的。
The bind call copies the local address specified by the process into an mbuf and calls sobind, which in turn calls tcp_usrreq with PRU_BIND as the request.
bind调用将进程指定的本地地址复制到mbuf,并调用sobind,后者则根据请求使用PRU_BIND调用tcp_usrreq 。
应用推荐