Home
last modified time | relevance | path

Searched refs:sn_type (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/include/net/sctp/
Dulpevent.h153 __u16 sn_type, __u8 on) in sctp_ulpevent_type_set() argument
155 if (sn_type > SCTP_SN_TYPE_MAX) in sctp_ulpevent_type_set()
159 *subscribe |= (1 << (sn_type - SCTP_SN_TYPE_BASE)); in sctp_ulpevent_type_set()
161 *subscribe &= ~(1 << (sn_type - SCTP_SN_TYPE_BASE)); in sctp_ulpevent_type_set()
165 static inline bool sctp_ulpevent_type_enabled(__u16 subscribe, __u16 sn_type) in sctp_ulpevent_type_enabled() argument
167 if (sn_type > SCTP_SN_TYPE_MAX) in sctp_ulpevent_type_enabled()
170 return subscribe & (1 << (sn_type - SCTP_SN_TYPE_BASE)); in sctp_ulpevent_type_enabled()
177 __u16 sn_type; in sctp_ulpevent_is_enabled() local
182 sn_type = sctp_ulpevent_get_notification_type(event); in sctp_ulpevent_is_enabled()
184 return sctp_ulpevent_type_enabled(subscribe, sn_type); in sctp_ulpevent_is_enabled()
/Linux-v5.4/include/uapi/linux/
Dsctp.h619 __u16 sn_type; /* Notification type. */ member
/Linux-v5.4/net/sctp/
Dulpevent.c923 return notification->sn_header.sn_type; in sctp_ulpevent_get_notification_type()
Dsocket.c2212 __u8 *sn_type = (__u8 *)&subscribe; in sctp_setsockopt_events() local
2225 sn_type[i]); in sctp_setsockopt_events()
5584 __u8 *sn_type = (__u8 *)&subscribe; in sctp_getsockopt_events() local
5595 sn_type[i] = sctp_ulpevent_type_enabled(sctp_sk(sk)->subscribe, in sctp_getsockopt_events()