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

1 2 3 4 5 6 7 8 91011>>

  /external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/
PacketListener.java 11 void read(String packet);
13 void write(String packet);
  /frameworks/av/media/mtp/
MtpObjectInfo.cpp 58 void MtpObjectInfo::read(MtpDataPacket& packet) {
62 mStorageID = packet.getUInt32();
63 mFormat = packet.getUInt16();
64 mProtectionStatus = packet.getUInt16();
65 mCompressedSize = packet.getUInt32();
66 mThumbFormat = packet.getUInt16();
67 mThumbCompressedSize = packet.getUInt32();
68 mThumbPixWidth = packet.getUInt32();
69 mThumbPixHeight = packet.getUInt32();
70 mImagePixWidth = packet.getUInt32()
    [all...]
MtpDeviceInfo.cpp 62 void MtpDeviceInfo::read(MtpDataPacket& packet) {
66 mStandardVersion = packet.getUInt16();
67 mVendorExtensionID = packet.getUInt32();
68 mVendorExtensionVersion = packet.getUInt16();
70 packet.getString(string);
73 mFunctionalCode = packet.getUInt16();
74 mOperations = packet.getAUInt16();
75 mEvents = packet.getAUInt16();
76 mDeviceProperties = packet.getAUInt16();
77 mCaptureFormats = packet.getAUInt16()
    [all...]
MtpStorageInfo.cpp 46 void MtpStorageInfo::read(MtpDataPacket& packet) {
50 mStorageType = packet.getUInt16();
51 mFileSystemType = packet.getUInt16();
52 mAccessCapability = packet.getUInt16();
53 mMaxCapacity = packet.getUInt64();
54 mFreeSpaceBytes = packet.getUInt64();
55 mFreeSpaceObjects = packet.getUInt32();
57 packet.getString(string);
59 packet.getString(string);
MtpStringBuffer.h 46 void readFromPacket(MtpDataPacket* packet);
47 void writeToPacket(MtpDataPacket* packet) const;
MtpProperty.h 86 void read(MtpDataPacket& packet);
87 void write(MtpDataPacket& packet);
105 void readValue(MtpDataPacket& packet, MtpPropertyValue& value);
106 void writeValue(MtpDataPacket& packet, MtpPropertyValue& value);
107 MtpPropertyValue* readArrayValues(MtpDataPacket& packet, int& length);
108 void writeArrayValues(MtpDataPacket& packet,
MtpProperty.cpp 124 void MtpProperty::read(MtpDataPacket& packet) {
125 mCode = packet.getUInt16();
127 mType = packet.getUInt16();
128 mWriteable = (packet.getUInt8() == 1);
140 mDefaultArrayValues = readArrayValues(packet, mDefaultArrayLength);
142 mCurrentArrayValues = readArrayValues(packet, mCurrentArrayLength);
145 readValue(packet, mDefaultValue);
147 readValue(packet, mCurrentValue);
150 mGroupCode = packet.getUInt32();
151 mFormFlag = packet.getUInt8()
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
OldAndroidDatagramTest.java 46 DatagramPacket packet; field in class:OldAndroidDatagramTest.Reflector
56 packet.setLength(buffer.length);
57 socket.receive(packet);
58 String s = stringFromPacket(packet);
59 // System.out.println(s + " (from " + packet.getAddress() + ":" + packet.getPort() + ")");
67 stringToPacket(s.toUpperCase(), packet); local
69 packet.setAddress(InetAddress.getLocalHost());
70 packet.setPort(2345);
72 socket.send(packet);
128 DatagramPacket packet = new DatagramPacket(buffer, buffer.length); local
    [all...]
OldDatagramPacketTest.java 52 DatagramPacket packet = new DatagramPacket(new byte[256],
54 socket.receive(packet);
55 socket.send(packet);
70 DatagramPacket packet = new DatagramPacket(new byte[] { 1, 2, 3, 4, local
80 socket.send(packet);
81 socket.receive(packet);
83 assertTrue("datagram received wrong port: " + packet.getPort(),
84 packet.getPort() == port);
  /external/ppp/pppd/plugins/rp-pppoe/
debug.c 78 * packet -- a PPPoE packet
83 * Dumps the PPPoE packet to fp in an easy-to-read format
86 dumpPacket(FILE *fp, PPPoEPacket *packet, char const *dir)
88 int len = ntohs(packet->length);
97 UINT16_t type = etherType(packet);
113 switch(packet->code) {
123 (int) ntohs(packet->session),
130 (unsigned) packet->ethHdr.h_source[0],
131 (unsigned) packet->ethHdr.h_source[1]
    [all...]
common.c 36 * packet -- the PPPoE discovery packet to parse
37 * func -- function called for each tag in the packet
42 * Parses a PPPoE discovery packet, calling "func" for each tag in the packet.
46 parsePacket(PPPoEPacket *packet, ParseFunc *func, void *extra)
48 UINT16_t len = ntohs(packet->length);
52 if (packet->ver != 1) {
53 syslog(LOG_ERR, "Invalid PPPoE version (%d)", (int) packet->ver);
56 if (packet->type != 1)
398 PPPoEPacket packet; local
    [all...]
discovery.c 73 * packet -- a received PPPoE packet
75 * 1 if packet is for this PPPoE daemon; 0 otherwise.
77 * If we are using the Host-Unique tag, verifies that packet contains
81 packetIsForMe(PPPoEConnection *conn, PPPoEPacket *packet)
85 /* If packet is not directed to our MAC address, forget it */
86 if (memcmp(packet->ethHdr.h_dest, conn->myEth, ETH_ALEN)) return 0;
88 /* If we're not using the Host-Unique tag, then accept the packet */
91 parsePacket(packet, parseForHostUniq, &forMe);
107 * Picks interesting tags out of a PADO packet
246 PPPoEPacket packet; local
316 PPPoEPacket packet; local
416 PPPoEPacket packet; local
500 PPPoEPacket packet; local
    [all...]
  /external/qemu/
shaper.c 46 * we're going to implement a scheme where, when we send a packet of
47 * 'count' bytes, no other packet will go through in the same direction for
48 * at least 'count*8/MAX_RATE' seconds. any successive packet that is "sent"
69 QueuedPacket packet; local
70 size_t packet_size = sizeof(*packet);
75 packet = qemu_malloc(packet_size);
76 packet->next = NULL;
77 packet->expiration = 0;
78 packet->size = (size_t)size;
79 packet->opaque = opaque
120 QueuedPacket packet = shaper->packets; local
137 QueuedPacket packet; local
188 QueuedPacket packet = shaper->packets; local
229 QueuedPacket packet; local
297 QueuedPacket packet; member in struct:SessionRec_
433 QueuedPacket packet = session->packet; local
488 QueuedPacket packet = session->packet; local
    [all...]
  /system/core/libnetutils/
packet.c 164 } packet; local
170 nread = read(s, &packet, sizeof(packet));
175 * The raw packet interface gives us all packets received by the
182 ALOGD("Packet is too small (%d) to be a UDP datagram", nread);
184 } else if (packet.ip.version != IPVERSION || packet.ip.ihl != (sizeof(packet.ip) >> 2)) {
186 ALOGD("Not a valid IP packet");
188 } else if (nread < ntohs(packet.ip.tot_len))
    [all...]
Android.mk 9 packet.c
  /libcore/luni/src/main/java/libcore/net/
RawSocket.java 49 String interfaceName, short protocolType, byte[] destMac, byte[] packet,
51 private static native int recvPacket(FileDescriptor fd, byte[] packet,
72 * Reads a raw packet into the specified buffer, with the
77 * The packet data will start at the IP header (EthernetII
80 public int read(byte[] packet, int offset, int byteCount, int destPort,
82 if (packet == null) {
83 throw new NullPointerException("packet == null");
86 Arrays.checkOffsetAndCount(packet.length, offset, byteCount);
93 return recvPacket(fd, packet, offset, byteCount, destPort,
98 * Writes a raw packet to the desired interface. A L2 header wil
    [all...]
  /development/samples/ToyVpn/server/linux/
ToyVpnServer.cpp 108 char packet[1024]; local
112 int n = recvfrom(tunnel, packet, sizeof(packet), 0,
117 packet[n] = 0;
118 } while (packet[0] != 0 || strcmp(secret, &packet[1]));
201 // Send the parameters several times in case of packet loss.
206 // Allocate the buffer for a single packet.
207 char packet[32767]; local
219 // Read the outgoing packet from the input stream
    [all...]
  /external/chromium/net/tools/spdyshark/
packet-spdy.h 0 /* packet-spdy.h
31 #include <epan/packet.h>
  /external/dnsmasq/contrib/wrt/
dhcp_lease_time.c 76 return NULL; /* malformed packet */
83 return NULL; /* malformed packet */
86 return NULL; /* malformed packet */
137 struct dhcp_packet packet; local
138 unsigned char *p = packet.options;
157 memset(&packet, 0, sizeof(packet));
159 packet.hlen = 0;
160 packet.htype = 0;
162 packet.op = BOOTREQUEST
    [all...]
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/
pg.h 5 pg.h defines the user interface to the generic ATAPI packet
49 char packet[12]; /* packet command */ member in struct:pg_write_hdr
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/
pg.h 5 pg.h defines the user interface to the generic ATAPI packet
49 char packet[12]; /* packet command */ member in struct:pg_write_hdr
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/linux/
pg.h 5 pg.h defines the user interface to the generic ATAPI packet
49 char packet[12]; /* packet command */ member in struct:pg_write_hdr
  /external/jmdns/src/javax/jmdns/impl/
SocketListener.java 38 DatagramPacket packet = new DatagramPacket(buf, buf.length); local
40 packet.setLength(buf.length);
41 this._jmDNSImpl.getSocket().receive(packet);
46 if (this._jmDNSImpl.getLocalHost().shouldIgnorePacket(packet)) {
50 DNSIncoming msg = new DNSIncoming(packet);
55 if (packet.getPort() != DNSConstants.MDNS_PORT) {
56 this._jmDNSImpl.handleQuery(msg, packet.getAddress(), packet.getPort());
  /external/valgrind/main/gdbserver_tests/
mchelp.stderrB.exp 5 error reading packet
  /frameworks/base/core/java/android/net/dhcp/
DhcpPacket.java 25 * Packet encapsulations.
83 * The maximum length of a packet that can be constructed.
207 * Asks the packet object to signal the next operation in the DHCP
214 * Asks the packet object to create a ByteBuffer serialization of
215 * the packet for transmission.
221 * Allows the concrete class to fill in packet-type-specific details,
222 * typically optional parameters at the end of the packet.
246 * Creates a new L3 packet (including IP header) containing the
247 * DHCP udp packet. This method relies upon the delegated method
248 * finishPacket() to insert the per-packet contents
    [all...]

Completed in 1161 milliseconds

1 2 3 4 5 6 7 8 91011>>