Skip to content

Instantly share code, notes, and snippets.

@rajkosto
Created December 14, 2022 23:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajkosto/79034a1f7b3de3f40edf50ffbd8396b0 to your computer and use it in GitHub Desktop.
Save rajkosto/79034a1f7b3de3f40edf50ffbd8396b0 to your computer and use it in GitHub Desktop.
ODI DFP-34X-2C2 / RTL960x chipset SDK feature bits description
HGU firmware features:
0 BDP (OMCI_CUSTOM_BDP):
0x001 = KERNEL:TLS_4095 = (0)tls_4095_us_rule_to_ds_rule, (1)tls_4095_us_act_to_ds_sact, (2)tls_4095_us_act_to_ds_cact, (3)tls_4095_us_set_mbr_port_by_svlan, (4)tls_4095_us_del_mbr_port_by_svlan
0x002 = KERNEL:ignore_dsPbit = (5)ignore_ds_pbit, this one is very slightly different (less magic values) in SFU firmware
0x008 = (15)cf_gen_vtfd_rule, (14)cf_check_vtfd_mode
0x010 = KERNEL:set_ds_bc_gem_flow_to_ds_bcster_mod = (6)omci_apply_ds_bcster_mod, (7)omci_set_ds_bc_gem_flow_to_ds_bcster_mod,
KERNEL:add_ds_tag_rule_to_ds_bcster_mod = (8)omci_add_ds_tag_rule_to_ds_bcster_mod, (9)omci_del_ds_tag_rule_to_ds_bcster_mod
KERNEL:reset_to_ds_bcster_mod = (10)omci_reset_to_ds_bcster_mod,
0x080 = (18)omci_ingoreExtVlanDefaultDrop (parameter & 0x01 => IGN_ME_171_DEFAULT_DROP, parameter & 0x02 => IGN_ME_171_TREAT_UNTAG, parameter == -1 ?)
0x100 = KERNEL:force_veip_rule_to_sfu = (13)force_veip_rule_to_sfu, (14)force_veip_us_rule_to_sfu, (15)force_veip_ds_rule_to_sfu
1 RDP (OMCI_CUSTOM_RDP):
0x01 = (22)cf_pptp_instead_of_veip_x_bdg_conn, (23)cf_pptp_instead_of_veip_reset_pptp
0x02 = KERNEL:force_ds_bridge_untagged = (11)force_ds_bridge_untagged
2 MC (OMCI_CUSTOM_MCAST):
0x01 = (25)cf_force_ds_mcast_untagged
0x02 = (26)cf_force_unauth_join_forward
0x04 = (27)disable_mcastSrvTable_support
3 ME (OMCI_CUSTOM_ME):
0x000001 = KERNEL:fe_slotId_eq_ge_slotId = (12)fe_slotId_eq_ge_slotId
0x000004 = (29)cf_accept_duplicate_create
0x000008 = (30)cf_force_mbpcd_ffff_mcast_gem
0x000040 = (35)cf_me_65529_is_supported, (36)cf_me_65529_get_info, (37)cf_me_65529_set_info, "Resetting ONU capability MIB", calls feature 38
0x000100 = (39)cf_apply_customized_veip_slot_id
0x000200 = KERNEL:reverse_fe_ge_port_sequence = (17)reverse_fe_ge_port_sequence
0x008000 = (47)disable_cardholder_actualType_avc
0x010000 = (48)accept_invalid_pq_instance_id
0x020000 = KERNEL:apply_port_remapping = (18)apply_port_remapping (parameter is matched against value, rtk_switch_phyPortId_get called)
0x040000 = (50)me_table_sort_by_classId
0x080000 = (51)treat_cir_of_traffic_descriptor, (57)force_meterType_of_trafficDesc (parameter possible values 0, 1, 2)
0x100000 = KERNEL:report_tcont_number = (19)report_tcont_number (parameter is stored somewhere)
SFU firmware adds the following additional features:
0 BDP (OMCI_CUSTOM_BDP):
0x100 = (19)cf_sfu_report_veip
1 RDP (OMCI_CUSTOM_RDP):
0x04 = (24)ignore_conn_uniNode_check
default values for SFU firmware:
220304:
OMCI_CUSTOM_BDP = 0x108 (force_veip_rule_to_sfu + cf_gen_vtfd_rule/cf_check_vtfd_mode)
OMCI_CUSTOM_RDP = 0x4 (ignore_conn_uniNode_check)
OMCI_CUSTOM_MCAST = 0x0 (none)
OMCI_CUSTOM_ME = 0x10000 (accept_invalid_pq_instance_id)
all others:
OMCI_CUSTOM_BDP = 0x102 (force_veip_rule_to_sfu + ignore_dsPbit)
OMCI_CUSTOM_RDP = 0x4 (ignore_conn_uniNode_check)
OMCI_CUSTOM_MCAST = 0x0 (none)
OMCI_CUSTOM_ME = 0x10000 (accept_invalid_pq_instance_id)
default values for HGU firmware:
210702:
OMCI_CUSTOM_BDP = 0x88 (omci_ingoreExtVlanDefaultDrop + cf_gen_vtfd_rule/cf_check_vtfd_mode)
OMCI_CUSTOM_RDP = 0x0 (none)
OMCI_CUSTOM_MCAST = 0x0 (none)
OMCI_CUSTOM_ME = 0x8000 (disable_cardholder_actualType_avc)
all others:
OMCI_CUSTOM_BDP = 0x88 (omci_ingoreExtVlanDefaultDrop + cf_gen_vtfd_rule/cf_check_vtfd_mode)
OMCI_CUSTOM_RDP = 0x0 (none)
OMCI_CUSTOM_MCAST = 0x0 (none)
OMCI_CUSTOM_ME = 0x8040 (disable_cardholder_actualType_avc + cf_me_65529...)
default parameters in /etc/omci_custom_opt.conf:
0 00000080 3
3 00100000 c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment