libbb: move netlink socket binding to the utility function
function old new delta create_and_bind_to_netlink - 134 +134 ifplugd_main 1117 1052 -65 uevent_main 399 306 -93 mdev_main 314 215 -99 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/3 up/down: 134/-257) Total: -123 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -688,6 +688,7 @@ int xsocket_stream(len_and_sockaddr **lsap) FAST_FUNC;
|
||||
/* NB: these set SO_REUSEADDR before bind */
|
||||
int create_and_bind_stream_or_die(const char *bindaddr, int port) FAST_FUNC;
|
||||
int create_and_bind_dgram_or_die(const char *bindaddr, int port) FAST_FUNC;
|
||||
int create_and_bind_to_netlink(int proto, int grp, unsigned rcvbuf) FAST_FUNC;
|
||||
/* Create client TCP socket connected to peer:port. Peer cannot be NULL.
|
||||
* Peer can be numeric IP ("N.N.N.N"), numeric IPv6 address or hostname,
|
||||
* and can have ":PORT" suffix (for IPv6 use "[X:X:...:X]:PORT").
|
||||
|
Reference in New Issue
Block a user