You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/05/27 08:41:24 UTC
[incubator-nuttx-apps] branch master updated (276bf42 -> 984b80d)
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git.
from 276bf42 webclient: Fix http -> https redirection
new 4e32615 netlib: #if 0 out unimplemented fields in url_s
new 984b80d netlib.h: Fix nxstyle complaints
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
include/netutils/netlib.h | 34 ++++++++++++++++++++++++----------
1 file changed, 24 insertions(+), 10 deletions(-)
[incubator-nuttx-apps] 01/02: netlib: #if 0 out unimplemented
fields in url_s
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 4e32615ab77e8fffd639f0e7f5867aa6d95dbb26
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed May 27 14:10:04 2020 +0900
netlib: #if 0 out unimplemented fields in url_s
- Avoid giving a wrong impression to users
- Save a little memory
---
include/netutils/netlib.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/netutils/netlib.h b/include/netutils/netlib.h
index 360107f..bbdf6d2 100644
--- a/include/netutils/netlib.h
+++ b/include/netutils/netlib.h
@@ -207,19 +207,23 @@ struct url_s
{
FAR char *scheme;
int schemelen;
+#if 0 /* not yet */
FAR char *user;
int userlen;
FAR char *password;
int passwordlen;
+#endif
FAR char *host;
int hostlen;
int port;
FAR char *path;
int pathlen;
+#if 0 /* not yet */
FAR char *parameters;
int parameterslen;
FAR char *bookmark;
int bookmarklen;
+#endif
};
#endif
[incubator-nuttx-apps] 02/02: netlib.h: Fix nxstyle complaints
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 984b80d7cf69728b0dd72bb56de2e49a403fe9e9
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed May 27 14:19:26 2020 +0900
netlib.h: Fix nxstyle complaints
---
include/netutils/netlib.h | 30 ++++++++++++++++++++----------
1 file changed, 20 insertions(+), 10 deletions(-)
diff --git a/include/netutils/netlib.h b/include/netutils/netlib.h
index bbdf6d2..8ddcde7 100644
--- a/include/netutils/netlib.h
+++ b/include/netutils/netlib.h
@@ -3,7 +3,8 @@
* Various non-standard APIs to support netutils. All non-standard and
* intended only for internal use.
*
- * Copyright (C) 2007, 2009, 2011, 2015, 2017 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2009, 2011, 2015, 2017 Gregory Nutt. All rights
+ * reserved.
* Author: Gregory Nutt <gn...@nuttx.org>
*
* Some of these APIs derive from uIP. uIP also has a BSD style license:
@@ -81,7 +82,8 @@
/* Using the following definitions, the following socket() arguments should
* provide a valid socket in all configurations:
*
- * ret = socket(NETLIB_SOCK_FAMILY, NETLIB_SOCK_TYPE, NETLIB_SOCK_PROTOCOL);
+ * ret = socket(NETLIB_SOCK_FAMILY, NETLIB_SOCK_TYPE,
+ * NETLIB_SOCK_PROTOCOL);
*/
/* The address family that we used to create the socket really does not
@@ -251,7 +253,8 @@ ssize_t netlib_get_devices(FAR struct netlib_device_s *devlist,
unsigned int nentries, sa_family_t family);
#endif
-/* Convert a textual representation of an IP address to a numerical representation.
+/* Convert a textual representation of an IP address to a numerical
+ * representation.
*
* This function takes a textual representation of an IP address in
* the form a.b.c.d and converts it into a 4-byte array that can be
@@ -306,24 +309,31 @@ bool netlib_nodeaddrconv(FAR const char *addrstr,
#ifdef CONFIG_NET_IPv4
int netlib_get_ipv4addr(FAR const char *ifname, FAR struct in_addr *addr);
-int netlib_set_ipv4addr(FAR const char *ifname, FAR const struct in_addr *addr);
-int netlib_set_dripv4addr(FAR const char *ifname, FAR const struct in_addr *addr);
+int netlib_set_ipv4addr(FAR const char *ifname,
+ FAR const struct in_addr *addr);
+int netlib_set_dripv4addr(FAR const char *ifname,
+ FAR const struct in_addr *addr);
int netlib_get_dripv4addr(FAR const char *ifname, FAR struct in_addr *addr);
-int netlib_set_ipv4netmask(FAR const char *ifname, FAR const struct in_addr *addr);
+int netlib_set_ipv4netmask(FAR const char *ifname,
+ FAR const struct in_addr *addr);
int netlib_get_ipv4netmask(FAR const char *ifname, FAR struct in_addr *addr);
int netlib_ipv4adaptor(in_addr_t destipaddr, FAR in_addr_t *srcipaddr);
#endif
#ifdef CONFIG_NET_IPv6
int netlib_get_ipv6addr(FAR const char *ifname, FAR struct in6_addr *addr);
-int netlib_set_ipv6addr(FAR const char *ifname, FAR const struct in6_addr *addr);
-int netlib_set_dripv6addr(FAR const char *ifname, FAR const struct in6_addr *addr);
-int netlib_set_ipv6netmask(FAR const char *ifname, FAR const struct in6_addr *addr);
+int netlib_set_ipv6addr(FAR const char *ifname,
+ FAR const struct in6_addr *addr);
+int netlib_set_dripv6addr(FAR const char *ifname,
+ FAR const struct in6_addr *addr);
+int netlib_set_ipv6netmask(FAR const char *ifname,
+ FAR const struct in6_addr *addr);
int netlib_ipv6adaptor(FAR const struct in6_addr *destipaddr,
FAR struct in6_addr *srcipaddr);
uint8_t netlib_ipv6netmask2prefix(FAR const uint16_t *mask);
-void netlib_prefix2ipv6netmask(uint8_t preflen, FAR struct in6_addr *netmask);
+void netlib_prefix2ipv6netmask(uint8_t preflen,
+ FAR struct in6_addr *netmask);
#ifdef CONFIG_NETLINK_ROUTE
struct neighbor_entry_s;
ssize_t netlib_get_nbtable(FAR struct neighbor_entry_s *nbtab,