teamd: fix incorrect usage of sizeof in __str_sockaddr

Sizeof will return the size of a pointer, which is not correct intended.

Introduced-by: 672ddfd506 ("teamd: move arp ping link watcher to a separate file")
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
fix strncmp len in ifname2ifindex

Calling strncpy with a maximum size argument of 16 bytes on destination
array "ifr.ifr_ifrn.ifrn_name" of size 16 bytes might leave the
destination string unterminated.

Introduced-by: b9692cb90 ("teamd: generate team device names in case they are not specified")
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: tipc: use TIPC_MAX_*_NAME for buffers and check len

You might overrun the 255 byte fixed-size string "tipc_ppriv->bearer" by
copying "tipc_bearer" without checking the length.

Introduced-by: 847046a5c7 ("teamd: add TIPC link watcher")
Signed-off-by: Jiri Pirko <jiri@resnulli.us>