udp_impl.h (222c5bce) | udp_impl.h (da14cebe) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 12 unchanged lines hidden (view full) --- 21/* 22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23 * Use is subject to license terms. 24 */ 25 26#ifndef _UDP_IMPL_H 27#define _UDP_IMPL_H 28 | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 12 unchanged lines hidden (view full) --- 21/* 22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23 * Use is subject to license terms. 24 */ 25 26#ifndef _UDP_IMPL_H 27#define _UDP_IMPL_H 28 |
29#pragma ident "%Z%%M% %I% %E% SMI" 30 | |
31/* 32 * UDP implementation private declarations. These interfaces are 33 * used to build the IP module and are not meant to be accessed 34 * by any modules except IP itself. They are undocumented and are 35 * subject to change without notice. 36 */ 37 38#ifdef __cplusplus --- 115 unchanged lines hidden (view full) --- 154 155/* 156 * dev_q is the write side queue of the entity below IP. 157 * If there is a module below IP, we can't optimize by looking 158 * at q_first of the queue below IP. If the driver is directly 159 * below IP and if the q_first is NULL, we optimize by not doing 160 * the canput check 161 */ | 29/* 30 * UDP implementation private declarations. These interfaces are 31 * used to build the IP module and are not meant to be accessed 32 * by any modules except IP itself. They are undocumented and are 33 * subject to change without notice. 34 */ 35 36#ifdef __cplusplus --- 115 unchanged lines hidden (view full) --- 152 153/* 154 * dev_q is the write side queue of the entity below IP. 155 * If there is a module below IP, we can't optimize by looking 156 * at q_first of the queue below IP. If the driver is directly 157 * below IP and if the q_first is NULL, we optimize by not doing 158 * the canput check 159 */ |
162#define DEV_Q_IS_FLOW_CTLED(dev_q) \ | 160#define DEV_Q_FLOW_BLOCKED(dev_q) \ |
163 (((dev_q)->q_next != NULL || (dev_q)->q_first != NULL) && \ 164 !canput(dev_q)) 165 166/* Kstats */ 167typedef struct udp_stat { /* Class "net" kstats */ 168 kstat_named_t udp_ip_send; 169 kstat_named_t udp_ip_ire_send; 170 kstat_named_t udp_ire_null; --- 195 unchanged lines hidden (view full) --- 366 uint_t *, uchar_t *, void *, cred_t *, mblk_t *); 367extern mblk_t *udp_snmp_get(queue_t *, mblk_t *); 368extern int udp_snmp_set(queue_t *, t_scalar_t, t_scalar_t, uchar_t *, int); 369extern void udp_close_free(conn_t *); 370extern void udp_quiesce_conn(conn_t *); 371extern void udp_ddi_init(void); 372extern void udp_ddi_destroy(void); 373extern void udp_resume_bind(conn_t *, mblk_t *); | 161 (((dev_q)->q_next != NULL || (dev_q)->q_first != NULL) && \ 162 !canput(dev_q)) 163 164/* Kstats */ 165typedef struct udp_stat { /* Class "net" kstats */ 166 kstat_named_t udp_ip_send; 167 kstat_named_t udp_ip_ire_send; 168 kstat_named_t udp_ire_null; --- 195 unchanged lines hidden (view full) --- 364 uint_t *, uchar_t *, void *, cred_t *, mblk_t *); 365extern mblk_t *udp_snmp_get(queue_t *, mblk_t *); 366extern int udp_snmp_set(queue_t *, t_scalar_t, t_scalar_t, uchar_t *, int); 367extern void udp_close_free(conn_t *); 368extern void udp_quiesce_conn(conn_t *); 369extern void udp_ddi_init(void); 370extern void udp_ddi_destroy(void); 371extern void udp_resume_bind(conn_t *, mblk_t *); |
374extern void udp_output(conn_t *connp, mblk_t *mp, struct sockaddr *addr, 375 socklen_t addrlen); 376extern void udp_wput(queue_t *, mblk_t *); | 372extern void udp_wput(queue_t *, mblk_t *); |
377 378extern int udp_opt_default(queue_t *q, t_scalar_t level, t_scalar_t name, 379 uchar_t *ptr); 380extern int udp_opt_get(queue_t *q, t_scalar_t level, t_scalar_t name, 381 uchar_t *ptr); 382extern int udp_opt_set(queue_t *q, uint_t optset_context, 383 int level, int name, uint_t inlen, uchar_t *invalp, uint_t *outlenp, 384 uchar_t *outvalp, void *thisdg_attrs, cred_t *cr, mblk_t *mblk); --- 16 unchanged lines hidden --- | 373 374extern int udp_opt_default(queue_t *q, t_scalar_t level, t_scalar_t name, 375 uchar_t *ptr); 376extern int udp_opt_get(queue_t *q, t_scalar_t level, t_scalar_t name, 377 uchar_t *ptr); 378extern int udp_opt_set(queue_t *q, uint_t optset_context, 379 int level, int name, uint_t inlen, uchar_t *invalp, uint_t *outlenp, 380 uchar_t *outvalp, void *thisdg_attrs, cred_t *cr, mblk_t *mblk); --- 16 unchanged lines hidden --- |