Searched refs:htons (Results 1 - 25 of 619) sorted by relevance

1234567891011>>

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/l2tpd-0.69/
H A Davpsend.c33 raw[0] = htons (0x8 | MBIT);
34 raw[1] = htons (VENDOR_ID);
36 raw[3] = htons (type);
44 raw[0] = htons (0x8 | MBIT); /* Length and M bit */
45 raw[1] = htons (VENDOR_ID);
46 raw[2] = htons (0x2); /* Value of our AVP */
47 raw[3] = htons (OUR_L2TP_VERSION);
55 raw[0] = htons (0xA | MBIT);
56 raw[1] = htons (VENDOR_ID);
57 raw[2] = htons (
[all...]
H A Dmisc.h49 #ifdef htons
50 #undef htons macro
53 #undef htons macro
55 #define htons(a) SWAPS(a) macro
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/networking/udhcp/
H A Dclientsocket.c44 fd = xsocket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP));
47 sock.sll_protocol = htons(ETH_P_IP);
H A Darpping.c49 s = socket(PF_PACKET, SOCK_PACKET, htons(ETH_P_ARP));
64 arp.h_proto = htons(ETH_P_ARP); /* protocol type (Ethernet) */
65 arp.htype = htons(ARPHRD_ETHER); /* hardware type */
66 arp.ptype = htons(ETH_P_IP); /* protocol type (ARP message) */
69 arp.operation = htons(ARPOP_REQUEST); /* ARP op code */
96 if (arp.operation == htons(ARPOP_REPLY)
H A Dpacket.c68 packet->flags |= htons(BROADCAST_FLAG);
118 fd = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP));
128 dest.sll_protocol = htons(ETH_P_IP);
141 packet.udp.source = htons(source_port);
142 packet.udp.dest = htons(dest_port);
143 packet.udp.len = htons(sizeof(packet.udp) + sizeof(struct dhcpMessage)); /* cheat on the psuedo-header */
148 packet.ip.tot_len = htons(sizeof(struct udp_dhcp_packet));
183 client.sin_port = htons(source_port);
193 client.sin_port = htons(dest_port);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/ipvs/
H A Dip_vs_proto_ah.c55 htons(PORT_ISAKMP),
57 htons(PORT_ISAKMP));
61 htons(PORT_ISAKMP),
63 htons(PORT_ISAKMP));
92 htons(PORT_ISAKMP),
94 htons(PORT_ISAKMP));
98 htons(PORT_ISAKMP),
100 htons(PORT_ISAKMP));
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/net/
H A Dx25device.h14 return htons(ETH_P_X25);
H A Ddsfield.h38 iph->check = (__force __sum16)htons(check);
50 *(__be16 *) ipv6h = htons(tmp);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/libatalk/adouble/
H A Dad_attr.c35 if (fflags & htons(FINDERINFO_INVISIBLE))
36 *attr |= htons(ATTRBIT_INVISIBLE);
38 *attr &= htons(~ATTRBIT_INVISIBLE);
44 if (fflags & htons(FINDERINFO_ISHARED))
45 *attr |= htons(ATTRBIT_MULTIUSER);
47 *attr &= htons(~ATTRBIT_MULTIUSER);
55 *attr |= htons(ad->ad_open_forks);
66 u_int16_t attr = attribute & ~htons(ATTRBIT_DOPEN | ATTRBIT_ROPEN);
86 if (attr & htons(ATTRBIT_INVISIBLE))
87 fflags |= htons(FINDERINFO_INVISIBL
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/libatalk/adouble/
H A Dad_attr.c35 if (fflags & htons(FINDERINFO_INVISIBLE))
36 *attr |= htons(ATTRBIT_INVISIBLE);
38 *attr &= htons(~ATTRBIT_INVISIBLE);
44 if (fflags & htons(FINDERINFO_ISHARED))
45 *attr |= htons(ATTRBIT_MULTIUSER);
47 *attr &= htons(~ATTRBIT_MULTIUSER);
55 *attr |= htons(ad->ad_open_forks);
66 u_int16_t attr = attribute & ~htons(ATTRBIT_DOPEN | ATTRBIT_ROPEN);
86 if (attr & htons(ATTRBIT_INVISIBLE))
87 fflags |= htons(FINDERINFO_INVISIBL
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/udhcpd/
H A Darpping.c48 if ((s = socket (PF_PACKET, SOCK_PACKET, htons(ETH_P_ARP))) == -1) {
63 arp.ethhdr.h_proto = htons(ETH_P_ARP); /* protocol type (Ethernet) */
64 arp.htype = htons(ARPHRD_ETHER); /* hardware type */
65 arp.ptype = htons(ETH_P_IP); /* protocol type (ARP message) */
68 arp.operation = htons(ARPOP_REQUEST); /* ARP op code */
95 if (arp.operation == htons(ARPOP_REPLY) &&
H A Dpacket.c77 packet->flags |= htons(BROADCAST_FLAG);
126 if ((fd = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP))) < 0) {
135 dest.sll_protocol = htons(ETH_P_IP);
148 packet.udp.source = htons(source_port);
149 packet.udp.dest = htons(dest_port);
150 packet.udp.len = htons(sizeof(packet.udp) + sizeof(struct dhcpMessage)); /* cheat on the psuedo-header */
155 packet.ip.tot_len = htons(sizeof(struct udp_dhcp_packet));
186 client.sin_port = htons(source_port);
194 client.sin_port = htons(dest_port);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/curl-7.23.1/source/lib/
H A Dwarnless.h62 # undef htons macro
63 # define htons(a) curlx_htons((a)) macro
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-arm26/
H A Dchecksum.h101 : "r" (sum), "r" (daddr), "r" (saddr), "r" (htons(len)), "Ir" (htons(proto))
123 : "r" (sum), "r" (daddr), "r" (saddr), "r" (htons(len)), "Ir" (htons(proto))
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/sys/netatalk/
H A Dendian.h108 #define htons(x) (x) macro
115 #define htons(x) nuxi_s(x) macro
120 unsigned short ntohs(), htons();
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/sys/netatalk/
H A Dendian.h108 #define htons(x) (x) macro
115 #define htons(x) nuxi_s(x) macro
120 unsigned short ntohs(), htons();
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/networking/
H A Darping.c56 ah->ar_hrd = htons(ME->sll_hatype);
57 ah->ar_hrd = htons(ARPHRD_ETHER);
58 ah->ar_pro = htons(ETH_P_IP);
61 ah->ar_op = option_mask32 & ADVERT ? htons(ARPOP_REPLY) : htons(ARPOP_REQUEST);
143 if (ah->ar_op != htons(ARPOP_REQUEST) && ah->ar_op != htons(ARPOP_REPLY))
147 if (ah->ar_hrd != htons(FROM->sll_hatype)
148 && (FROM->sll_hatype != ARPHRD_FDDI || ah->ar_hrd != htons(ARPHRD_ETHER)))
152 if (ah->ar_pro != htons(ETH_P_I
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/bridge/netfilter/
H A Debt_arpreply.c32 if (ap->ar_op != htons(ARPOP_REQUEST) ||
34 ap->ar_pro != htons(ETH_P_IP) ||
68 if (e->ethproto != htons(ETH_P_ARP) ||
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/libatalk/dsi/
H A Ddsi_close.c23 dsi->header.dsi_requestID = htons(dsi_serverID(dsi));
H A Ddsi_tickle.c30 id = htons(dsi_serverID(dsi));
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/test/afpd/
H A Dafpfunc_helpers.c74 PUSHVAL(p, uint16_t, htons(slen), len);
119 PUSHVAL(p, uint16_t, htons(FILPBIT_FNUM | FILPBIT_PDINFO), len);
120 PUSHVAL(p, uint16_t, htons(DIRPBIT_DID | DIRPBIT_PDINFO), len);
150 PUSHVAL(p, uint16_t, htons(128), len); /* hard create */
165 PUSHVAL(p, uint16_t, htons(128), len); /* hard create */
184 PUSHVAL(p, uint16_t, htons(FILPBIT_PDID | FILPBIT_FNUM | FILPBIT_PDINFO), len);
185 PUSHVAL(p, uint16_t, htons(DIRPBIT_PDID | DIRPBIT_DID | DIRPBIT_PDINFO), len);
186 PUSHVAL(p, uint16_t, htons(20), len); /* reqcount */
209 bitmap = htons(1<<VOLPBIT_VID);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/libatalk/dsi/
H A Ddsi_close.c23 dsi->header.dsi_requestID = htons(dsi_serverID(dsi));
H A Ddsi_tickle.c30 id = htons(dsi_serverID(dsi));
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/test/afpd/
H A Dafpfunc_helpers.c74 PUSHVAL(p, uint16_t, htons(slen), len);
119 PUSHVAL(p, uint16_t, htons(FILPBIT_FNUM | FILPBIT_PDINFO), len);
120 PUSHVAL(p, uint16_t, htons(DIRPBIT_DID | DIRPBIT_PDINFO), len);
150 PUSHVAL(p, uint16_t, htons(128), len); /* hard create */
165 PUSHVAL(p, uint16_t, htons(128), len); /* hard create */
184 PUSHVAL(p, uint16_t, htons(FILPBIT_PDID | FILPBIT_FNUM | FILPBIT_PDINFO), len);
185 PUSHVAL(p, uint16_t, htons(DIRPBIT_PDID | DIRPBIT_DID | DIRPBIT_PDINFO), len);
186 PUSHVAL(p, uint16_t, htons(20), len); /* reqcount */
209 bitmap = htons(1<<VOLPBIT_VID);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/ppp-2.4.4/pppd/plugins/pppoatm/
H A Dmisc.c14 #include <netinet/in.h> /* for htons */
49 vs_id[5] = (htons(port) >> 8) & 255;
50 vs_id[6] = htons(port) & 255;

Completed in 164 milliseconds

1234567891011>>