group::NETIF

This is the interface for network devices. These requests must be implemented by any network interface (ethernet, wifi, etc) in order for LWIP to be able to use the network interface.

Details

defineNETIF_VERSION


defineNETIF_IOC_CHAR


defineI_NETIF_GETVERSION


defineI_NETIF_GETINFO

This requests reads the ADC attributes.

Example:

#include <sos/dev/netif.h>
netif_attr_t attr;
int netif_fd;
...
ioctl(netif_fd, I_NETIF_GETINFO, &attr);

defineI_NETIF_SETATTR

This requests writes the ETH attributes.

Example:

#include <sos/dev/netif.h>
netif_attr_t attr;
int netif_fd;
...
ioctl(netif_fd, I_NETIF_SETATTR, &attr);

defineI_NETIF_SETACTION


defineI_NETIF_TOTAL


enum@25

  • NETIF_FLAG_INIT When setting attributes, initializes the interface
  • NETIF_FLAG_DEINIT When setting attributes, de-initialies the interface
  • NETIF_FLAG_IS_LINK_UP When settings attributes, ioctl() return 1 if link is up
  • NETIF_FLAG_SET_LINK_UP When setting attributes, sets the link as up
  • NETIF_FLAG_SET_LINK_DOWN When setting attributes, sets the link as down


date: “2019-06-27” layout: post title: struct::netif_info_t katex: true

categories: struct

Methods

Details

public u32o_flags


public u32o_events



date: “2019-06-27” layout: post title: struct::netif_attr_t katex: true

categories: struct

Methods

Details

public u32o_flags


public u16mtu


public u8mac_address


X

Thanks for Coming!

Subscribe to news and updates