Hi Tomasz, On 11/12/2013 02:16 PM, Tomasz Bursztyka wrote:
struct sockaddr_ll sock; + fd = socket(PF_PACKET, SOCK_DGRAM | SOCK_CLOEXEC, htons(ETH_P_ARP)); if (fd < 0) return fd; + memset(&sock, 0, sizeof(sock));Or just struct sockaddr_ll sock = {}; so no need to call memset.
FWIW, in a couple of other functions memset is used. I do not really care, but would like to have a consistent style. What's the preference? cheers, daniel _______________________________________________ connman mailing list [email protected] https://lists.connman.net/mailman/listinfo/connman
