Home
last modified time | relevance | path

Searched refs:packet (Results 1 – 25 of 125) sorted by relevance

12345

/titanic_44/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dlm_send.c103 IN lm_packet_t *packet, in lm_pre_process_lso_packet() argument
131 packet->u1.tx.hdr_nbds = hdr_nbds; in lm_pre_process_lso_packet()
134 static void lm_process_lso_packet(IN lm_packet_t *packet, in lm_process_lso_packet() argument
150 if ((packet->l2pkt_tx_info->lso_ip_hdr_len + packet->l2pkt_tx_info->lso_tcp_hdr_len) > 120) { in lm_process_lso_packet()
158 parse_bd_e1x->lso_mss = mm_cpu_to_le16(packet->l2pkt_tx_info->lso_mss); in lm_process_lso_packet()
159 parse_bd_e1x->ip_id = mm_cpu_to_le16(packet->l2pkt_tx_info->lso_ipid); in lm_process_lso_packet()
160 parse_bd_e1x->tcp_send_seq = mm_cpu_to_le32(packet->l2pkt_tx_info->lso_tcp_send_seq); in lm_process_lso_packet()
161 …parse_bd_e1x->tcp_flags = packet->l2pkt_tx_info->lso_tcp_flags; // no endianity since it is… in lm_process_lso_packet()
167 if GET_FLAGS(packet->l2pkt_tx_info->flags, LM_TX_FLAG_TCP_LSO_SNAP_FRAME) in lm_process_lso_packet()
175 …parse_bd_e2->parsing_data |= ETH_TX_PARSE_BD_E2_LSO_MSS & (packet->l2pkt_tx_info->lso_mss << ETH_T… in lm_process_lso_packet()
[all …]
H A Dlm_recv.c94 lm_packet_t *packet,/* optional. */ in lm_post_buffers() argument
139 if(packet) in lm_post_buffers()
142 DbgBreakIfFastPath(SIG(packet) != L2PACKET_RX_SIG); in lm_post_buffers()
146 s_list_push_tail(&rxq_chain_common->free_descq, &packet->link); in lm_post_buffers()
147 packet = NULL; in lm_post_buffers()
152 packet = (lm_packet_t *) s_list_pop_head(&rxq_chain_common->free_descq); in lm_post_buffers()
159 while(packet) in lm_post_buffers()
167 prod_bseq += packet->l2pkt_rx_info->mem_size; in lm_post_buffers()
174 rcq_prod_bseq += packet->l2pkt_rx_info->mem_size; in lm_post_buffers()
180 packet->u1.rx.next_bd_idx = lm_bd_chain_prod_idx(rx_chain_bd); in lm_post_buffers()
[all …]
/titanic_44/usr/src/uts/common/ipp/ipgpc/
H A Dclassifier.c76 common_classify(ipgpc_packet_t *packet, ht_match_t *fid_table, in common_classify() argument
83 ipgpc_findfilters(IPGPC_TABLE_DIR, packet->direction, fid_table); in common_classify()
91 ipgpc_findfilters(IPGPC_TABLE_IF, packet->if_index, fid_table); in common_classify()
99 ipgpc_findfilters(IPGPC_BA_DSID, packet->dsfield, fid_table); in common_classify()
107 ipgpc_findfilters(IPGPC_TABLE_UID, packet->uid, fid_table); in common_classify()
115 ipgpc_findfilters(IPGPC_TABLE_PROJID, packet->projid, fid_table); in common_classify()
122 if (packet->proto > 0) { in common_classify()
124 packet->proto, fid_table); in common_classify()
136 if (packet->sport > 0) { in common_classify()
138 packet->sport, fid_table); in common_classify()
[all …]
/titanic_44/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios_name.c130 struct name_packet *packet; member
156 struct name_packet *packet);
187 struct name_packet packet; in smb_end_node_challenge() local
197 if ((answer = reply_info->packet->answer) == 0) in smb_end_node_challenge()
203 packet.info = NAME_QUERY_REQUEST | NM_FLAGS_UNICAST; in smb_end_node_challenge()
204 packet.qdcount = 1; /* question entries */ in smb_end_node_challenge()
205 packet.question = &question; in smb_end_node_challenge()
206 packet.ancount = 0; /* answer recs */ in smb_end_node_challenge()
207 packet.answer = NULL; in smb_end_node_challenge()
208 packet.nscount = 0; /* authority recs */ in smb_end_node_challenge()
[all …]
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dchpw.c22 krb5_data *packet) in krb5int_mk_chpw_req() argument
43 packet->length = 6 + ap_req->length + cipherpw.length; in krb5int_mk_chpw_req()
44 packet->data = (char *) malloc(packet->length); in krb5int_mk_chpw_req()
45 if (packet->data == NULL) in krb5int_mk_chpw_req()
50 ptr = packet->data; in krb5int_mk_chpw_req()
54 *ptr++ = (packet->length>> 8) & 0xff; in krb5int_mk_chpw_req()
55 *ptr++ = packet->length & 0xff; in krb5int_mk_chpw_req()
84 krb5int_rd_chpw_rep(krb5_context context, krb5_auth_context auth_context, krb5_data *packet, int *r… in krb5int_rd_chpw_rep() argument
98 if (packet->length < 4) in krb5int_rd_chpw_rep()
103 ptr = packet->data; in krb5int_rd_chpw_rep()
[all …]
/titanic_44/usr/src/uts/common/io/e1000g/
H A De1000g_tx.c89 e1000g_free_tx_swpkt(register p_tx_sw_packet_t packet) in e1000g_free_tx_swpkt() argument
91 switch (packet->data_transfer_type) { in e1000g_free_tx_swpkt()
93 packet->tx_buf->len = 0; in e1000g_free_tx_swpkt()
97 dvma_unload(packet->tx_dma_handle, 0, -1); in e1000g_free_tx_swpkt()
101 (void) ddi_dma_unbind_handle(packet->tx_dma_handle); in e1000g_free_tx_swpkt()
111 ASSERT(packet->mp == NULL); in e1000g_free_tx_swpkt()
113 packet->data_transfer_type = USE_NONE; in e1000g_free_tx_swpkt()
114 packet->num_mblk_frag = 0; in e1000g_free_tx_swpkt()
115 packet->num_desc = 0; in e1000g_free_tx_swpkt()
160 p_tx_sw_packet_t packet; in e1000g_send() local
[all …]
H A De1000g_rx.c60 e1000g_rxfree_func(p_rx_sw_packet_t packet) in e1000g_rxfree_func() argument
69 if (packet->ref_cnt == 0) { in e1000g_rxfree_func()
77 rx_data = (e1000g_rx_data_t *)(uintptr_t)packet->rx_data; in e1000g_rxfree_func()
79 if (packet->mp == NULL) { in e1000g_rxfree_func()
83 address = (unsigned char *)packet->rx_buf->address; in e1000g_rxfree_func()
85 packet->mp = desballoc((unsigned char *) in e1000g_rxfree_func()
86 address, packet->rx_buf->size, in e1000g_rxfree_func()
87 BPRI_MED, &packet->free_rtn); in e1000g_rxfree_func()
98 QUEUE_PUSH_TAIL(&rx_data->recycle_list, &packet->Link); in e1000g_rxfree_func()
102 ref_cnt = atomic_dec_32_nv(&packet->ref_cnt); in e1000g_rxfree_func()
[all …]
H A De1000g_alloc.c1127 p_tx_sw_packet_t packet; in e1000g_alloc_tx_packets() local
1149 for (j = 0, packet = tx_ring->packet_area; in e1000g_alloc_tx_packets()
1150 j < Adapter->tx_freelist_num; j++, packet++) { in e1000g_alloc_tx_packets()
1152 ASSERT(packet != NULL); in e1000g_alloc_tx_packets()
1167 &packet->tx_dma_handle); in e1000g_alloc_tx_packets()
1174 &packet->tx_dma_handle); in e1000g_alloc_tx_packets()
1181 packet->tx_dma_handle = NULL; in e1000g_alloc_tx_packets()
1194 tx_buf = packet->tx_buf; in e1000g_alloc_tx_packets()
1212 ASSERT(packet->tx_dma_handle != NULL); in e1000g_alloc_tx_packets()
1216 dvma_release(packet->tx_dma_handle); in e1000g_alloc_tx_packets()
[all …]
/titanic_44/usr/src/lib/krb5/kadm5/clnt/
H A Dchpw.c22 krb5_data *packet) in krb5int_mk_chpw_req() argument
43 packet->length = 6 + ap_req->length + cipherpw.length; in krb5int_mk_chpw_req()
44 packet->data = (char *) malloc(packet->length); in krb5int_mk_chpw_req()
45 if (packet->data == NULL) in krb5int_mk_chpw_req()
50 ptr = packet->data; in krb5int_mk_chpw_req()
54 *ptr++ = (packet->length>> 8) & 0xff; in krb5int_mk_chpw_req()
55 *ptr++ = packet->length & 0xff; in krb5int_mk_chpw_req()
87 krb5int_rd_chpw_rep(krb5_context context, krb5_auth_context auth_context, krb5_data *packet, int *r… in krb5int_rd_chpw_rep() argument
101 if (packet->length < 4) in krb5int_rd_chpw_rep()
106 ptr = packet->data; in krb5int_rd_chpw_rep()
[all …]
/titanic_44/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dradius_packet.c54 radius_packet_t *packet; /* Outbound RADIUS packet */ in snd_radius_request() local
67 packet = (radius_packet_t *)data; in snd_radius_request()
68 packet->code = req_data->code; in snd_radius_request()
69 packet->identifier = req_data->identifier; in snd_radius_request()
70 bcopy(req_data->authenticator, packet->authenticator, in snd_radius_request()
72 ptr = packet->data; in snd_radius_request()
122 bcopy(&total_length, packet->length, sizeof (ushort_t)); in snd_radius_request()
168 radius_packet_t *packet; in rcv_radius_response() local
199 packet = (radius_packet_t *)tmp_data; in rcv_radius_response()
200 bcopy(packet->length, &len, sizeof (ushort_t)); in rcv_radius_response()
[all …]
/titanic_44/usr/src/uts/common/io/comstar/port/iscsit/
H A Discsit_radiuspacket.c59 radius_packet_t *packet; /* Outbound RADIUS packet */ in iscsit_snd_radius_request() local
71 packet = (radius_packet_t *)data; in iscsit_snd_radius_request()
72 packet->code = req_data->code; in iscsit_snd_radius_request()
73 packet->identifier = req_data->identifier; in iscsit_snd_radius_request()
74 bcopy(req_data->authenticator, packet->authenticator, in iscsit_snd_radius_request()
76 ptr = packet->data; in iscsit_snd_radius_request()
126 bcopy(&total_length, packet->length, sizeof (ushort_t)); in iscsit_snd_radius_request()
172 radius_packet_t *packet; in iscsit_rcv_radius_response() local
214 packet = (radius_packet_t *)tmp_data; in iscsit_rcv_radius_response()
215 bcopy(packet->length, &declared_len, sizeof (ushort_t)); in iscsit_rcv_radius_response()
[all …]
/titanic_44/usr/src/cmd/picl/plugins/sun4u/lw8/fruaccess/
H A Dlibfruaccess.c72 int fru_get_packets(segment_hdl_t segment, packet_t *packet,
74 int fru_update_payload(packet_hdl_t packet, const void *data,
76 int fru_append_packet(segment_hdl_t segment, packet_t *packet,
79 int fru_delete_packet(packet_hdl_t packet,
343 fru_get_packets(segment_hdl_t segment, packet_t *packet, int max_packets, in fru_get_packets() argument
354 packets.frus = packet; in fru_get_packets()
363 fru_get_payload(packet_hdl_t packet, void *buffer, size_t nbytes, in fru_get_payload() argument
372 payload.fru_hdl = packet; in fru_get_payload()
382 fru_update_payload(packet_hdl_t packet, const void *data, size_t nbytes, in fru_update_payload() argument
397 payload.fru_hdl = packet; in fru_update_payload()
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Ddemand.c59 struct packet { struct
61 struct packet *next; argument
65 static struct packet *pend_q; argument
66 static struct packet *pend_qtail;
136 struct packet *pkt, *nextpkt; in demand_discard()
275 struct packet *pkt;
286 pkt = (struct packet *) malloc(sizeof(struct packet) + len);
308 struct packet *pkt, *prev, *nextpkt;
/titanic_44/usr/src/grub/grub-0.97/netboot/
H A Dw89c840.c452 memcpy(nic->packet, le32desc_to_virt(w840private.rx_ring[entry].buffer1), pkt_len); in w89c840_poll()
463 nic->packet[0], nic->packet[1], nic->packet[2], nic->packet[3], in w89c840_poll()
464 nic->packet[4], nic->packet[5], nic->packet[6], nic->packet[7], in w89c840_poll()
465 nic->packet[8], nic->packet[9], nic->packet[10], in w89c840_poll()
466 nic->packet[11], nic->packet[12], nic->packet[13], in w89c840_poll()
467 nic->packet[14], nic->packet[15], nic->packet[16], in w89c840_poll()
468 nic->packet[17]); in w89c840_poll()
H A D3c595.c269 insw(BASE + VX_W1_RX_PIO_RD_1, nic->packet, rx_fifo / 2); in t595_poll()
271 nic->packet[rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1); in t595_poll()
282 insw(BASE + VX_W1_RX_PIO_RD_1, nic->packet+nic->packetlen, rx_fifo / 2); in t595_poll()
284 nic->packet[nic->packetlen+rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1); in t595_poll()
305 type = (nic->packet[12]<<8) | nic->packet[13]; in t595_poll()
306 if(nic->packet[0]+nic->packet[1]+nic->packet[2]+nic->packet[3]+nic->packet[4]+ in t595_poll()
307 nic->packet[5] == 0xFF*ETH_ALEN) in t595_poll()
/titanic_44/usr/src/lib/libresolv2/common/resolv/
H A Dres_update.c97 u_char *packet; in res_nupdate() local
103 packet = malloc(NS_MAXMSG); in res_nupdate()
104 if (packet == NULL) { in res_nupdate()
160 packet, NS_MAXMSG); in res_nupdate()
171 n = res_nsendsigned(statp, packet, n, key, in res_nupdate()
174 n = res_nsend(statp, packet, n, answer, sizeof answer); in res_nupdate()
198 free(packet); in res_nupdate()
/titanic_44/usr/src/lib/libfru/libfruraw/
H A Dfru_access.h97 int fru_get_packets(segment_hdl_t segment, packet_t *packet,
99 ssize_t fru_get_payload(packet_hdl_t packet, void *buffer,
101 int fru_update_payload(packet_hdl_t packet, const void *data, size_t nbytes,
103 int fru_append_packet(segment_hdl_t segment, packet_t *packet,
106 int fru_delete_packet(packet_hdl_t packet, segment_hdl_t *newsegment,
/titanic_44/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/
H A Dfru_access.h99 int fru_get_packets(segment_hdl_t segment, packet_t *packet,
101 ssize_t fru_get_payload(packet_hdl_t packet, void *buffer,
103 int fru_update_payload(packet_hdl_t packet, const void *data, size_t nbytes,
105 int fru_append_packet(segment_hdl_t segment, packet_t *packet,
108 int fru_delete_packet(packet_hdl_t packet, segment_hdl_t *newsegment,
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtrace.h83 trace(&(ifp)->int_input, (src), packet, (size), \
88 packet, (size)); \
93 trace(&(ifp)->int_output, (dst), packet, (size), \
98 packet, (size)); \
H A Dmain.c50 char *packet; variable
184 packet = (char *)malloc(IPV6_MAX_PACKET); in main()
185 if (packet == NULL) { in main()
189 msg = (struct rip6 *)packet; in main()
/titanic_44/usr/src/uts/common/sys/usb/clients/usbinput/usbwcm/
H A Dusbwcm.h435 #define PACKET_BIT(b, s) ((packet[b] >> (s)) & 1)
437 ((((s) + (n) > 32 ? ((packet[(b) - 4]) << (32 - (s))) : 0) | \
438 ((s) + (n) > 24 ? ((packet[(b) - 3]) << (24 - (s))) : 0) | \
439 ((s) + (n) > 16 ? ((packet[(b) - 2]) << (16 - (s))) : 0) | \
440 ((s) + (n) > 8 ? ((packet[(b) - 1]) << (8 - (s))) : 0) | \
441 ((packet[(b)]) >> (s))) & \
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/
H A Dsyncloop.c325 static char packet[MAXPACKET]; variable
354 packet[i] = (data == -1) ? rand() : data; in first_packet()
366 if (write(dfd, packet, reclen) != reclen) { in first_packet()
380 if (len == reclen && memcmp(packet, bigbuf, len) == 0) in first_packet()
389 printhex(packet, reclen); in first_packet()
452 memcmp(packet, bigbuf, len) != 0) { in many_packets()
459 printhex(packet, reclen); in many_packets()
477 (void) write(dfd, packet, reclen); in many_packets()
494 if (len != reclen || memcmp(packet, bigbuf, len) != 0) { in many_packets()
500 printhex(packet, reclen); in many_packets()
/titanic_44/usr/src/uts/common/inet/ip/
H A Dip_netinfo.c905 ip_inject(net_handle_t neti, inject_t style, net_inject_t *packet) in ip_inject() argument
911 return (ip_inject_impl(style, packet, B_FALSE, ns->netstack_ip)); in ip_inject()
919 ipv6_inject(net_handle_t neti, inject_t style, net_inject_t *packet) in ipv6_inject() argument
924 return (ip_inject_impl(style, packet, B_TRUE, ns->netstack_ip)); in ipv6_inject()
935 ip_inject_impl(inject_t style, net_inject_t *packet, boolean_t isv6, in ip_inject_impl() argument
943 ASSERT(packet != NULL); in ip_inject_impl()
944 ASSERT(packet->ni_packet != NULL); in ip_inject_impl()
945 ASSERT(packet->ni_packet->b_datap->db_type == M_DATA); in ip_inject_impl()
952 inject->inj_data = *packet; in ip_inject_impl()
966 inject->inj_data = *packet; in ip_inject_impl()
[all …]
/titanic_44/usr/src/cmd/picl/plugins/sun4u/snowbird/lib/fruaccess/
H A Dlibfruaccess.c622 ipmi_fru_get_packets(segment_hdl_t segment, packet_t *packet, in ipmi_fru_get_packets() argument
641 pkt_hash != NULL; count++, packet++) { in ipmi_fru_get_packets()
643 packet->handle = pkt_hash->obj_hdl; in ipmi_fru_get_packets()
644 (void) memcpy(&packet->tag, &pkt_hash->u.pkt_obj->tag, 4); in ipmi_fru_get_packets()
682 ipmi_fru_get_payload(packet_hdl_t packet, void *buffer, size_t nbytes, in ipmi_fru_get_payload() argument
693 packet_hash_obj = lookup_handle_object(packet, PACKET_TYPE); in ipmi_fru_get_payload()
733 ipmi_fru_update_payload(packet_hdl_t packet, const void *data, in ipmi_fru_update_payload() argument
742 ipmi_fru_append_packet(segment_hdl_t segment, packet_t *packet, in ipmi_fru_append_packet() argument
752 ipmi_fru_delete_packet(packet_hdl_t packet, in ipmi_fru_delete_packet() argument
2373 sun_fru_get_packets(segment_hdl_t segment, packet_t *packet, int maxpackets, in sun_fru_get_packets() argument
[all …]
/titanic_44/usr/src/cmd/ipf/examples/
H A Dexample.sr2 # log all inbound packet on le0 which has IP options present
14 # (NOTE: if it were an inbound TCP packet with the SYN flag set and it
36 # block (and stop matching) any packet with IP options present.
40 # allow any packet through

12345