Skip to content

Zephyr Ethernet Interface Supporting Many IPv4 IPs and Many Multicast Addresses #35980

Answered by jukkar
bob2oneil asked this question in Q&A
Discussion options

You must be logged in to vote

The following kernel configuration can be used to set a value, but what is the maximum?

There is no maximum, only the amount of memory limits it.

Assuming I am unable to provide for a range of IPs on this interface through kernel or runtime configuration,

The IP addresses need to be assigned to the interface at runtime by your application. Just use this function for doing it

struct net_if_addr *net_if_ipv4_addr_add(struct net_if *iface,
					 struct in_addr *addr,
					 enum net_addr_type addr_type,
					 uint32_t vlifetime);

Can these ambitions all be accomplished on the same interface, i.e. a promiscuous raw socket operating at Layer 2 along with a UDP unbound socket and TCP socke…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@bob2oneil
Comment options

@bob2oneil
Comment options

@jukkar
Comment options

@bob2oneil
Comment options

@jukkar
Comment options

Answer selected by bob2oneil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment