/* * Function ircomm_lmp_connect_response (self, skb) * * * */ int ircomm_lmp_connect_response(struct ircomm_cb *self, struct sk_buff *skb) { int ret; IRDA_DEBUG(0, __FUNCTION__"()\n"); ret = irlmp_connect_response(self->lsap, skb); return 0; }
/* Reserve space for MUX and LAP header */ skb_reserve(tx_skb, LMP_MAX_HEADER); } else { /* * Check that the client has reserved enough space for * headers */ ASSERT(skb_headroom(userdata) >= LMP_MAX_HEADER, return -1;); /* Don't forget to refcount it - should be NULL anyway */ skb_get(userdata); tx_skb = userdata; } ret = irlmp_connect_response(self->lsap, tx_skb); return 0; } static int ircomm_lmp_disconnect_request(struct ircomm_cb *self, struct sk_buff *userdata, struct ircomm_info *info) { struct sk_buff *tx_skb; int ret; IRDA_DEBUG(0, "%s()\n", __FUNCTION__ ); if (!userdata) { tx_skb = dev_alloc_skb(64);