Evgeniy Polyakov wrote: > + l_local.nl_family = AF_NETLINK; > + l_local.nl_groups = 0x123; /* bitmask of requested groups */ > + l_local.nl_pid = 0; > + > + if (bind(s, (struct sockaddr *)&l_local, sizeof(struct sockaddr_nl)) == > -1) { > + perror("bind"); > + close(s); > + return -1; > + } > + > +#if 0 > + { > + int on = 0x57; /* Additional group number */ > + setsockopt(s, SOL_NETLINK, NETLINK_ADD_MEMBERSHIP, &on, > sizeof(on)); > + } > +#endif >
That looks better, thanks. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html