/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/netfilter/ |
H A D | ipt_LOG.c | 41 ntohs(iph->tot_len), iph->tos & IPTOS_TOS_MASK, 42 iph->tos & IPTOS_PREC_MASK, iph->ttl, ntohs(iph->id)); 45 if (ntohs(iph->frag_off) & IP_CE) 47 if (ntohs(iph->frag_off) & IP_DF) 49 if (ntohs(iph->frag_off) & IP_MF) 53 if (ntohs(iph->frag_off) & IP_OFFSET) 54 printk("FRAG:%u ", ntohs(iph->frag_off) & IP_OFFSET); 74 if (ntohs(iph->frag_off) & IP_OFFSET) 85 ntohs(tcph->source), ntohs(tcp [all...] |
H A D | ip_nat_proto_tcp.c | 24 return ntohs(port) >= ntohs(min->tcp.port) 25 && ntohs(port) <= ntohs(max->tcp.port); 49 if (ntohs(*portptr) < 1024) { 51 if (ntohs(*portptr)<512) { 63 min = ntohs(range->min.tcp.port); 64 range_size = ntohs(range->max.tcp.port) - min + 1; 117 ntohs(match->src.u.tcp.port)); 122 ntohs(matc [all...] |
H A D | ip_nat_proto_udp.c | 25 return ntohs(port) >= ntohs(min->udp.port) 26 && ntohs(port) <= ntohs(max->udp.port); 49 if (ntohs(*portptr) < 1024) { 51 if (ntohs(*portptr)<512) { 63 min = ntohs(range->min.udp.port); 64 range_size = ntohs(range->max.udp.port) - min + 1; 110 ntohs(match->src.u.udp.port)); 115 ntohs(matc [all...] |
H A D | ip_nat_starcraft.c | 81 NIPQUAD(iph->saddr), ntohs(tcph->source), 82 NIPQUAD(iph->daddr), ntohs(tcph->dest), 166 printk("POST: %x %x\n", ntohs(udph->source), (unsigned int)(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip)); 168 if (ntohs(udph->source)==BAT_PORT) 176 NIPQUAD((*pskb)->nh.iph->saddr), ntohs(udph->source), 177 NIPQUAD((*pskb)->nh.iph->daddr), ntohs(udph->dest), 181 printk("PRE: %x %x %x\n", ntohs(udph->dest), (unsigned int) iph->daddr, orig->src.ip); 183 if (ntohs(udph->dest)>=10000&&ntohs(udph->dest)<=10253) 185 printk("redirect ip to %x:6112\n", ntohs(udp [all...] |
H A D | ip_nat_proto_icmp.c | 67 ntohs(match->src.u.icmp.id)); 71 ntohs(match->dst.u.icmp.type)); 75 ntohs(match->dst.u.icmp.code)); 85 ntohs(range->min.icmp.id), 86 ntohs(range->max.icmp.id));
|
H A D | ipt_unclean.c | 227 if (ntohs(udph->len) != datalen) { 229 ntohs(udph->len), datalen); 234 if (ntohs(udph->len) < datalen) { 236 ntohs(udph->len), datalen); 242 if (ntohs(udph->len) <= datalen) { 244 ntohs(udph->len), datalen); 410 offset = ntohs(iph->frag_off) & IP_OFFSET; 462 if ((ntohs(iph->frag_off) & IP_MF) 463 && (ntohs(iph->tot_len) % 8) != 0) { 464 limpk("Truncated fragment %u long.\n", ntohs(ip [all...] |
H A D | ip_conntrack_pptp.c | 178 exp.tuple.src.u.gre.key = htonl(ntohs(peer_callid)); 180 exp.tuple.dst.u.gre.key = htonl(ntohs(callid)); 197 exp.help.exp_pptp_info.pac_call_id = ntohs(callid); 198 exp.help.exp_pptp_info.pns_call_id = ntohs(peer_callid); 221 exp.tuple.src.u.gre.key = htonl(ntohs(callid)); 223 exp.tuple.dst.u.gre.key = htonl(ntohs(peer_callid)); 264 msg = ntohs(ctlh->messageType); 313 info->pac_call_id = ntohs(*cid); 317 strMName[msg], ntohs(*pcid)); 322 ntohs(*ci [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/netfilter.noQoS/ |
H A D | ipt_LOG.c | 41 ntohs(iph->tot_len), iph->tos & IPTOS_TOS_MASK, 42 iph->tos & IPTOS_PREC_MASK, iph->ttl, ntohs(iph->id)); 45 if (ntohs(iph->frag_off) & IP_CE) 47 if (ntohs(iph->frag_off) & IP_DF) 49 if (ntohs(iph->frag_off) & IP_MF) 53 if (ntohs(iph->frag_off) & IP_OFFSET) 54 printk("FRAG:%u ", ntohs(iph->frag_off) & IP_OFFSET); 74 if (ntohs(iph->frag_off) & IP_OFFSET) 85 ntohs(tcph->source), ntohs(tcp [all...] |
H A D | ip_nat_proto_tcp.c | 24 return ntohs(port) >= ntohs(min->tcp.port) 25 && ntohs(port) <= ntohs(max->tcp.port); 49 if (ntohs(*portptr) < 1024) { 51 if (ntohs(*portptr)<512) { 63 min = ntohs(range->min.tcp.port); 64 range_size = ntohs(range->max.tcp.port) - min + 1; 117 ntohs(match->src.u.tcp.port)); 122 ntohs(matc [all...] |
H A D | ip_nat_proto_udp.c | 25 return ntohs(port) >= ntohs(min->udp.port) 26 && ntohs(port) <= ntohs(max->udp.port); 49 if (ntohs(*portptr) < 1024) { 51 if (ntohs(*portptr)<512) { 63 min = ntohs(range->min.udp.port); 64 range_size = ntohs(range->max.udp.port) - min + 1; 110 ntohs(match->src.u.udp.port)); 115 ntohs(matc [all...] |
H A D | ip_conntrack_pptp.c | 126 exp.tuple.src.u.gre.key = htonl(ntohs(peer_callid)); 128 exp.tuple.dst.u.gre.key = htonl(ntohs(callid)); 145 exp.help.exp_pptp_info.pac_call_id = ntohs(callid); 146 exp.help.exp_pptp_info.pns_call_id = ntohs(peer_callid); 180 msg = ntohs(ctlh->messageType); 229 info->pac_call_id = ntohs(*cid); 233 strMName[msg], ntohs(*pcid)); 238 ntohs(*cid), ntohs(*pcid)); 253 DEBUGP("%s, PCID=%X\n", strMName[msg], ntohs(*pci [all...] |
H A D | ip_nat_proto_icmp.c | 67 ntohs(match->src.u.icmp.id)); 71 ntohs(match->dst.u.icmp.type)); 75 ntohs(match->dst.u.icmp.code)); 85 ntohs(range->min.icmp.id), 86 ntohs(range->max.icmp.id));
|
H A D | ipt_unclean.c | 227 if (ntohs(udph->len) != datalen) { 229 ntohs(udph->len), datalen); 234 if (ntohs(udph->len) < datalen) { 236 ntohs(udph->len), datalen); 242 if (ntohs(udph->len) <= datalen) { 244 ntohs(udph->len), datalen); 410 offset = ntohs(iph->frag_off) & IP_OFFSET; 462 if ((ntohs(iph->frag_off) & IP_MF) 463 && (ntohs(iph->tot_len) % 8) != 0) { 464 limpk("Truncated fragment %u long.\n", ntohs(ip [all...] |
/asus-wl-520gu-7.0.1.45/src/router/iptables/extensions/ |
H A D | libipt_autofw.c | 149 printf("dpt:%hu", ntohs(info->dport[0])); 150 if (ntohs(info->dport[1]) > ntohs(info->dport[0])) 151 printf("-%hu", ntohs(info->dport[1])); 153 printf("to:%hu", ntohs(info->to[0])); 154 if (ntohs(info->to[1]) > ntohs(info->to[0])) 155 printf("-%hu", ntohs(info->to[1])); 170 printf("--related-dport %hu-%hu ", ntohs(info->dport[0]), ntohs(inf [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips/galileo-boards/ev64120/compressed/ |
H A D | osdep.h | 15 #define ntohs(x) (x) macro
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv6/netfilter/ |
H A D | ip6t_LOG.c | 25 ntohs((addr).s6_addr16[0]), \ 26 ntohs((addr).s6_addr16[1]), \ 27 ntohs((addr).s6_addr16[2]), \ 28 ntohs((addr).s6_addr16[3]), \ 29 ntohs((addr).s6_addr16[4]), \ 30 ntohs((addr).s6_addr16[5]), \ 31 ntohs((addr).s6_addr16[6]), \ 32 ntohs((addr).s6_addr16[7]) 89 ntohs(ipv6h->payload_len) + sizeof(struct ipv6hdr), 108 printk("FRAG:%u ", ntohs(fhd [all...] |
/asus-wl-520gu-7.0.1.45/src/router/netconf/ |
H A D | main.c | 71 ntohs(fw->match.src.ports[0])); 73 printf("-%d", ntohs(fw->match.src.ports[1])); 90 ntohs(fw->match.dst.ports[0])); 92 printf("-%d", ntohs(fw->match.dst.ports[1])); 156 printf(":%d", ntohs(nat->ports[0])); 158 printf("-%d", ntohs(nat->ports[1])); 170 printf("dpt:%hu", ntohs(app->dport[0])); 171 if (ntohs(app->dport[1]) > ntohs(app->dport[0])) 172 printf("-%hu", ntohs(ap [all...] |
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/net/ |
H A D | dsfield.h | 23 return ntohs(*(__u16 *) ipv6h) >> 4; 30 __u32 check = ntohs(iph->check); 48 tmp = ntohs(*(__u16 *) ipv6h);
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/net/ |
H A D | dsfield.h | 23 return ntohs(*(__u16 *) ipv6h) >> 4; 30 __u32 check = ntohs(iph->check); 48 tmp = ntohs(*(__u16 *) ipv6h);
|
/asus-wl-520gu-7.0.1.45/src/router/rp-pppoe/ |
H A D | debug.c | 62 int len = ntohs(packet->length); 84 (int) ntohs(packet->session), 103 dumpHex(fp, packet->payload, ntohs(packet->length));
|
H A D | pppoe-sniff.c | 202 if (ntohs(pkt.length) + HDR_SIZE > size) continue; 210 DiscType = ntohs(pkt.ethHdr.h_proto); 217 if (ntohs(pkt.length) + HDR_SIZE > size) continue; 222 SessType = ntohs(pkt.ethHdr.h_proto);
|
H A D | pppoe-server.c | 373 CHECK_ROOM(cursor, pado.payload, ntohs(relayId.length) + TAG_HDR_SIZE); 374 memcpy(cursor, &relayId, ntohs(relayId.length) + TAG_HDR_SIZE); 375 cursor += ntohs(relayId.length) + TAG_HDR_SIZE; 376 plen += ntohs(relayId.length) + TAG_HDR_SIZE; 379 CHECK_ROOM(cursor, pado.payload, ntohs(hostUniq.length)+TAG_HDR_SIZE); 380 memcpy(cursor, &hostUniq, ntohs(hostUniq.length) + TAG_HDR_SIZE); 381 cursor += ntohs(hostUniq.length) + TAG_HDR_SIZE; 382 plen += ntohs(hostUniq.length) + TAG_HDR_SIZE; 454 syslog(LOG_ERR, "Received PADR packet asking for unsupported service %.*s", (int) ntohs(requestedService.length), requestedService.payload); 516 memcpy(cursor, &relayId, ntohs(relayI [all...] |
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/byteorder/ |
H A D | generic.h | 46 * ntohs(__u16 x) 141 #undef ntohs macro 156 extern unsigned short int ntohs(unsigned short int); 175 #define ntohs(x) ___ntohs(x) macro
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/byteorder/ |
H A D | generic.h | 46 * ntohs(__u16 x) 141 #undef ntohs macro 156 extern unsigned short int ntohs(unsigned short int); 175 #define ntohs(x) ___ntohs(x) macro
|
/asus-wl-520gu-7.0.1.45/src/router/pppd/pppd/plugins/rp-pppoe/ |
H A D | common.c | 48 UINT16_t len = ntohs(packet->length); 103 UINT16_t len = ntohs(packet->length); 281 len = (int) ntohs(packet->length); 449 ntohs(conn->cookie.length) + TAG_HDR_SIZE); 450 memcpy(cursor, &conn->cookie, ntohs(conn->cookie.length) + TAG_HDR_SIZE); 451 cursor += ntohs(conn->cookie.length) + TAG_HDR_SIZE; 452 plen += ntohs(conn->cookie.length) + TAG_HDR_SIZE; 457 ntohs(conn->relayId.length) + TAG_HDR_SIZE); 458 memcpy(cursor, &conn->relayId, ntohs(conn->relayId.length) + TAG_HDR_SIZE); 459 cursor += ntohs(con [all...] |