Skip to main content

pamoja_gateway_station_message_add_net_id

Function pamoja_gateway_station_message_add_net_id 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gateway_station_message_add_net_id( message: *mut PamojaGatewayStationMessage, net_id: u32, ) -> PamojaStatus
Expand description

Adds a network whose data frames a configuration forwards.

A configuration that names one network forwards no other, so the first call turns the filter on.

§Arguments

  • message - the configuration.
  • net_id - the network identifier.

§Returns

PamojaStatus::Ok once added, or PamojaStatus::InvalidArgument for a message that is not a configuration.

§Safety

message must be a live handle.