mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 13:13:35 +08:00
Add interfaces flags, extend ifconfig, add ifup and ifdown commands (Darcy Gong
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5308 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -102,6 +102,7 @@ extern "C" {
|
||||
*/
|
||||
|
||||
EXTERN bool uiplib_ipaddrconv(const char *addrstr, uint8_t *addr);
|
||||
EXTERN bool uiplib_hwmacconv(const char *hwstr, uint8_t *hw);
|
||||
|
||||
/* Get and set IP/MAC addresses (Ethernet L2 only) */
|
||||
|
||||
@@ -135,6 +136,10 @@ EXTERN int uip_parsehttpurl(const char *url, uint16_t *port,
|
||||
EXTERN int uip_listenon(uint16_t portno);
|
||||
EXTERN void uip_server(uint16_t portno, pthread_startroutine_t handler, int stacksize);
|
||||
|
||||
EXTERN int uip_getifstatus(const char *ifname, bool *status);
|
||||
EXTERN int uip_ifup(const char *ifname);
|
||||
EXTERN int uip_ifdown(const char *ifname);
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user