类wpe这种软件,通过send,recv, sendto,recvfrom, 截获的封包怎么获得ip地址端口号,只有三个参数,socket s, int len, char *buf。 用socket, 通过getpeername, getsocketname,都是返回-1。