ip: add enable ip4 api 69/41869/6
authorOle Troan <[email protected]>
Fri, 22 Nov 2024 08:22:20 +0000 (09:22 +0100)
committerDamjan Marion <[email protected]>
Tue, 10 Dec 2024 13:03:54 +0000 (13:03 +0000)
commit18eedde9f2c73735628627cffb6565b3573abc0b
tree843a3fffbb708c237be0b413f1176e6f42ddebb5
parent82b3cc18260abc8e77375c337cf3f62aafb132ab
ip: add enable ip4 api

A philosophical question. Do an interface have to have an IPv4 address
to process IPv4 packets? For ICMP error generation it's sufficient that
it has an address available on the node.

More concretely this patch is to allow an extern DHCP client to process
IP packets before it configures an address on the interface, without
having to have an node early in the ip4-unicast feature-arc like
ip4-dhcp-client-detect to intercept the packets.

Type: improvement
Change-Id: I780c579eec28ba564cf8417fbcc87e7a7876fdd2
Signed-off-by: Ole Troan <[email protected]>
src/vnet/ip/ip.api
src/vnet/ip/ip46_cli.c
src/vnet/ip/ip_api.c
src/vnet/ip/ip_test.c