2018-08-24 20:39:10 +08:00
|
|
|
/*
|
2021-03-08 18:19:04 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2018-08-24 20:39:10 +08:00
|
|
|
*
|
2018-10-15 01:23:33 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2018-08-24 20:39:10 +08:00
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2018-08-25 ChenYong First version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __AF_INET_H__
|
|
|
|
#define __AF_INET_H__
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
2018-08-25 21:04:11 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-08-24 20:39:10 +08:00
|
|
|
#ifdef SAL_USING_LWIP
|
2019-04-16 18:24:55 +08:00
|
|
|
|
|
|
|
/* Set lwIP network interface device protocol family information */
|
|
|
|
int sal_lwip_netdev_set_pf_info(struct netdev *netdev);
|
|
|
|
|
|
|
|
#endif /* SAL_USING_LWIP */
|
2018-08-24 20:39:10 +08:00
|
|
|
|
|
|
|
#ifdef SAL_USING_AT
|
2019-04-16 18:24:55 +08:00
|
|
|
|
|
|
|
/* Set AT network interface device protocol family information */
|
|
|
|
int sal_at_netdev_set_pf_info(struct netdev *netdev);
|
|
|
|
|
|
|
|
#endif /* SAL_USING_AT */
|
2018-08-24 20:39:10 +08:00
|
|
|
|
2018-08-25 21:04:11 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-08-24 20:39:10 +08:00
|
|
|
#endif /* __AF_INET_H__ */
|