HomeSort by: relevance | last modified time | path
    Searched refs:ntohs (Results 1 - 25 of 623) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/sys/lib/libkern/arch/alpha/
ntohs.S 1 /* $NetBSD: ntohs.S,v 1.1 1996/04/17 22:46:46 cgd Exp $ */
30 #define NAME ntohs
  /src/lib/libc/net/
Lint_ntohs.c 9 #undef ntohs macro
13 ntohs(uint16_t net16) function
  /src/external/bsd/ipf/dist/lib/
printpacket6.c 32 plen = ntohs(*((u_short *)buf +2));
44 ntohs(addrs[0]), ntohs(addrs[1]), ntohs(addrs[2]),
45 ntohs(addrs[3]), ntohs(addrs[4]), ntohs(addrs[5]),
46 ntohs(addrs[6]), ntohs(addrs[7]));
49 (void)PRINTF(",%d", ntohs(tcp->th_sport))
    [all...]
printpacket.c 31 len = ntohs(((ip6_t *)ip)->ip6_plen);
33 len = ntohs(((u_short *)ip)[2]);
37 len = ntohs(ip->ip_len);
73 off = ntohs(ip->ip_off);
75 PRINTF("ip #%d %d(%d) %d", ntohs(ip->ip_id), ntohs(ip->ip_len),
82 PRINTF(",%d", ntohs(tcp->th_sport));
87 PRINTF(",%d", ntohs(tcp->th_dport));
printactivenat.c 39 PRINTF(" %-5hu", ntohs(nat->nat_osport));
46 PRINTF(" %-5hu", ntohs(nat->nat_odport));
53 PRINTF(" %-5hu", ntohs(nat->nat_nsport));
59 PRINTF(" %-5hu", ntohs(nat->nat_ndport));
66 PRINTF(" %-5hu", ntohs(nat->nat_osport));
73 PRINTF(" %-5hu", ntohs(nat->nat_nsport));
80 PRINTF(" %hu", ntohs(nat->nat_odport));
87 PRINTF(" %-5hu", ntohs(nat->nat_ndport));
94 PRINTF(" %-5hu", ntohs(nat->nat_odport));
101 PRINTF(" %hu", ntohs(nat->nat_osport))
    [all...]
printnatfield.c 200 PRINTF("%hu", ntohs(n->nat_odport));
204 PRINTF("%hu", ntohs(n->nat_osport));
208 PRINTF("%hu", ntohs(n->nat_ndport));
212 PRINTF("%hu", ntohs(n->nat_nsport));
  /src/common/lib/libc/arch/m68k/net/
ntohs.S 1 /* $NetBSD: ntohs.S,v 1.3 2013/07/16 23:24:19 matt Exp $ */
40 RCSID("from: @(#)ntohs.s 5.1 (Berkeley) 5/12/90")
42 RCSID("$NetBSD: ntohs.S,v 1.3 2013/07/16 23:24:19 matt Exp $")
46 /* hostorder = ntohs(netorder) */
48 ENTRY(ntohs) function
52 END(ntohs)
  /src/usr.sbin/ldpd/
tlv.c 55 if (ntohs(t->type) != LDP_HELLO)
59 if (ntohs(t->length) + TLV_TYPE_LENGTH > max)
62 t->type = ntohs(t->type);
63 t->length = ntohs(t->length);
73 warnp("TLV type %.4X, Length %d, Message ID %.8X\n", ntohs(t->type),
74 ntohs(t->length), ntohs(t->messageid));
pdu.c 50 p->version = ntohs(p1->version);
51 p->length = ntohs(p1->length);
53 p->label_space = ntohs(p1->label_space);
80 if (ntohs(rpdu->version) != LDP_VERSION) {
82 satos(p->address), ntohs(rpdu->version));
90 if (ntohs(rpdu->length) > c - PDU_VER_LENGTH) {
93 ntohs(rpdu->length), (int) (c - PDU_VER_LENGTH));
  /src/external/gpl3/gcc/dist/fixincludes/tests/base/netinet/
in.h 19 #define ntohs(x) (x) macro
  /src/external/gpl3/gcc.old/dist/fixincludes/tests/base/netinet/
in.h 19 #define ntohs(x) (x) macro
  /src/common/lib/libc/net/
ntohs.c 1 /* $NetBSD: ntohs.c,v 1.4 2026/01/09 08:01:11 skrll Exp $ */
10 __RCSID("$NetBSD: ntohs.c,v 1.4 2026/01/09 08:01:11 skrll Exp $");
16 #undef ntohs macro
19 ntohs(uint16_t x) function
  /src/common/lib/libc/arch/sparc/net/
ntohs.S 1 /* $NetBSD: ntohs.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
35 * from: Header: ntohs.s,v 1.1 92/06/25 12:47:07 torek Exp
41 .asciz "@(#)ntohs.s 8.1 (Berkeley) 6/4/93"
43 RCSID("$NetBSD: ntohs.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
47 /* hostorder = ntohs(netorder) */
49 ENTRY(ntohs) function
  /src/common/lib/libc/arch/sparc64/net/
ntohs.S 1 /* $NetBSD: ntohs.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
35 * from: Header: ntohs.s,v 1.1 92/06/25 12:47:07 torek Exp
41 .asciz "@(#)ntohs.s 8.1 (Berkeley) 6/4/93"
43 RCSID("$NetBSD: ntohs.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
47 /* hostorder = ntohs(netorder) */
49 ENTRY(ntohs) function
  /src/lib/libc/arch/sh3/net/
ntohs.c 1 /* $NetBSD: ntohs.c,v 1.3 2005/12/24 23:10:08 perry Exp $ */
40 __RCSID("$NetBSD: ntohs.c,v 1.3 2005/12/24 23:10:08 perry Exp $");
43 /* hostorder = ntohs(netorder) */
46 ntohs(x) function
  /src/common/lib/libc/arch/i386/gen/
byte_swap_2.S 47 _ENTRY(_C_LABEL(ntohs))
58 END(_C_LABEL(ntohs))
  /src/common/lib/libc/arch/x86_64/gen/
byte_swap_2.S 14 _ENTRY(_C_LABEL(ntohs))
25 END(_C_LABEL(ntohs))
  /src/sys/lib/libkern/arch/sh3/
byte_swap_2.S 37 ALTENTRY(ntohs) function
45 ENTRY(ntohs) function
  /src/sys/lib/libsa/
udp.c 77 inet_ntoa(d->myip), ntohs(d->myport));
79 inet_ntoa(d->destip), ntohs(d->destport));
120 ntohs(d->myport), ntohs(uh->uh_dport));
125 if (ntohs(uh->uh_ulen) < sizeof(*uh)) {
129 ntohs(uh->uh_ulen), sizeof(*uh));
  /src/common/lib/libc/arch/aarch64/gen/
byte_swap_2.S 45 STRONG_ALIAS(_C_LABEL(ntohs), FUNC)
  /src/common/lib/libc/arch/alpha/gen/
byte_swap_2.S 44 XLEAF(ntohs, 1)
  /src/common/lib/libc/arch/vax/gen/
bswap16.S 39 ALTENTRY(_C_LABEL(ntohs))
  /src/lib/libc/arch/vax/gen/
byte_swap_2.S 37 ALTENTRY(ntohs) function
  /src/external/bsd/ppp/dist/pppd/plugins/pppoe/
common.c 49 UINT16_t len = ntohs(packet->length);
125 int len = ntohs(conn->hostUniq.length);
146 ntohs(conn->cookie.length) + TAG_HDR_SIZE);
147 memcpy(cursor, &conn->cookie, ntohs(conn->cookie.length) + TAG_HDR_SIZE);
148 cursor += ntohs(conn->cookie.length) + TAG_HDR_SIZE;
149 plen += ntohs(conn->cookie.length) + TAG_HDR_SIZE;
154 ntohs(conn->relayId.length) + TAG_HDR_SIZE);
155 memcpy(cursor, &conn->relayId, ntohs(conn->relayId.length) + TAG_HDR_SIZE);
156 cursor += ntohs(conn->relayId.length) + TAG_HDR_SIZE;
157 plen += ntohs(conn->relayId.length) + TAG_HDR_SIZE
    [all...]
  /src/sys/netatalk/
ddp_output.c 135 if (ntohs(net) >= ntohs(aa->aa_firstnet) &&
136 ntohs(net) <= ntohs(aa->aa_lastnet)) {
177 if (ntohs(satocsat(rtcache_getdst(ro))->sat_addr.s_net) >=
178 ntohs(aa->aa_firstnet) &&
179 ntohs(satocsat(rtcache_getdst(ro))->sat_addr.s_net) <=
180 ntohs(aa->aa_lastnet)) {
188 if (ntohs(satocsat(rtcache_getdst(ro))->sat_addr.s_net) >=
189 ntohs(aa->aa_firstnet) &
    [all...]

Completed in 54 milliseconds

1 2 3 4 5 6 7 8 91011>>