Thread (8 messages) flat view 8 messages, 2 authors, 2017-10-02

Re: [iproute PATCH v2 0/3] Check user supplied interface name lengths

From: Phil Sutter <phil@nwl.cc>
Date: 2017-10-02 10:18:10

On Fri, Sep 29, 2017 at 10:31:07AM -0700, Stephen Hemminger wrote:
[...]
quoted hunk ↗ jump to hunk
I was thinking something like:


diff --git a/include/utils.h b/include/utils.h
index c9ed230b9604..e2702b56f2e0 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -105,6 +105,8 @@ int get_be64(__be64 *val, const char *arg, int base);
 int get_be32(__be32 *val, const char *arg, int base);
 int get_be16(__be16 *val, const char *arg, int base);
 int get_addr64(__u64 *ap, const char *cp);
+int check_ifname(const char *arg);
+int get_ifname(char *buf, const char *arg);
Ah, understood. I'll change my patch accordingly.

Thanks, Phil
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help