Home
last modified time | relevance | path

Searched refs:udp (Results 1 – 25 of 72) sorted by relevance

123

/external/iptables/extensions/
Dlibxt_udp.c108 const struct xt_udp *udp = (struct xt_udp *)match->data; in udp_print() local
111 print_ports("spt", udp->spts[0], udp->spts[1], in udp_print()
112 udp->invflags & XT_UDP_INV_SRCPT, in udp_print()
114 print_ports("dpt", udp->dpts[0], udp->dpts[1], in udp_print()
115 udp->invflags & XT_UDP_INV_DSTPT, in udp_print()
117 if (udp->invflags & ~XT_UDP_INV_MASK) in udp_print()
119 udp->invflags & ~XT_UDP_INV_MASK); in udp_print()
Dlibxt_TPROXY.man11 rule also specifies \fB\-p tcp\fP or \fB\-p udp\fP.
16 specifies \fB\-p tcp\fP or \fB\-p udp\fP.
/external/android-clat/
Ddump.c133 void dump_udp_generic(const struct udphdr *udp, uint32_t temp_checksum, const char *payload, size_t… in dump_udp_generic() argument
136 temp_checksum = ip_checksum_add(temp_checksum, udp, sizeof(struct udphdr)); in dump_udp_generic()
141 printf("source = %x\n",ntohs(udp->source)); in dump_udp_generic()
142 printf("dest = %x\n",ntohs(udp->dest)); in dump_udp_generic()
143 printf("len = %x\n",ntohs(udp->len)); in dump_udp_generic()
144 printf("check = %x (mine %x)\n",udp->check,my_checksum); in dump_udp_generic()
148 void dump_udp(const struct udphdr *udp, const struct iphdr *ip, const char *payload, size_t payload… in dump_udp() argument
150 temp_checksum = ipv4_pseudo_header_checksum(0, ip, sizeof(*udp) + payload_size); in dump_udp()
151 dump_udp_generic(udp, temp_checksum, payload, payload_size); in dump_udp()
155 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, const char *payload, size_t pay… in dump_udp6() argument
[all …]
Ddump.h23 void dump_udp(const struct udphdr *udp, const struct iphdr *ip, const char *payload, size_t payload…
28 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, const char *payload, size_t pay…
Dtranslate.c290 int udp_packet(clat_packet out, int pos, const struct udphdr *udp, uint32_t checksum, size_t len) { in udp_packet() argument
299 payload = (const char *) (udp + 1); in udp_packet()
302 return udp_translate(out, pos, udp, checksum, payload, payload_size); in udp_packet()
348 int udp_translate(clat_packet out, int pos, const struct udphdr *udp, uint32_t checksum, in udp_translate() argument
352 memcpy(udp_targ, udp, sizeof(struct udphdr)); in udp_translate()
Dtranslate.h58 int udp_packet(clat_packet out, int pos, const struct udphdr *udp, uint32_t checksum, size_t len);
62 int udp_translate(clat_packet out, int pos, const struct udphdr *udp, uint32_t checksum,
/external/dnsmasq/src/
Dbpf.c170 } udp; in send_via_bpf() local
219 udp.uh_sport = htons(daemon->dhcp_server_port); in send_via_bpf()
220 udp.uh_dport = htons(daemon->dhcp_client_port); in send_via_bpf()
223 udp.uh_sum = 0; in send_via_bpf()
224 udp.uh_ulen = sum = htons(sizeof(struct udphdr) + len); in send_via_bpf()
231 sum += ((u16 *)&udp)[i]; in send_via_bpf()
236 udp.uh_sum = (sum == 0xffff) ? sum : ~sum; in send_via_bpf()
244 iov[2].iov_base = &udp; in send_via_bpf()
245 iov[2].iov_len = sizeof(udp); in send_via_bpf()
/external/dhcpcd/
Dnet.c674 struct udphdr udp; member
708 struct udphdr *udp; in make_udp_packet() local
712 udp = &udpp->udp; in make_udp_packet()
732 udp->uh_sport = htons(DHCP_CLIENT_PORT); in make_udp_packet()
733 udp->uh_dport = htons(DHCP_SERVER_PORT); in make_udp_packet()
734 udp->uh_ulen = htons(sizeof(*udp) + length); in make_udp_packet()
735 ip->ip_len = udp->uh_ulen; in make_udp_packet()
736 udp->uh_sum = checksum(udpp, sizeof(*udpp)); in make_udp_packet()
742 ip->ip_len = htons(sizeof(*ip) + sizeof(*udp) + length); in make_udp_packet()
746 return sizeof(*ip) + sizeof(*udp) + length; in make_udp_packet()
[all …]
/external/libppp/src/
Dncp.h41 struct port_range tcp, udp; /* The range of urgent ports */ member
81 ncp_IsUrgentPort(&(ncp)->cfg.urgent.udp, p1, p2)
85 ncp_AddUrgentPort(&(ncp)->cfg.urgent.udp, p)
89 ncp_RemoveUrgentPort(&(ncp)->cfg.urgent.udp, p)
93 ncp_ClearUrgentPorts(&(ncp)->cfg.urgent.udp)
Dncp.c112 ncp->cfg.urgent.udp.nports = ncp->cfg.urgent.udp.maxports = 0; in ncp_Init()
113 ncp->cfg.urgent.udp.port = NULL; in ncp_Init()
139 if (ncp->cfg.urgent.udp.maxports) { in ncp_Destroy()
140 ncp->cfg.urgent.udp.nports = ncp->cfg.urgent.udp.maxports = 0; in ncp_Destroy()
141 free(ncp->cfg.urgent.udp.port); in ncp_Destroy()
142 ncp->cfg.urgent.udp.port = NULL; in ncp_Destroy()
481 if (ncp->cfg.urgent.udp.nports == 0) in ncp_Show()
484 for (p = 0; p < ncp->cfg.urgent.udp.nports; p++) { in ncp_Show()
487 prompt_Printf(arg->prompt, "%u", ncp->cfg.urgent.udp.port[p]); in ncp_Show()
/external/grub/netboot/
Dmain.c202 struct udphdr *udp; in udp_transmit() local
208 udp = (struct udphdr *) ((unsigned long) buf + sizeof (struct iphdr)); in udp_transmit()
220 udp->src = htons (srcsock); in udp_transmit()
221 udp->dest = htons (destsock); in udp_transmit()
222 udp->len = htons (len - sizeof (struct iphdr)); in udp_transmit()
223 udp->chksum = 0; in udp_transmit()
224 udp->chksum = htons (udpchksum (ip)); in udp_transmit()
226 if (udp->chksum == 0) in udp_transmit()
227 udp->chksum = 0xffff; in udp_transmit()
323 + sizeof (tp.ip) + sizeof (tp.udp) + sizeof (tp.opcode) + 1); in tftp()
[all …]
Dfsys_tftp.c128 len = ntohs (tr->udp.len) - sizeof (struct udphdr) - 2; in buf_fill()
166 + sizeof (tp.ip) + sizeof (tp.udp) in buf_fill()
170 iport, ntohs (tr->udp.src), in buf_fill()
194 len = ntohs (tr->udp.len) - sizeof (struct udphdr) - 4; in buf_fill()
217 oport = ntohs (tr->udp.src); in buf_fill()
436 + sizeof (tp.ip) + sizeof (tp.udp) + sizeof (tp.opcode) + 1); in tftp_dir()
Detherboot.h326 struct udphdr udp; member
340 struct udphdr udp; member
380 struct udphdr udp; member
407 struct udphdr udp; member
/external/libsepol/tests/policies/test-cond/
Drefpolicy-base.conf1742 portcon udp 7007 system_u:object_r:afs_bos_port_t:s0
1744 portcon udp 7000 system_u:object_r:afs_fs_port_t:s0
1745 portcon udp 7005 system_u:object_r:afs_fs_port_t:s0
1746 portcon udp 7004 system_u:object_r:afs_ka_port_t:s0
1747 portcon udp 7002 system_u:object_r:afs_pt_port_t:s0
1748 portcon udp 7003 system_u:object_r:afs_vl_port_t:s0
1749 portcon udp 10080 system_u:object_r:amanda_port_t:s0
1751 portcon udp 10081 system_u:object_r:amanda_port_t:s0
1758 portcon udp 2427 system_u:object_r:asterisk_port_t:s0
1759 portcon udp 2727 system_u:object_r:asterisk_port_t:s0
[all …]
/external/libvpx/libvpx/vp8/common/
Dmfqe.c145 unsigned char *udp; in multiframe_quality_enhance_block() local
233 for (up = u, udp = ud, i = 0; i < uvblksize; ++i, up += uv_stride, udp += uvd_stride) in multiframe_quality_enhance_block()
234 vpx_memcpy(udp, up, uvblksize); in multiframe_quality_enhance_block()
336 unsigned char *udp = ud_ptr + 4*(i*dest->uv_stride+j); in vp8_multiframe_quality_enhance() local
341 … for (k = 0; k < 4; ++k, up += show->uv_stride, udp += dest->uv_stride, in vp8_multiframe_quality_enhance()
344 vpx_memcpy(udp, up, 4); in vp8_multiframe_quality_enhance()
/external/iptables/include/net/netfilter/
Dnf_conntrack_tuple.h42 } udp; member
83 } udp; member
/external/qemu/slirp/
Dtftp.c74 spt->client_port = tp->udp.uh_sport; in tftp_session_allocate()
91 if (spt->client_port == tp->udp.uh_sport) { in tftp_session_find()
158 saddr.sin_port = recv_tp->udp.uh_dport; in tftp_send_oack()
198 saddr.sin_port = recv_tp->udp.uh_dport; in tftp_send_error()
244 saddr.sin_port = recv_tp->udp.uh_dport; in tftp_send_data()
Dtftp.h18 struct udphdr udp; member
/external/qemu/slirp-android/
Dtftp.c74 spt->client_port = port_geth(tp->udp.uh_sport); in tftp_session_allocate()
91 if (spt->client_port == port_geth(tp->udp.uh_sport)) { in tftp_session_find()
159 port_geth(recv_tp->udp.uh_dport) ); in tftp_send_oack()
201 port_geth(recv_tp->udp.uh_dport) ); in tftp_send_error()
249 port_geth(recv_tp->udp.uh_dport) ); in tftp_send_data()
Dtftp.h18 struct udphdr udp; member
/external/openssl/crypto/bn/
Dbn_gf2m.c574 BN_ULONG *udp,*bdp,*vdp,*cdp; in BN_GF2m_mod_inv() local
576 bn_wexpand(u,top); udp = u->d; in BN_GF2m_mod_inv()
577 for (i=u->top;i<top;i++) udp[i] = 0; in BN_GF2m_mod_inv()
592 while (ubits && !(udp[0]&1)) in BN_GF2m_mod_inv()
596 u0 = udp[0]; in BN_GF2m_mod_inv()
602 u1 = udp[i+1]; in BN_GF2m_mod_inv()
603 udp[i] = ((u0>>1)|(u1<<(BN_BITS2-1)))&BN_MASK2; in BN_GF2m_mod_inv()
609 udp[i] = u0>>1; in BN_GF2m_mod_inv()
614 if (ubits<=BN_BITS2 && udp[0]==1) break; in BN_GF2m_mod_inv()
621 udp = vdp; vdp = v->d; in BN_GF2m_mod_inv()
[all …]
/external/kernel-headers/original/linux/netfilter_ipv4/
Dip_conntrack_tuple.h27 } udp; member
63 } udp; member
/external/jmonkeyengine/engine/src/networking/com/jme3/network/
DNetwork.java40 import com.jme3.network.kernel.udp.UdpConnector;
41 import com.jme3.network.kernel.udp.UdpKernel;
/external/smack/asmack-master/jingle/
D60-jingle-ext.patch35 - public static final String NAMESPACE = "urn:xmpp:tmp:jingle:transports:ice-udp";
36 + public static final String NAMESPACE = "urn:xmpp:jingle:transports:ice-udp:1";
45 + public static final String NAMESPACE = "urn:xmpp:jingle:transports:raw-udp:1";
/external/chromium/net/
Dnet.gyp695 'udp/datagram_client_socket.h',
696 'udp/datagram_server_socket.h',
697 'udp/datagram_socket.h',
698 'udp/udp_client_socket.cc',
699 'udp/udp_client_socket.h',
700 'udp/udp_server_socket.cc',
701 'udp/udp_server_socket.h',
702 'udp/udp_socket.h',
703 'udp/udp_socket_libevent.cc',
704 'udp/udp_socket_libevent.h',
[all …]

123