Lines Matching refs:iaddr
73 static inline void inetpeer_set_addr_v4(struct inetpeer_addr *iaddr, __be32 ip) in inetpeer_set_addr_v4() argument
75 iaddr->a4.addr = ip; in inetpeer_set_addr_v4()
76 iaddr->a4.vif = 0; in inetpeer_set_addr_v4()
77 iaddr->family = AF_INET; in inetpeer_set_addr_v4()
80 static inline __be32 inetpeer_get_addr_v4(struct inetpeer_addr *iaddr) in inetpeer_get_addr_v4() argument
82 return iaddr->a4.addr; in inetpeer_get_addr_v4()
85 static inline void inetpeer_set_addr_v6(struct inetpeer_addr *iaddr, in inetpeer_set_addr_v6() argument
88 iaddr->a6 = *in6; in inetpeer_set_addr_v6()
89 iaddr->family = AF_INET6; in inetpeer_set_addr_v6()
92 static inline struct in6_addr *inetpeer_get_addr_v6(struct inetpeer_addr *iaddr) in inetpeer_get_addr_v6() argument
94 return &iaddr->a6; in inetpeer_get_addr_v6()