• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/netatalk-2.2.5/etc/atalkd/

Lines Matching defs:rtmp

43 #include "rtmp.h"
51 static int zonecheck(struct rtmptab *rtmp, struct interface *iface)
62 for ( l = rtmp->rt_zt; l; l = l->l_next ) {
76 for ( ztcnt = 0, l = rtmp->rt_zt; l; l = l->l_next, ztcnt++ )
95 struct rtmptab *rtmp = NULL;
144 for ( rtmp = iface->i_rt; rtmp; rtmp = rtmp->rt_inext ) {
145 if ( firstnet == rtmp->rt_firstnet ) {
149 if ( rtmp ) {
153 if ( rtmp == NULL ) {
161 for ( zsz = 0, zcnt = 0, l = rtmp->rt_zt; l; l = l->l_next ) {
189 for ( l = rtmp->rt_zt; l; l = l->l_next, rcnt++ ) {
232 for ( l = rtmp->rt_zt; l; l = l->l_next, rcnt++ ) {
269 rtmp = NULL;
279 if ( rtmp && rtmp->rt_firstnet != firstnet ) {
281 if ( rtmp->rt_gate == NULL &&
282 zonecheck( rtmp, gate->g_iface ) != 0 ) {
286 rtmp->rt_flags &= ~RTMPTAB_ZIPQUERY;
291 rtmp = gate->g_iface->i_rt;
293 for ( rtmp = gate->g_rt; rtmp; rtmp = rtmp->rt_next ) {
294 if ( rtmp->rt_firstnet == firstnet ) {
300 * Update head to this rtmp entry.
302 if ( rtmp != NULL && gate->g_rt != rtmp ) {
304 gate->g_rt = rtmp;
305 rtmp->rt_prev->rt_next = NULL;
322 * We won't find any rtmp entry if the gateway is no longer
325 if ( rtmp == NULL ) {
326 LOG(log_info, logtype_atalkd, "zip skip reply %u from %u.%u (no rtmp)",
331 * no good if rtmp is the interface's route).
333 } else if ( rtmp->rt_iprev == NULL && rtmp->rt_prev != NULL ) {
335 "zip skip reply %u-%u from %u.%u (rtmp not in use)",
336 ntohs( rtmp->rt_firstnet ),
337 ntohs( rtmp->rt_lastnet ),
345 } else if (( rtmp->rt_flags & RTMPTAB_ZIPQUERY ) == 0 ) {
348 ntohs( rtmp->rt_firstnet ),
349 ntohs( rtmp->rt_lastnet ),
353 if (addzone( rtmp, zlen, zname ) < 0) {
357 rtmp->rt_flags |= RTMPTAB_HASZONES;
361 if ( rtmp && rtmp->rt_flags & RTMPTAB_HASZONES ) {
363 if ( rtmp->rt_gate == NULL &&
364 zonecheck( rtmp, gate->g_iface ) != 0 ) {
368 rtmp->rt_flags &= ~RTMPTAB_ZIPQUERY;
398 rtmp = gate->g_iface->i_rt;
400 for ( rtmp = gate->g_rt; rtmp; rtmp = rtmp->rt_next ) {
401 if ( rtmp->rt_firstnet == firstnet ) {
405 if ( rtmp == NULL ) {
406 LOG(log_info, logtype_atalkd, "zip ereply %u from %u.%u (no rtmp)",
411 if ( rtmp->rt_iprev == NULL ) {
413 "zip ereply %u-%u from %u.%u (rtmp not in use)",
414 ntohs( rtmp->rt_firstnet ),
415 ntohs( rtmp->rt_lastnet ),
420 /* update head to *next* rtmp entry */
421 if ( rtmp->rt_next != NULL ) {
423 gate->g_rt = rtmp->rt_next;
424 rtmp->rt_next = NULL;
428 if (( rtmp->rt_flags & RTMPTAB_ZIPQUERY ) == 0 ) {
430 ntohs( rtmp->rt_firstnet ),
431 ntohs( rtmp->rt_lastnet ),
450 if ( firstnet != rtmp->rt_firstnet ) {
466 if (addzone( rtmp, zlen, zname ) < 0) {
472 if ( rtmp ) {
476 for ( n = 0, l = rtmp->rt_zt; l; l = l->l_next, n++ )
479 rtmp->rt_flags |= RTMPTAB_HASZONES;
481 if ( rtmp->rt_gate == NULL &&
482 zonecheck( rtmp, gate->g_iface ) != 0 ) {
486 rtmp->rt_flags &= ~RTMPTAB_ZIPQUERY;