]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - misc/ss.c
netlink: extend buffers to 16K
[mirror_iproute2.git] / misc / ss.c
index d3c4fa6597ba62d9a106a56fcc4b753e49f37b75..b7e0ef00bf1ab2c8f71760b371fb4ff8cb1ee40c 100644 (file)
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -1877,7 +1877,7 @@ static int inet_show_netlink(struct filter *f, FILE *dump_fp, int protocol)
        int fd, family;
        struct sockaddr_nl nladdr;
        struct msghdr msg;
-       char    buf[8192];
+       char    buf[16384];
        struct iovec iov[3];
 
        if ((fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_INET_DIAG)) < 0)
@@ -1993,7 +1993,7 @@ done:
 static int tcp_show_netlink_file(struct filter *f)
 {
        FILE    *fp;
-       char    buf[8192];
+       char    buf[16384];
 
        if ((fp = fopen(getenv("TCPDIAG_FILE"), "r")) == NULL) {
                perror("fopen($TCPDIAG_FILE)");
@@ -2510,7 +2510,7 @@ static int handle_netlink_request(struct filter *f, FILE *dump_fp,
                                  int (* show_one_sock)(struct nlmsghdr *nlh, struct filter *f))
 {
        int fd;
-       char    buf[8192];
+       char    buf[16384];
 
        if ((fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_INET_DIAG)) < 0)
                return -1;
@@ -2795,7 +2795,7 @@ static int packet_show_netlink(struct filter *f, FILE *dump_fp)
                struct nlmsghdr nlh;
                struct packet_diag_req r;
        } req;
-       char    buf[8192];
+       char    buf[16384];
 
        if ((fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_INET_DIAG)) < 0)
                return -1;