beautypg.com

Group or subnet table clear, Group or subnet table download, Group forward – Echelon LonWorks Router User Manual

Page 113

background image

typedef enum {
NORMAL = 0, // Not a temporary bridge.
INIT_RTR_TABLE = 1, // Copy forwarding tables from EEPROM
// for configured routers.
// Initialize forwarding tables for
// learning routers.
TEMP_BRIDGE = 2 // Temporarily a bridge until next reset
// or NORMAL router mode request.
} rtr_mode;

typedef rtr_mode NM_rtr_mode_request;

Group or Subnet Table Clear

This message clears all entries in either the group or subnet forwarding table for

a single domain for a single router side. The message is segmented to cover eight

byte sections to prevent lengthy EEPROM write operations.
This message uses the Request-Response protocol. The configuration checksum

in EEPROM is updated.

typedef struct {
unsigned group_or_subnet : 1; // 1 => Group, 0 => Subnet
unsigned domain_index : 1;
unsigned unused : 4;
unsigned index_times_8 : 2;
} NM_rtr_table_clear_request;

Group or Subnet Table Download

This message configures the entire group or subnet forwarding table in EEPROM

for the specified domain for a single router side. The download function is

segmented into eight-byte sections.
The least significant bit (LSB) of the table field maps to the lowest subnet or

group ID in the current set of table entries defined by the index_times_8 field.

A value of ‘1’ specifies that forwarding be enabled for the corresponding group or

subnet; a value of ‘0’ disables forwarding. Subnet 0 is used for special protocol

functions and is never marked for forwarding.
This message uses the Request-Response protocol. The configuration checksum

in EEPROM is updated. Each byte in the table entry includes routing flags for

eight subnets or groups.

typedef struct {
unsigned group_or_subnet : 1; // 1 => Group, 0 => Subnet
unsigned domain_index : 1;
unsigned unused : 4;
unsigned index_times_8 : 2;
unsigned table[8]; // Table data
} NM_rtr_table_downld_request;

Group Forward

This message sets the forwarding flag in the forwarding table for a given group in

the specified domain. If the ram_or_eeprom field is set, both the RAM and

L

ON

W

ORKS

Router User’s Guide

103