> isn't it set? to quote from the example I have attached:
> socklen_t fromlen = sizeof(struct sockaddr_in);
> sorry, I misread the source (the memset line)
> you are using raw sockets, what does port mean for raw sockets?
well, from raw(7) man page:
raw_socket = socket(PF_INET,
> I have attached a simple program I used for generating those
> results.
>
> 'fromlen' needs to be set to sizeof 'from' before the recvfrom syscall
isn't it set? to quote from the example I have attached:
socklen_t fromlen = sizeof(struct sockaddr_in);
-
To unsubscribe from thi
hello,
I'm using recvfrom, and upon return it should fill in
from argument with sockaddr_in data structure. from
ip(7) man page I get that it has format of :
struct sockaddr_in {
sa_family_tsin_family; /* address family: AF_INET */
u_
3 matches
Mail list logo