about the bind action in lpf.c
jayce lee
Fri Apr 19 11:09:39 2013
In lpf.c, dhcpcd declares a variable named su.
union sockunion {
struct sockaddr sa;
struct sockaddr_in sin;
struct sockaddr_ll sll;
struct sockaddr_storage ss;
} su;
It only initialize the su.sll, but in the action of bind, the socket fd
bind to su.sa with the addr_len of sizeof(su).
I'm confusing why we need a sockunion and bind to su.sa with the length of
sizeof(su)?
Thank you.
Jayce
Archive administrator: postmaster@marples.name