4 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
6 ACE_INLINE ACE_Netlink_Addr::ACE_Netlink_Addr ():
7 ACE_Addr (this->determine_type(), sizeof (sockaddr_nl))
9 this->nl_.nl_family = AF_NETLINK;
12 ACE_INLINE void ACE_Netlink_Addr::set(int pid, int gid)
14 this->nl_.nl_pid = pid;
15 this->nl_.nl_groups = gid;
18 ACE_INLINE void ACE_Netlink_Addr::reset ()
20 ACE_OS::memset (&this->nl_, 0, sizeof (this->nl_));
21 this->nl_.nl_family = AF_NETLINK;
24 ACE_INLINE int ACE_Netlink_Addr::determine_type () const
29 ACE_INLINE void *ACE_Netlink_Addr::get_addr () const
31 return (void*)&(this->nl_);
34 ACE_INLINE int ACE_Netlink_Addr::get_addr_size () const
36 return sizeof(this->nl_);
40 ACE_INLINE void ACE_Netlink_Addr::set_addr (const void *addr, int len) {
41 ACE_OS::memcpy (&this->nl_, addr, len);
44 ACE_END_VERSIONED_NAMESPACE_DECL
46 #endif /* ACE_HAS_NETLINK */