HomeSort by relevance Sort by last modified time
    Searched refs:htons (Results 1 - 25 of 582) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/syslinux/core/fs/pxe/
tftp.h 34 #define TFTP_RRQ htons(1) // Read rest
35 #define TFTP_WRQ htons(2) // Write rest
36 #define TFTP_DATA htons(3) // Data packet
37 #define TFTP_ACK htons(4) // ACK packet
38 #define TFTP_ERROR htons(5) // ERROR packet
39 #define TFTP_OACK htons(6) // OACK packet
44 #define TFTP_EUNDEF htons(0) // Unspecified error
45 #define TFTP_ENOTFOUND htons(1) // File not found
46 #define TFTP_EACCESS htons(2) // Access violation
47 #define TFTP_ENOSPACE htons(3) // Disk ful
    [all...]
  /bionic/libc/upstream-openbsd/lib/libc/net/
htons.c 1 /* $OpenBSD: htons.c,v 1.9 2014/07/21 01:51:10 guenther Exp $ */
10 #undef htons macro
13 htons(u_int16_t x) function
  /device/linaro/bootloader/edk2/StdLib/LibC/Main/
HtoNtoH.c 20 #undef htons macro
47 htons( function
  /external/mtpd/
l2tp.c 67 #define RESULT_CODE htons(1)
68 #define PROTOCOL_VERSION htons(2)
69 #define FRAMING_CAPABILITIES htons(3)
70 #define HOST_NAME htons(7)
71 #define ASSIGNED_TUNNEL htons(9)
72 #define WINDOW_SIZE htons(10)
73 #define CHALLENGE htons(11)
74 #define CHALLENGE_RESPONSE htons(13)
75 #define ASSIGNED_SESSION htons(14)
76 #define CALL_SERIAL_NUMBER htons(15
    [all...]
  /external/libnetfilter_conntrack/utils/
conntrack_master.c 28 nfct_set_attr_u16(ct, ATTR_PORT_SRC, htons(20));
29 nfct_set_attr_u16(ct, ATTR_PORT_DST, htons(10));
69 nfct_set_attr_u16(ct, ATTR_PORT_SRC, htons(1024));
70 nfct_set_attr_u16(ct, ATTR_PORT_DST, htons(1025));
84 nfct_set_attr_u16(ct, ATTR_MASTER_PORT_SRC, htons(20));
85 nfct_set_attr_u16(ct, ATTR_MASTER_PORT_DST, htons(10));
conntrack_delete.c 27 nfct_set_attr_u16(ct, ATTR_PORT_SRC, htons(20));
28 nfct_set_attr_u16(ct, ATTR_PORT_DST, htons(10));
conntrack_create.c 27 nfct_set_attr_u16(ct, ATTR_PORT_SRC, htons(20));
28 nfct_set_attr_u16(ct, ATTR_PORT_DST, htons(10));
conntrack_create_nat.c 27 nfct_set_attr_u16(ct, ATTR_PORT_SRC, htons(20));
28 nfct_set_attr_u16(ct, ATTR_PORT_DST, htons(10));
conntrack_get.c 39 nfct_set_attr_u16(ct, ATTR_PORT_SRC, htons(20));
40 nfct_set_attr_u16(ct, ATTR_PORT_DST, htons(10));
conntrack_grp_create.c 29 .sport = htons(20),
30 .dport = htons(10)
  /external/syslinux/gpxe/src/net/udp/
dns.c 50 .st_port = htons ( DNS_PORT ),
292 dns->query.dns.id = htons ( ++qid );
371 case htons ( DNS_TYPE_A ):
384 case htons ( DNS_TYPE_CNAME ):
391 dns->qinfo->qtype = htons ( DNS_TYPE_A );
392 dns->qinfo->qclass = htons ( DNS_CLASS_IN );
415 case htons ( DNS_TYPE_A ):
420 dns->qinfo->qtype = htons ( DNS_TYPE_CNAME );
424 case htons ( DNS_TYPE_CNAME ): function
429 if ( dns->qinfo->qtype == htons ( DNS_TYPE_A ) )
    [all...]
  /external/syslinux/gpxe/src/core/
gdbudp.c 79 if ( ethhdr->h_protocol == htons ( ETH_P_ARP ) ) {
82 arphdr->ar_hrd != htons ( ARPHRD_ETHER ) ||
83 arphdr->ar_pro != htons ( ETH_P_IP ) ||
86 arphdr->ar_op != htons ( ARPOP_REQUEST ) ||
92 arphdr->ar_op = htons ( ARPOP_REPLY );
106 if ( ethhdr->h_protocol != htons ( ETH_P_IP ) ) {
182 udphdr->len = htons ( iob_len ( iob ) );
190 iphdr->len = htons ( iob_len ( iob ) );
201 ethhdr->h_protocol = htons ( ETH_P_IP );
221 source_addr.sin_port = ( addr && addr->sin_port ) ? addr->sin_port : htons ( DEFAULT_PORT )
    [all...]
  /external/syslinux/core/lwip/src/include/lwip/
def.h 68 #ifdef htons
69 #undef htons macro
70 #endif /* htons */
81 #define htons(x) lwip_htons(x) macro
  /bionic/tests/headers/posix/
arpa_inet_h.c 42 FUNCTION(htons, uint16_t (*f)(uint16_t));
  /device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/GetServByName/
GetServByName.c 55 PortNumber = htons ( pService->s_port );
  /device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/GetServByPort/
GetServByPort.c 52 pService = getservbyport ( htons ( PortNumber ), NULL );
  /device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
res_mkquery.c 136 hp->id = htons(++_res.id);
162 hp->qdcount = htons(1);
182 hp->arcount = htons(1);
204 hp->ancount = htons(1);
  /external/syslinux/com32/include/netinet/
in.h 11 #define htons(x) cpu_to_be16(x) macro
  /external/syslinux/core/legacynet/
dnsresolv.c 49 #define DNS_PORT htons(53) /* Default DNS port */
256 hd1->flags = htons(0x0100); /* Recursion requested */
257 hd1->qdcount = htons(1); /* One question */
273 query->qtype = htons(TYPE_A);
274 query->qclass = htons(CLASS_IN);
314 if ((hd2->flags ^ 0x80) & htons(0xf80f))
317 ques = htons(hd2->qdcount); /* Questions */
318 reps = htons(hd2->ancount); /* Replies */
375 if (hd2->flags == htons(0x480))
  /external/syslinux/gpxe/src/net/
rarp.c 67 .net_proto = htons ( ETH_P_RARP ),
  /system/core/libnetutils/
packet.c 47 if((s = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP))) < 0) {
53 bindaddr.sll_protocol = htons(ETH_P_IP);
103 ip.tot_len = htons(sizeof(ip) + sizeof(udp) + size);
113 udp.source = htons(sport);
114 udp.dest = htons(dport);
115 udp.len = htons(sizeof(udp) + size);
121 temp = htons(IPPROTO_UDP);
141 destaddr.sll_protocol = htons(ETH_P_IP);
196 } else if (packet.udp.dest != htons(PORT_BOOTP_CLIENT)) {
  /external/ppp/pppd/plugins/rp-pppoe/
discovery.c 161 conn->cookie.type = htons(type);
162 conn->cookie.length = htons(len);
166 conn->relayId.type = htons(type);
167 conn->relayId.length = htons(len);
246 conn->relayId.type = htons(type);
247 conn->relayId.length = htons(len);
283 packet.ethHdr.h_proto = htons(Eth_PPPOE_Discovery);
293 svc->length = htons(namelen);
307 hostUniq.type = htons(TAG_HOST_UNIQ);
308 hostUniq.length = htons(sizeof(pid))
    [all...]
  /external/toybox/toys/pending/
arping.c 104 arp_h->ar_hrd = htons(ARPHRD_ETHER);
105 arp_h->ar_pro = htons(ETH_P_IP);
108 arp_h->ar_op = (toys.optflags & FLAG_A) ? htons(ARPOP_REPLY)
109 : htons(ARPOP_REQUEST);
137 if (arp_hdr->ar_op != htons(ARPOP_REQUEST) &&
138 arp_hdr->ar_op != htons(ARPOP_REPLY)) return;
143 if (arp_hdr->ar_pro != htons(ETH_P_IP) || (arp_hdr->ar_pln != 4)
160 arp_hdr->ar_op == htons(ARPOP_REPLY) ? "ply" : "quest",
174 if (arp_hdr->ar_op == htons(ARPOP_REQUEST)) TT.rcvd_req++;
251 saddr.sin_port = htons(1025)
    [all...]
  /external/libmicrohttpd/src/testcurl/
test_options.c 82 daemon_ip_addr.sin_port = htons (4233);
88 daemon_ip_addr6.sin6_port = htons (4233);
  /external/libnetfilter_conntrack/qa/
ct_stress.c 54 nfct_set_attr_u16(ct, ATTR_PORT_SRC, htons(10));
55 nfct_set_attr_u16(ct, ATTR_PORT_DST, htons(20));

Completed in 315 milliseconds

1 2 3 4 5 6 7 8 91011>>