/macosx-10.10.1/bind9-45.101/bind9/bin/tests/system/resolver/ans2/ |
H A D | ans.pl | 45 my ($packet, $err) = new Net::DNS::Packet(\$buf, 0); 49 $packet->print; 51 $packet->header->qr(1); 53 my @questions = $packet->question; 59 $packet->push("answer", new Net::DNS::RR("cname1.example.com 300 CNAME cname1.example.com")); 60 $packet->push("answer", new Net::DNS::RR("cname1.example.com 300 A 1.2.3.4")); 63 $packet->push("answer", new Net::DNS::RR("cname2.example.com 300 A 1.2.3.4")); 64 $packet->push("answer", new Net::DNS::RR("cname2.example.com 300 CNAME cname2.example.com")); 71 $packet->header->aa(1); 73 $packet [all...] |
/macosx-10.10.1/bind9-45.101/bind9/bin/tests/system/resolver/ans3/ |
H A D | ans.pl | 45 my ($packet, $err) = new Net::DNS::Packet(\$buf, 0); 49 $packet->print; 51 $packet->header->qr(1); 52 $packet->header->aa(1); 54 my @questions = $packet->question; 58 $packet->push("answer", 62 $packet->push("answer", 66 $packet->push("answer", 70 $packet->push("answer", 74 $packet [all...] |
/macosx-10.10.1/cups-408/cups/cups/ |
H A D | testsnmp.c | 29 static void print_packet(cups_snmp_t *packet, void *data); 121 * 'print_packet()' - Print the contents of the response packet. 125 print_packet(cups_snmp_t *packet, /* I - SNMP response packet */ argument 134 printf("%s = ", _cupsSNMPOIDToString(packet->object_name, temp, sizeof(temp))); 136 switch (packet->object_type) 140 packet->object_value.boolean ? "TRUE" : "FALSE"); 144 printf("INTEGER %d\n", packet->object_value.integer); 149 (char *)packet->object_value.string.bytes); 154 (char *)packet 210 cups_snmp_t packet; /* SNMP packet */ local [all...] |
H A D | snmp.c | 36 cups_snmp_t *packet); 38 cups_snmp_t *packet); 67 static void snmp_set_error(cups_snmp_t *packet, 162 _cupsSNMPIsOID(cups_snmp_t *packet, /* I - Response packet */ argument 172 DEBUG_printf(("4_cupsSNMPIsOID(packet=%p, oid=%p)", packet, oid)); 174 if (!packet || !oid) 186 i < CUPS_SNMP_MAX_OID && oid[i] >= 0 && packet->object_name[i] >= 0; 188 if (oid[i] != packet 210 _cupsSNMPIsOIDPrefixed( cups_snmp_t *packet, const int *prefix) argument 345 _cupsSNMPRead(int fd, cups_snmp_t *packet, double timeout) argument 561 cups_snmp_t packet; /* Current response packet */ local 650 cups_snmp_t packet; /* SNMP message packet */ local 925 asn1_decode_snmp(unsigned char *buffer, size_t len, cups_snmp_t *packet) argument 1083 asn1_encode_snmp(unsigned char *buffer, size_t bufsize, cups_snmp_t *packet) argument 1666 snmp_set_error(cups_snmp_t *packet, const char *message) argument [all...] |
H A D | snmp-private.h | 36 #define CUPS_SNMP_MAX_PACKET 1472 /* Maximum size of SNMP packet */ 83 typedef struct cups_snmp_s /**** SNMP data packet ****/ 101 typedef void (*cups_snmp_cb_t)(cups_snmp_t *packet, void *data); 115 extern int _cupsSNMPIsOID(cups_snmp_t *packet, const int *oid) 117 extern int _cupsSNMPIsOIDPrefixed(cups_snmp_t *packet, 122 extern cups_snmp_t *_cupsSNMPRead(int fd, cups_snmp_t *packet,
|
/macosx-10.10.1/Heimdal-398.1.2/lib/krb5/ |
H A D | write_message.c | 63 krb5_data packet; local 65 ret = krb5_mk_priv (context, ac, data, &packet, NULL); 68 ret = krb5_write_message(context, p_fd, &packet); 69 krb5_data_free(&packet); 80 krb5_data packet; local 81 ret = krb5_mk_safe (context, ac, data, &packet, NULL); 84 ret = krb5_write_message(context, p_fd, &packet); 85 krb5_data_free(&packet);
|
H A D | read_message.c | 60 krb5_set_error_message(context, ERANGE, N_("packet to large", "")); 84 krb5_data packet; local 86 ret = krb5_read_message(context, p_fd, &packet); 89 ret = krb5_rd_priv (context, ac, &packet, data, NULL); 90 krb5_data_free(&packet); 101 krb5_data packet; local 103 ret = krb5_read_message(context, p_fd, &packet); 106 ret = krb5_rd_safe (context, ac, &packet, data, NULL); 107 krb5_data_free(&packet);
|
/macosx-10.10.1/cups-408/cups/backend/ |
H A D | snmp-supplies.c | 206 static void backend_walk_cb(cups_snmp_t *packet, void *data); 245 cups_snmp_t packet; /* SNMP response packet */ local 361 if (!_cupsSNMPRead(snmp_fd, &packet, CUPS_SUPPLY_TIMEOUT) || 362 packet.object_type != CUPS_ASN1_OCTET_STRING) 365 if (packet.object_value.string.num_bytes == 2) 366 new_state = (packet.object_value.string.bytes[0] << 8) | 367 packet.object_value.string.bytes[1]; 368 else if (packet.object_value.string.num_bytes == 1) 369 new_state = (packet 457 cups_snmp_t packet; /* SNMP response packet */ local 766 backend_walk_cb(cups_snmp_t *packet, void *data) argument [all...] |
H A D | network.c | 114 cups_snmp_t packet; /* Packet from printer */ local 143 if (!_cupsSNMPStringToOID(data, packet.object_name, CUPS_SNMP_MAX_OID)) 158 packet.object_name)) 160 if (_cupsSNMPRead(snmp_fd, &packet, 1.0)) 165 if (!_cupsSNMPOIDToString(packet.object_name, data, sizeof(data))) 174 switch (packet.object_type) 177 snprintf(dataptr, sizeof(data) - (size_t)(dataptr - data), "%d", packet.object_value.boolean); 183 packet.object_value.integer); 189 if (packet.object_value.string.num_bytes < (sizeof(data) - (size_t)(dataptr - data))) 190 i = packet 262 cups_snmp_t packet; /* Packet from printer */ local [all...] |
H A D | snmp.c | 885 cups_snmp_t packet; /* Decoded packet */ local 894 if (!_cupsSNMPRead(fd, &packet, -1.0)) 902 httpAddrLookup(&(packet.address), addrname, sizeof(addrname)); 904 httpAddrString(&(packet.address), addrname, sizeof(addrname)); 912 if (packet.error) 914 fprintf(stderr, "ERROR: Bad SNMP packet from %s: %s\n", addrname, 915 packet.error); 920 debug_printf("DEBUG: community=\"%s\"\n", packet.community); 921 debug_printf("DEBUG: request-id=%d\n", packet [all...] |
/macosx-10.10.1/Heimdal-398.1.2/appl/test/ |
H A D | tcp_client.c | 46 krb5_data packet; local 86 krb5_data_zero (&packet); 91 &packet, 96 len = packet.length; 101 if (krb5_net_write (context, &sock, packet.data, len) != len) 107 krb5_data_free (&packet); 112 &packet, 117 len = packet.length; 122 if (krb5_net_write (context, &sock, packet.data, len) != len)
|
H A D | tcp_server.c | 48 krb5_data packet; local 96 krb5_data_zero (&packet); 106 krb5_data_alloc (&packet, len); 108 n = krb5_net_read (context, &sock, packet.data, len); 116 &packet, 122 fprintf (stderr, "safe packet: %.*s\n", (int)data.length, 133 krb5_data_alloc (&packet, len); 135 n = krb5_net_read (context, &sock, packet.data, len); 143 &packet, 149 fprintf (stderr, "priv packet [all...] |
H A D | uu_client.c | 51 krb5_data packet; local 155 krb5_data_zero (&packet); 160 &packet, 165 status = krb5_write_message(context, &sock, &packet); 172 krb5_data_free (&packet); 177 &packet, 182 status = krb5_write_message(context, &sock, &packet);
|
/macosx-10.10.1/bind9-45.101/bind9/bin/tests/system/upforwd/ans4/ |
H A D | ans.pl | 102 my ($packet, $err) = new Net::DNS::Packet(\$buf, 0); 105 $packet->header->qr(1); 106 $packet->header->aa(1); 108 my @questions = $packet->question; 114 while (my $rr = $packet->pop("additional")) { 128 $packet->push("answer", $a); 131 # Sign the packet 145 $packet->{"compnames"} = {}; 146 $packet->{"header"}{"arcount"} += 1; 155 $packet [all...] |
/macosx-10.10.1/bind9-45.101/bind9/bin/tests/system/ |
H A D | ans.pl | 120 my $packet = new Net::DNS::Packet($qname, $qtype, $qclass); 121 $packet->header->qr(1); 122 $packet->header->aa(1); 123 $packet->header->id($id); 141 $packet->push("answer", $a); 144 # Sign the packet 158 $packet->{"compnames"} = {}; 159 $packet->{"header"}{"arcount"} += 1; 168 $packet->sign_tsig($tsig); 173 #$packet [all...] |
/macosx-10.10.1/IONetworkingFamily-101/ |
H A D | IOMbufMemoryCursor.cpp | 104 // Copy the src packet into the destination packet. The amount to copy is 186 mbuf_t packet, /* input packet mbuf */ 199 mbuf_t in = packet; // save the original input packet pointer. 211 /* Initialise outgoing packet controls */ 221 // Loop through the input packet mbuf 'in' and construct a new mbuf chain 313 // packet->pkthdr.len; 315 coalesceSegments(packet, newPacke 185 analyseSegments( mbuf_t packet, const UInt32 mbufsInCache, const UInt32 segsPerMBuf[], SInt32 numSegs, const UInt32 maxSegs) argument 336 genPhysicalSegments(mbuf_t packet, void *vector, UInt32 maxSegs, bool doCoalesce) argument 546 _ZN21IOMbufBigMemoryCursor19getPhysicalSegmentsEP4mbufPN14IOMemoryCursor15PhysicalSegmentEm( IOMbufBigMemoryCursor *self, void *packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments) argument 553 getPhysicalSegments(mbuf_t packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments) argument 560 _ZN21IOMbufBigMemoryCursor31getPhysicalSegmentsWithCoalesceEP4mbufPN14IOMemoryCursor15PhysicalSegmentEm( IOMbufBigMemoryCursor *self, void *packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments) argument 567 getPhysicalSegmentsWithCoalesce(mbuf_t packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments) argument 590 _ZN25IOMbufNaturalMemoryCursor19getPhysicalSegmentsEP4mbufPN14IOMemoryCursor15PhysicalSegmentEm( IOMbufNaturalMemoryCursor *self, void *packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments) argument 597 getPhysicalSegments(mbuf_t packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments) argument 604 _ZN25IOMbufNaturalMemoryCursor31getPhysicalSegmentsWithCoalesceEP4mbufPN14IOMemoryCursor15PhysicalSegmentEm( IOMbufNaturalMemoryCursor *self, void *packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments) argument 612 getPhysicalSegmentsWithCoalesce(mbuf_t packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments) argument 635 _ZN24IOMbufLittleMemoryCursor19getPhysicalSegmentsEP4mbufPN14IOMemoryCursor15PhysicalSegmentEm( IOMbufLittleMemoryCursor *self, void *packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments) argument 642 getPhysicalSegments(mbuf_t packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments) argument 649 _ZN24IOMbufLittleMemoryCursor31getPhysicalSegmentsWithCoalesceEP4mbufPN14IOMemoryCursor15PhysicalSegmentEm( IOMbufLittleMemoryCursor *self, void *packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments) argument 657 getPhysicalSegmentsWithCoalesce(mbuf_t packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments) argument 682 _ZN23IOMbufDBDMAMemoryCursor19getPhysicalSegmentsEP4mbufP17IODBDMADescriptorm( IOMbufDBDMAMemoryCursor *self, void *packet, struct IODBDMADescriptor *vector, UInt32 numVectorSegments) argument 689 getPhysicalSegments(mbuf_t packet, struct IODBDMADescriptor *vector, UInt32 numVectorSegments) argument 696 _ZN23IOMbufDBDMAMemoryCursor31getPhysicalSegmentsWithCoalesceEP4mbufP17IODBDMADescriptorm( IOMbufDBDMAMemoryCursor *self, void *packet, struct IODBDMADescriptor *vector, UInt32 numVectorSegments) argument 704 getPhysicalSegmentsWithCoalesce(mbuf_t packet, struct IODBDMADescriptor *vector, UInt32 numVectorSegments) argument [all...] |
H A D | IOMbufMemoryCursor.h | 91 @abstract Generates a physical scatter/gather list given a mbuf packet. 93 @param packet The mbuf packet. 106 virtual UInt32 genPhysicalSegments(mbuf_t packet, void * vector, 157 @param packet The mbuf packet. 165 UInt32 getPhysicalSegments(mbuf_t packet, 175 @param packet The mbuf packet. 183 UInt32 getPhysicalSegmentsWithCoalesce(mbuf_t packet, [all...] |
/macosx-10.10.1/xnu-2782.1.97/bsd/net/ |
H A D | if_ipsec.h | 53 errno_t ipsec_inject_inbound_packet(ifnet_t interface, mbuf_t packet); 55 void ipsec_set_pkthdr_for_interface(ifnet_t interface, mbuf_t packet, int family);
|
H A D | if_ether.h | 45 errno_t ether_demux(ifnet_t interface, mbuf_t packet, char* header, 51 errno_t ether_frameout(ifnet_t interface, mbuf_t *packet, 55 errno_t ether_frameout(ifnet_t interface, mbuf_t *packet, 60 errno_t ether_frameout_extended(ifnet_t interface, mbuf_t *packet,
|
H A D | kpi_protocol.h | 51 @discussion protocol_input_handler is called to input a packet. If 54 @pararm protocol The protocol this packet is intended for. 55 @param packet The packet that should be input. 57 typedef void (*proto_input_handler)(protocol_family_t protocol, mbuf_t packet); 72 packet for a protocol is received. 75 @param input The function called when a packet is input. 76 @param chains Input function supports packet chains. 93 @param input The function called when a packet is input. 94 @param inject The function to called when a packet i [all...] |
/macosx-10.10.1/libresolv-57/ |
H A D | dns_async.c | 56 char *packet; local 74 packet = NULL; 84 packet = malloc(res->dns_packet_len); 85 if (packet == NULL) status = NO_RECOVERY; 89 memcpy(packet, res->dns_packet, res->dns_packet_len); 97 free(packet); 98 packet = NULL; 112 ((dns_async_callback)(my_ctx->orig_callback))(status, packet, pl, from, fl, my_ctx->orig_context);
|
/macosx-10.10.1/ntp-92/sntp/ |
H A D | header.h | 72 extern void write_socket (int which, void *packet, int length); 74 extern int read_socket (int which, void *packet, int length, int waiting);
|
/macosx-10.10.1/ppp-786.1.1/Family/ |
H A D | ppp_ipv6.c | 69 mbuf_t packet, char* header); 71 mbuf_t *packet, const struct sockaddr *dest, 185 called from dlil when a packet from the interface is to be dispatched to 188 the packet is in the mbuf chain m without 192 mbuf_t packet, char* header) 194 LOGMBUF("ppp_ipv6_input", packet); 196 if (proto_input(PF_INET6, packet)) 197 mbuf_freem(packet); 206 mbuf_t *packet, const struct sockaddr *dest, 211 LOGMBUF("ppp_ipv6_preoutput", *packet); 191 ppp_ipv6_input(ifnet_t ifp, protocol_family_t protocol, mbuf_t packet, char* header) argument 205 ppp_ipv6_preoutput(ifnet_t ifp, protocol_family_t protocol, mbuf_t *packet, const struct sockaddr *dest, void *route, char *frame_type, char *link_layer_dest) argument [all...] |
H A D | ppp_ip.c | 71 mbuf_t packet, char* header); 73 mbuf_t *packet, const struct sockaddr *dest, 207 called from dlil when a packet from the interface is to be dispatched to 210 the packet is in the mbuf chain m without 214 mbuf_t packet, char* header) 217 LOGMBUF("ppp_ip_input", packet); 219 if (proto_input(PF_INET, packet)) 220 mbuf_freem(packet); 229 mbuf_t *packet, const struct sockaddr *dest, 236 LOGMBUF("ppp_ip_preoutput", *packet); 213 ppp_ip_input(ifnet_t ifp, protocol_family_t protocol, mbuf_t packet, char* header) argument 228 ppp_ip_preoutput(ifnet_t ifp, protocol_family_t protocol, mbuf_t *packet, const struct sockaddr *dest, void *route, char *frame_type, char *link_layer_dest) argument [all...] |
/macosx-10.10.1/xnu-2782.1.97/bsd/netinet/ |
H A D | in_arp.h | 50 * interface is called to create an arp request packet. 51 * @param interface The interface the packet is being sent on. 52 * @param ip_dest The ip destination of the packet. 56 * @param packet The packet being transmitted. 58 * this function returns EJUSTRETURN, the packet has been queued 61 * the packet. 66 size_t ll_dest_len, route_t hint, mbuf_t packet); 71 size_t ll_dest_len, route_t hint, mbuf_t packet); 77 * inbound arp packets. The caller should parse the ARP packet t [all...] |