Skip to content

Commit

Permalink
[netutils] move sockaddr_len definition where it belongs
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Apr 20, 2020
1 parent 4f3a732 commit 56b7897
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions libknet/internals.h
Expand Up @@ -411,8 +411,6 @@ typedef struct knet_transport_ops {
int (*transport_rx_is_data)(knet_handle_t knet_h, int sockfd, struct knet_mmsghdr *msg);
} knet_transport_ops_t;

socklen_t sockaddr_len(const struct sockaddr_storage *ss);

struct pretty_names {
const char *name;
uint8_t val;
Expand Down
2 changes: 1 addition & 1 deletion libknet/netutils.h
Expand Up @@ -15,5 +15,5 @@
int cmpaddr(const struct sockaddr_storage *ss1, socklen_t sslen1, const struct sockaddr_storage *ss2, socklen_t sslen2);
int cpyaddrport(struct sockaddr_storage *dst, const struct sockaddr_storage *src);

socklen_t knet_sockaddr_len(const struct sockaddr_storage *ss);
socklen_t sockaddr_len(const struct sockaddr_storage *ss);
#endif
1 change: 1 addition & 0 deletions libknet/transport_sctp.c
Expand Up @@ -23,6 +23,7 @@
#include "links_acl.h"
#include "links_acl_ip.h"
#include "logging.h"
#include "netutils.h"
#include "common.h"
#include "transport_common.h"
#include "transports.h"
Expand Down
1 change: 1 addition & 0 deletions libknet/transport_udp.c
Expand Up @@ -27,6 +27,7 @@
#include "link.h"
#include "logging.h"
#include "common.h"
#include "netutils.h"
#include "transport_common.h"
#include "transport_udp.h"
#include "transports.h"
Expand Down

0 comments on commit 56b7897

Please sign in to comment.