.. | .. |
---|
78 | 78 | struct sockaddr_storage local_sockaddr; |
---|
79 | 79 | struct sockaddr_storage mapped_sockaddr; |
---|
80 | 80 | u8 nl_client; |
---|
| 81 | + u32 map_flags; |
---|
81 | 82 | }; |
---|
82 | 83 | |
---|
83 | 84 | struct iwpm_remote_info { |
---|
.. | .. |
---|
209 | 210 | |
---|
210 | 211 | /** |
---|
211 | 212 | * iwpm_compare_sockaddr - Compare two sockaddr storage structs |
---|
| 213 | + * @a_sockaddr: first sockaddr to compare |
---|
| 214 | + * @b_sockaddr: second sockaddr to compare |
---|
212 | 215 | * |
---|
213 | | - * Returns 0 if they are holding the same ip/tcp address info, |
---|
| 216 | + * Return: 0 if they are holding the same ip/tcp address info, |
---|
214 | 217 | * otherwise returns 1 |
---|
215 | 218 | */ |
---|
216 | 219 | int iwpm_compare_sockaddr(struct sockaddr_storage *a_sockaddr, |
---|
.. | .. |
---|
266 | 269 | * @msg: Message to print |
---|
267 | 270 | */ |
---|
268 | 271 | void iwpm_print_sockaddr(struct sockaddr_storage *sockaddr, char *msg); |
---|
| 272 | + |
---|
| 273 | +/** |
---|
| 274 | + * iwpm_send_hello - Send hello response to iwpmd |
---|
| 275 | + * |
---|
| 276 | + * @nl_client: The index of the netlink client |
---|
| 277 | + * @iwpm_pid: The pid of the user space port mapper |
---|
| 278 | + * @abi_version: The kernel's abi_version |
---|
| 279 | + * |
---|
| 280 | + * Returns 0 on success or a negative error code |
---|
| 281 | + */ |
---|
| 282 | +int iwpm_send_hello(u8 nl_client, int iwpm_pid, u16 abi_version); |
---|
| 283 | +extern u16 iwpm_ulib_version; |
---|
269 | 284 | #endif |
---|