Lines Matching refs:trm
991 get_trf_mgmt_port(char *prefix, int which, netconf_trmgmt_t *trm)
999 memset(trm, 0, sizeof(netconf_trmgmt_t));
1015 trm->match.ipproto = atoi(proto);
1023 trm->match.src.ports[0] = htons(atoi(sport));
1030 trm->match.dst.ports[0] = htons(atoi(dport));
1037 if (trm->match.ipproto == IPPROTO_IP) {
1038 ether_atoe((const char *)macaddr, (unsigned char *)&trm->match.mac);
1046 trm->prio = atoi(prio);
1053 trm->favored = atoi(flags);
1057 trm->match.flags = NETCONF_DISABLED;
1108 set_trf_mgmt_port(char *prefix, int which, const netconf_trmgmt_t *trm)
1119 cur = safe_snprintf(cur, &len, "%d", trm->match.ipproto);
1124 if (trm->match.ipproto == IPPROTO_IP) {
1126 cur = safe_snprintf(cur, &len, ether_etoa((unsigned char *)&trm->match.mac, eastr));
1130 cur = safe_snprintf(cur, &len, "%d", ntohs(trm->match.src.ports[0]));
1134 cur = safe_snprintf(cur, &len, "%d", ntohs(trm->match.dst.ports[0]));
1139 cur = safe_snprintf(cur, &len, "%d", trm->prio);
1143 cur = safe_snprintf(cur, &len, "%d", trm->favored);
1147 if (trm->match.flags & NETCONF_DISABLED)