• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/miniupnpd/

Lines Matching defs:protocol

55 proto_atoi(const char * protocol)
58 if(strcmp(protocol, "UDP") == 0)
236 syslog(LOG_ERR, "Failed to redirect %hu -> %s:%hu protocol %s",
252 * protocol should be the string "TCP" or "UDP"
261 const char * protocol, const char * desc,
270 proto = proto_atoi(protocol);
279 "%hu->%s:%hu %s", eport, iaddr, iport, protocol);
301 syslog(LOG_INFO, "port %hu protocol %s already redirected to %s:%hu",
302 eport, protocol, iaddr_old, iport_old);
307 syslog(LOG_INFO, "port %hu protocol %s already in use",
308 eport, protocol);
314 syslog(LOG_INFO, "redirecting port %hu to %s:%hu protocol %s for: %s",
315 eport, iaddr, iport, protocol, desc);
329 /*syslog(LOG_INFO, "redirecting port %hu to %s:%hu protocol %s for: %s",
330 eport, iaddr, iport, protocol, desc); */
339 /* syslog(LOG_INFO, "creating pass rule to %s:%hu protocol %s for: %s",
340 iaddr, iport, protocol, desc);*/
364 upnp_get_redirection_infos(unsigned short eport, const char * protocol,
379 r = get_redirect_rule(ext_if_name, eport, proto_atoi(protocol),
395 unsigned short * eport, char * protocol,
423 memcpy(protocol, "TCP", 4);
425 memcpy(protocol, "UDP", 4);
454 upnp_delete_redirection(unsigned short eport, const char * protocol)
456 syslog(LOG_INFO, "removing redirect rule port %hu %s", eport, protocol);
457 return _upnp_delete_redir(eport, proto_atoi(protocol));
467 char protocol[4], iaddr[32], desc[64], rhost[32];
470 protocol[0] = '\0'; iaddr[0] = '\0'; desc[0] = '\0';
471 r = upnp_get_redirection_infos_by_index(n, &eport, protocol, &iport,
617 const char * protocol,
621 proto = proto_atoi(protocol);