/********************************************************************* * * Filename: irlmp_event.h * Version: 0.1 * Description: IrDA-LMP event handling * Status: Experimental. * Author: Dag Brattli * Created at: Mon Aug 4 20:40:53 1997 * Modified at: Thu Jul 8 12:18:54 1999 * Modified by: Dag Brattli * * Copyright (c) 1997, 1999 Dag Brattli , * All Rights Reserved. * Copyright (c) 2000-2002 Jean Tourrilhes * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * Neither Dag Brattli nor University of Tromsø admit liability nor * provide warranty for any of this software. This material is * provided "AS-IS" and at no charge. * ********************************************************************/ #ifndef IRLMP_EVENT_H #define IRLMP_EVENT_H /* A few forward declarations (to make compiler happy) */ struct irlmp_cb; struct lsap_cb; struct lap_cb; struct discovery_t; /* LAP states */ typedef enum { /* IrLAP connection control states */ LAP_STANDBY, /* No LAP connection */ LAP_U_CONNECT, /* Starting LAP connection */ LAP_ACTIVE, /* LAP connection is active */ } IRLMP_STATE; /* LSAP connection control states */ typedef enum { LSAP_DISCONNECTED, /* No LSAP connection */ LSAP_CONNECT, /* Connect indication from peer */ LSAP_CONNECT_PEND, /* Connect request from service user */ LSAP_DATA_TRANSFER_READY, /* LSAP connection established */ LSAP_SETUP, /* Trying to set up LSAP connection */ LSAP_SETUP_PEND, /* Request to start LAP connection */ } LSAP_STATE; typedef enum { /* LSAP events */ LM_CONNECT_REQUEST, LM_CONNECT_CONFIRM, LM_CONNECT_RESPONSE, LM_CONNECT_INDICATION, LM_DISCONNECT_INDICATION, LM_DISCONNECT_REQUEST, LM_DATA_REQUEST, LM_UDATA_REQUEST, LM_DATA_INDICATION, LM_UDATA_INDICATION, LM_WATCHDOG_TIMEOUT, /* IrLAP events */ LM_LAP_CONNECT_REQUEST, LM_LAP_CONNECT_INDICATION, LM_LAP_CONNECT_CONFIRM, LM_LAP_DISCONNECT_INDICATION, LM_LAP_DISCONNECT_REQUEST, LM_LAP_DISCOVERY_REQUEST, LM_LAP_DISCOVERY_CONFIRM, LM_LAP_IDLE_TIMEOUT, } IRLMP_EVENT; extern const char *const irlmp_state[]; extern const char *const irlsap_state[]; void irlmp_watchdog_timer_expired(void *data); void irlmp_discovery_timer_expired(void *data); void irlmp_idle_timer_expired(void *data); void irlmp_do_lap_event(struct lap_cb *self, IRLMP_EVENT event, struct sk_buff *skb); int irlmp_do_lsap_event(struct lsap_cb *self, IRLMP_EVENT event, struct sk_buff *skb); #endif /* IRLMP_EVENT_H */ ='/cgit.cgi/linux/net-next.git/log/net?h=nds-private-remove&id=5226b7919641f285bf0f8db84deeb3920b160ec7'>net/nfc/hci/hcp.c
t-next.git/commit/include/net/sctp/sctp.h?id=242bd2d519d7194633e309286ba7ba29a1ad63e8'>sctp: implement sender-side procedures for Add Incoming/Outgoing Streams ↵
AgeCommit message (Expand)AuthorFilesLines
Xin Long1-0/+2
Request Parameter This patch is to implement Sender-Side Procedures for the Add Outgoing and Incoming Streams Request Parameter described in rfc6525 section 5.1.5-5.1.6. It is also to add sockopt SCTP_ADD_STREAMS in rfc6525 section 6.3.4 for users. Signed-off-by: Xin Long <lucien.xin@gmail.com> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-09sctp: implement sender-side procedures for SSN/TSN Reset Request ParameterXin Long1-0/+1
This patch is to implement Sender-Side Procedures for the SSN/TSN Reset Request Parameter descibed in rfc6525 section 5.1.4. It is also to add sockopt SCTP_RESET_ASSOC in rfc6525 section 6.3.3 for users. Signed-off-by: Xin Long <lucien.xin@gmail.com> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-07sctp: add dst_pending_confirm flagJulian Anastasov1-4/+2
Add new transport flag to allow sockets to confirm neighbour. When same struct dst_entry can be used for many different neighbours we can not use it for pending confirmations. The flag is propagated from transport to every packet. It is reset when cached dst is reset. Reported-by: YueHaibing <yuehaibing@huawei.com> Fixes: 5110effee8fd ("net: Do delayed neigh confirmation.") Fixes: f2bb4bedf35d ("ipv4: Cache output routes in fib_info nexthops.") Signed-off-by: Julian Anastasov <ja@ssi.bg> Acked-by: Eric Dumazet <edumazet@google.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>