Searched refs:ntohs (Results 51 - 75 of 298) sorted by relevance

1234567891011>>

/asus-wl-520gu-7.0.1.45/src/router/iptables/extensions/
H A Dlibipt_REDIRECT.c126 printf("%hu", ntohs(r->min.tcp.port));
128 printf("-%hu", ntohs(r->max.tcp.port));
143 printf("%hu", ntohs(r->min.tcp.port));
145 printf("-%hu", ntohs(r->max.tcp.port));
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-cris/
H A Dchecksum.h66 : "0" (sum), "r" (daddr), "r" (saddr), "r" ((ntohs(len) << 16) + (proto << 8)));
/asus-wl-520gu-7.0.1.45/src/router/pppd/pppd/plugins/rp-pppoe/
H A Ddiscovery.c350 if (ntohs(packet.length) + HDR_SIZE > len) {
352 (unsigned int) ntohs(packet.length));
463 ntohs(conn->cookie.length) + TAG_HDR_SIZE);
464 memcpy(cursor, &conn->cookie, ntohs(conn->cookie.length) + TAG_HDR_SIZE);
465 cursor += ntohs(conn->cookie.length) + TAG_HDR_SIZE;
466 plen += ntohs(conn->cookie.length) + TAG_HDR_SIZE;
471 ntohs(conn->relayId.length) + TAG_HDR_SIZE);
472 memcpy(cursor, &conn->relayId, ntohs(conn->relayId.length) + TAG_HDR_SIZE);
473 cursor += ntohs(conn->relayId.length) + TAG_HDR_SIZE;
474 plen += ntohs(con
[all...]
/asus-wl-520gu-7.0.1.45/src/router/pppd.mppe/pppd/plugins/rp-pppoe/
H A Ddiscovery.c348 if (ntohs(packet.length) + HDR_SIZE > len) {
350 (unsigned int) ntohs(packet.length));
461 ntohs(conn->cookie.length) + TAG_HDR_SIZE);
462 memcpy(cursor, &conn->cookie, ntohs(conn->cookie.length) + TAG_HDR_SIZE);
463 cursor += ntohs(conn->cookie.length) + TAG_HDR_SIZE;
464 plen += ntohs(conn->cookie.length) + TAG_HDR_SIZE;
469 ntohs(conn->relayId.length) + TAG_HDR_SIZE);
470 memcpy(cursor, &conn->relayId, ntohs(conn->relayId.length) + TAG_HDR_SIZE);
471 cursor += ntohs(conn->relayId.length) + TAG_HDR_SIZE;
472 plen += ntohs(con
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/netfilter/
H A Dip_conntrack_proto_udp.c38 ntohs(tuple->src.u.udp.port),
39 ntohs(tuple->dst.u.udp.port));
H A Dipt_mport.c74 && ports_match(minfo, ntohs(udp->source), ntohs(udp->dest));
H A Dipt_multiport.c59 ntohs(udp->source), ntohs(udp->dest));
H A Dip_nat_tftp.c69 switch (ntohs(tftph->opcode)) {
111 NIPQUAD((*pskb)->nh.iph->saddr), ntohs(udph->source),
112 NIPQUAD((*pskb)->nh.iph->daddr), ntohs(udph->dest),
122 NIPQUAD((*pskb)->nh.iph->saddr), ntohs(udph->source),
123 NIPQUAD((*pskb)->nh.iph->daddr), ntohs(udph->dest),
124 NIPQUAD(orig->src.ip), ntohs(orig->src.u.udp.port));
H A Dip_nat_pptp.c165 switch (msg = ntohs(ctlh->messageType)) {
181 ct_pptp_info->pns_call_id = ntohs(new_callid);
209 ntohs(*cid), ntohs(new_callid));
248 switch (msg = ntohs(ctlh->messageType)) {
342 ntohs(*pcid), ntohs(new_pcid));
350 ntohs(*cid), ntohs(new_cid));
403 if (ntohs(pptp
[all...]
H A Dipt_TCPMSS.c119 ntohs(tcph->source),
121 ntohs(tcph->dest),
169 newtotlen = htons(ntohs(iph->tot_len) + TCPOLEN_MSS);
177 ntohs(tcph->source),
179 ntohs(tcph->dest),
H A Dip_conntrack_h323.c52 NIPQUAD(iph->saddr), ntohs(tcph->source),
53 NIPQUAD(iph->daddr), ntohs(tcph->dest));
92 NIPQUAD(iph->saddr), ntohs(data_port));
167 NIPQUAD(iph->saddr), ntohs(tcph->source),
168 NIPQUAD(iph->daddr), ntohs(tcph->dest));
245 NIPQUAD(iph->saddr), ntohs(data_port));
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/netfilter.noQoS/
H A Dip_conntrack_proto_udp.c36 ntohs(tuple->src.u.udp.port),
37 ntohs(tuple->dst.u.udp.port));
H A Dipt_mport.c74 && ports_match(minfo, ntohs(udp->source), ntohs(udp->dest));
H A Dipt_multiport.c59 ntohs(udp->source), ntohs(udp->dest));
H A Dip_nat_tftp.c69 switch (ntohs(tftph->opcode)) {
111 NIPQUAD((*pskb)->nh.iph->saddr), ntohs(udph->source),
112 NIPQUAD((*pskb)->nh.iph->daddr), ntohs(udph->dest),
122 NIPQUAD((*pskb)->nh.iph->saddr), ntohs(udph->source),
123 NIPQUAD((*pskb)->nh.iph->daddr), ntohs(udph->dest),
124 NIPQUAD(orig->src.ip), ntohs(orig->src.u.udp.port));
H A Dip_nat_pptp.c149 switch (msg = ntohs(ctlh->messageType)) {
158 ct_pptp_info->pns_call_id = ntohs(new_callid);
190 ntohs(*cid), ntohs(new_callid));
222 switch (msg = ntohs(ctlh->messageType)) {
237 //ct_pptp_info->pac_call_id = ntohs(tcph->source);
310 ntohs(*pcid), ntohs(new_pcid));
318 ntohs(*cid), ntohs(new_ci
[all...]
H A Dipt_TCPMSS.c119 ntohs(tcph->source),
121 ntohs(tcph->dest),
169 newtotlen = htons(ntohs(iph->tot_len) + TCPOLEN_MSS);
177 ntohs(tcph->source),
179 ntohs(tcph->dest),
H A Dip_conntrack_h323.c52 NIPQUAD(iph->saddr), ntohs(tcph->source),
53 NIPQUAD(iph->daddr), ntohs(tcph->dest));
92 NIPQUAD(iph->saddr), ntohs(data_port));
167 NIPQUAD(iph->saddr), ntohs(tcph->source),
168 NIPQUAD(iph->daddr), ntohs(tcph->dest));
245 NIPQUAD(iph->saddr), ntohs(data_port));
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv6/netfilter/
H A Dip6t_multiport.c60 ntohs(udp->source), ntohs(udp->dest));
/asus-wl-520gu-7.0.1.45/src/router/shared/
H A Dnvparse.c63 if (ntohs(app->match.dst.ports[0]) > ntohs(app->match.dst.ports[1]))
71 if (ntohs(app->dport[0]) > ntohs(app->dport[1]))
75 if (ntohs(app->to[0]) > ntohs(app->to[1]))
79 if ((ntohs(app->dport[1]) - ntohs(app->dport[0])) !=
80 (ntohs(app->to[1]) - ntohs(ap
[all...]
/asus-wl-520gu-7.0.1.45/src/router/shared.asus/
H A Dnvparse.c63 if (ntohs(app->match.dst.ports[0]) > ntohs(app->match.dst.ports[1]))
71 if (ntohs(app->dport[0]) > ntohs(app->dport[1]))
75 if (ntohs(app->to[0]) > ntohs(app->to[1]))
79 if ((ntohs(app->dport[1]) - ntohs(app->dport[0])) !=
80 (ntohs(app->to[1]) - ntohs(ap
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/net/tokenring/
H A Dlanstreamer.c537 ntohs(readw(streamer_mmio + LAPDINC)));
545 ntohs(readw(streamer_mmio + LAPD)));
551 uaa_addr = ntohs(readw(streamer_mmio + LAPDINC));
553 streamer_priv->streamer_addr_table_addr = ntohs(readw(streamer_mmio + LAPDINC));
554 streamer_priv->streamer_parms_addr = ntohs(readw(streamer_mmio + LAPDINC));
566 addr=ntohs(readw(streamer_mmio+LAPDINC));
654 printk("%x:", ntohs(readw(streamer_mmio + LAPDINC)));
684 ntohs(readw(streamer_mmio + LAPDINC)));
692 srb_word = ntohs(readw(streamer_mmio + LAPD)) >> 8;
709 error_code = ntohs(read
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/net/
H A Dslhc.c257 if (ip->protocol != IPPROTO_TCP || (ntohs(ip->frag_off) & 0x3fff)) {
368 deltaS = ntohs(th->urg_ptr);
378 if((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){
404 ntohs(cs->cs_ip.tot_len) == hlen)
416 deltaS == ntohs(cs->cs_ip.tot_len) - hlen){
423 if(deltaS == ntohs(cs->cs_ip.tot_len) - hlen){
430 deltaS = ntohs(ip->id) - ntohs(cs->cs_ip.id);
440 deltaA = ntohs(t
[all...]
/asus-wl-520gu-7.0.1.45/src/router/ppp/pppd/plugins/pppoe/
H A Dpppoe_relay.c48 newpc = get_con( ntohs(tag->tag_len), tag->tag_data );
56 newpc->key_len = ntohs(p_in->tags[TAG_RELAY_SID]->tag_len);
85 pc = get_con(ntohs(tag->tag_len),tag->tag_data);
133 pc = get_con(ntohs(tag->tag_len),tag->tag_data);
202 pc = get_con(ntohs(tag->tag_len),tag->tag_data);
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/appletalk/
H A Dddp.c260 ntohs(s->protinfo.af_at.src_net),
264 ntohs(s->protinfo.af_at.dest_net),
358 int netrange = ntohs(atif->nets.nr_lastnet) -
359 ntohs(atif->nets.nr_firstnet) + 1;
360 int probe_net = ntohs(atif->address.s_net);
366 probe_net = ntohs(atif->nets.nr_firstnet);
393 if (probe_net > ntohs(atif->nets.nr_lastnet))
394 probe_net = ntohs(atif->nets.nr_firstnet);
406 int netrange = ntohs(atif->nets.nr_lastnet) -
407 ntohs(ati
[all...]

Completed in 135 milliseconds

1234567891011>>