Searched refs:ntohs (Results 1 - 25 of 530) sorted by relevance

1234567891011>>

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv6/netfilter/
H A Dip6t_frag.c68 DEBUGP("OFFSET %04X ", ntohs(fh->frag_off) & ~0x7);
69 DEBUGP("RES %02X %04X", fh->reserved, ntohs(fh->frag_off) & 0x6);
80 ntohs(fh->frag_off) & 0x6,
82 && (fh->reserved || (ntohs(fh->frag_off) & 0x06))));
85 ntohs(fh->frag_off) & ~0x7,
87 && (ntohs(fh->frag_off) & ~0x7)));
90 ntohs(fh->frag_off) & IP6_MF,
92 && !((ntohs(fh->frag_off) & IP6_MF))));
95 ntohs(fh->frag_off) & IP6_MF,
97 && (ntohs(f
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/netfilter/
H A Dnf_nat_proto_gre.c55 return ntohs(key) >= ntohs(min->gre.key) &&
56 ntohs(key) <= ntohs(max->gre.key);
85 min = ntohs(range->min.gre.key);
86 range_size = ntohs(range->max.gre.key) - min + 1;
130 DEBUGP("call_id -> 0x%04x\n", ntohs(tuple->dst.u.gre.key));
H A Dnf_nat_proto_icmp.c26 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) &&
27 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id);
40 range_size = ntohs(range->max.icmp.id) - ntohs(range->min.icmp.id) + 1;
46 tuple->src.u.icmp.id = htons(ntohs(range->min.icmp.id) +
H A Dnf_nat_proto_tcp.c35 return ntohs(port) >= ntohs(min->tcp.port) &&
36 ntohs(port) <= ntohs(max->tcp.port);
61 if (ntohs(*portptr) < 1024) {
63 if (ntohs(*portptr)<512) {
75 min = ntohs(range->min.tcp.port);
76 range_size = ntohs(range->max.tcp.port) - min + 1;
H A Dnf_nat_proto_udp.c34 return ntohs(port) >= ntohs(min->udp.port) &&
35 ntohs(port) <= ntohs(max->udp.port);
59 if (ntohs(*portptr) < 1024) {
61 if (ntohs(*portptr)<512) {
73 min = ntohs(range->min.udp.port);
74 range_size = ntohs(range->max.udp.port) - min + 1;
H A Dipt_LOG.c62 ntohs(ih->tot_len), ih->tos & IPTOS_TOS_MASK,
63 ih->tos & IPTOS_PREC_MASK, ih->ttl, ntohs(ih->id));
66 if (ntohs(ih->frag_off) & IP_CE)
68 if (ntohs(ih->frag_off) & IP_DF)
70 if (ntohs(ih->frag_off) & IP_MF)
74 if (ntohs(ih->frag_off) & IP_OFFSET)
75 printk("FRAG:%u ", ntohs(ih->frag_off) & IP_OFFSET);
104 if (ntohs(ih->frag_off) & IP_OFFSET)
118 ntohs(th->source), ntohs(t
[all...]
H A Dnf_nat_h323.c172 NIPQUAD(ip), ntohs(port),
174 ntohs(ct->tuplehash[!dir].tuple.dst.u.udp.
217 htons(ntohs(info->rtp_port[i][dir]) + 1);
233 for (nated_port = ntohs(rtp_exp->tuple.dst.u.udp.port);
268 ntohs(rtp_exp->tuple.src.u.udp.port),
270 ntohs(rtp_exp->tuple.dst.u.udp.port));
273 ntohs(rtcp_exp->tuple.src.u.udp.port),
275 ntohs(rtcp_exp->tuple.dst.u.udp.port));
288 u_int16_t nated_port = ntohs(port);
317 NIPQUAD(exp->tuple.src.ip), ntohs(ex
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/netconf/
H A Dmain.c77 ntohs(fw->match.src.ports[0]));
79 printf("-%d", ntohs(fw->match.src.ports[1]));
96 ntohs(fw->match.dst.ports[0]));
98 printf("-%d", ntohs(fw->match.dst.ports[1]));
162 printf(":%d", ntohs(nat->ports[0]));
164 printf("-%d", ntohs(nat->ports[1]));
176 printf("dpt:%hu", ntohs(app->dport[0]));
177 if (ntohs(app->dport[1]) > ntohs(app->dport[0]))
178 printf("-%hu", ntohs(ap
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/curl-7.23.1/source/lib/
H A Dwarnless.h64 # undef ntohs macro
65 # define ntohs(a) curlx_ntohs((a)) macro
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/net/
H A Ddsfield.h23 return ntohs(*(__be16 *) ipv6h) >> 4;
30 __u32 check = ntohs((__force __be16)iph->check);
48 tmp = ntohs(*(__be16 *) ipv6h);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/sys/netatalk/
H A Dddp_output.c148 ntohs( net ) >= ntohs( aa->aa_firstnet ) &&
149 ntohs( net ) <= ntohs( aa->aa_lastnet )) {
198 if ( ntohs( satosat( &ro->ro_dst )->sat_addr.s_net ) >=
199 ntohs( aa->aa_firstnet ) &&
200 ntohs( satosat( &ro->ro_dst )->sat_addr.s_net ) <=
201 ntohs( aa->aa_lastnet )) {
212 if ( ntohs( satosat( &ro->ro_dst )->sat_addr.s_net ) >=
213 ntohs( a
[all...]
H A Dendian.h106 #define ntohs(x) (x) macro
113 #define ntohs(x) nuxi_s(x) macro
120 unsigned short ntohs(), htons();
H A Dat_control.c72 return( ntohs( aa->aa_firstnet ) <= ntohs( sat2->sat_addr.s_net ) &&
73 ntohs( aa->aa_lastnet ) >= ntohs( sat2->sat_addr.s_net ));
326 for ( net = ntohs( aa->aa_firstnet );
327 net <= ntohs( aa->aa_lastnet ); net++ ) {
360 nnets = ntohs( nr.nr_lastnet ) - ntohs( nr.nr_firstnet ) + 1;
386 net = ntohs( nr.nr_firstnet ) + time.tv_sec % ( nnets - 1 );
388 net = ntohs( n
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/sys/netatalk/
H A Dddp_output.c148 ntohs( net ) >= ntohs( aa->aa_firstnet ) &&
149 ntohs( net ) <= ntohs( aa->aa_lastnet )) {
198 if ( ntohs( satosat( &ro->ro_dst )->sat_addr.s_net ) >=
199 ntohs( aa->aa_firstnet ) &&
200 ntohs( satosat( &ro->ro_dst )->sat_addr.s_net ) <=
201 ntohs( aa->aa_lastnet )) {
212 if ( ntohs( satosat( &ro->ro_dst )->sat_addr.s_net ) >=
213 ntohs( a
[all...]
H A Dendian.h106 #define ntohs(x) (x) macro
113 #define ntohs(x) nuxi_s(x) macro
120 unsigned short ntohs(), htons();
H A Dat_control.c72 return( ntohs( aa->aa_firstnet ) <= ntohs( sat2->sat_addr.s_net ) &&
73 ntohs( aa->aa_lastnet ) >= ntohs( sat2->sat_addr.s_net ));
326 for ( net = ntohs( aa->aa_firstnet );
327 net <= ntohs( aa->aa_lastnet ); net++ ) {
360 nnets = ntohs( nr.nr_lastnet ) - ntohs( nr.nr_firstnet ) + 1;
386 net = ntohs( nr.nr_firstnet ) + time.tv_sec % ( nnets - 1 );
388 net = ntohs( n
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/etc/atalkd/
H A Dzip.c265 ntohs( from->sat_addr.s_net ), from->sat_addr.s_node );
327 ntohs( firstnet ), ntohs( from->sat_addr.s_net ),
336 ntohs( rtmp->rt_firstnet ),
337 ntohs( rtmp->rt_lastnet ),
338 ntohs( from->sat_addr.s_net ),
348 ntohs( rtmp->rt_firstnet ),
349 ntohs( rtmp->rt_lastnet ),
350 ntohs( from->sat_addr.s_net ),
382 ntohs( fro
[all...]
H A Drtmp.c120 ntohs( rh->rh_net ),
121 ntohs( iface->i_addr.sat_addr.s_net ));
143 ntohs( iface->i_addr.sat_addr.s_net ),
257 LOG(log_info, logtype_atalkd, "rtmp_free: %u-%u", ntohs(rtmp->rt_firstnet),
258 ntohs(rtmp->rt_lastnet));
296 LOG(log_info, logtype_atalkd, "rtmp_replace %u-%u", ntohs(replace->rt_firstnet),
297 ntohs(replace->rt_lastnet));
352 if (( ntohs( r->rt_firstnet ) <= ntohs( rtmp->rt_firstnet ) &&
353 ntohs(
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/etc/atalkd/
H A Dzip.c265 ntohs( from->sat_addr.s_net ), from->sat_addr.s_node );
327 ntohs( firstnet ), ntohs( from->sat_addr.s_net ),
336 ntohs( rtmp->rt_firstnet ),
337 ntohs( rtmp->rt_lastnet ),
338 ntohs( from->sat_addr.s_net ),
348 ntohs( rtmp->rt_firstnet ),
349 ntohs( rtmp->rt_lastnet ),
350 ntohs( from->sat_addr.s_net ),
382 ntohs( fro
[all...]
H A Drtmp.c120 ntohs( rh->rh_net ),
121 ntohs( iface->i_addr.sat_addr.s_net ));
143 ntohs( iface->i_addr.sat_addr.s_net ),
257 LOG(log_info, logtype_atalkd, "rtmp_free: %u-%u", ntohs(rtmp->rt_firstnet),
258 ntohs(rtmp->rt_lastnet));
296 LOG(log_info, logtype_atalkd, "rtmp_replace %u-%u", ntohs(replace->rt_firstnet),
297 ntohs(replace->rt_lastnet));
352 if (( ntohs( r->rt_firstnet ) <= ntohs( rtmp->rt_firstnet ) &&
353 ntohs(
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/sys/solaris/
H A Dif.c193 if ( ntohs(aid->aid_sat.sat_addr.s_net) >
194 ntohs(aid->aid_nr.nr_lastnet) ) {
198 htons(ntohs(aid->aid_sat.sat_addr.s_net) + 1);
268 sat->sat_addr.s_net = htons(ntohs(nr.nr_firstnet) + time %
269 (ntohs(nr.nr_lastnet) - ntohs(nr.nr_firstnet)));
272 if ( ntohs( sat->sat_addr.s_net ) < ntohs( nr.nr_firstnet ) ||
273 ntohs( sat->sat_addr.s_net ) > ntohs( n
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/sys/solaris/
H A Dif.c193 if ( ntohs(aid->aid_sat.sat_addr.s_net) >
194 ntohs(aid->aid_nr.nr_lastnet) ) {
198 htons(ntohs(aid->aid_sat.sat_addr.s_net) + 1);
268 sat->sat_addr.s_net = htons(ntohs(nr.nr_firstnet) + time %
269 (ntohs(nr.nr_lastnet) - ntohs(nr.nr_firstnet)));
272 if ( ntohs( sat->sat_addr.s_net ) < ntohs( nr.nr_firstnet ) ||
273 ntohs( sat->sat_addr.s_net ) > ntohs( n
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/dccp/
H A Dprobe.c90 if (port == 0 || ntohs(inet->dport) == port ||
91 ntohs(inet->sport) == port) {
95 NIPQUAD(inet->saddr), ntohs(inet->sport),
96 NIPQUAD(inet->daddr), ntohs(inet->dport), size,
103 NIPQUAD(inet->saddr), ntohs(inet->sport),
104 NIPQUAD(inet->daddr), ntohs(inet->dport), size);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/bridge/netfilter/
H A Debt_vlan.c71 TCI = ntohs(fp->h_vlan_TCI);
110 (unsigned short) ntohs(e->ethproto));
163 if ((unsigned short) ntohs(info->encap) < ETH_ZLEN) {
166 ntohs(info->encap));
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/tokenring/
H A Dlanstreamer.c544 ntohs(readw(streamer_mmio + LAPDINC)));
552 ntohs(readw(streamer_mmio + LAPD)));
558 uaa_addr = ntohs(readw(streamer_mmio + LAPDINC));
560 streamer_priv->streamer_addr_table_addr = ntohs(readw(streamer_mmio + LAPDINC));
561 streamer_priv->streamer_parms_addr = ntohs(readw(streamer_mmio + LAPDINC));
573 addr=ntohs(readw(streamer_mmio+LAPDINC));
661 printk("%x:", ntohs(readw(streamer_mmio + LAPDINC)));
691 ntohs(readw(streamer_mmio + LAPDINC)));
699 srb_word = ntohs(readw(streamer_mmio + LAPD)) >> 8;
716 error_code = ntohs(read
[all...]

Completed in 235 milliseconds

1234567891011>>