Lines Matching refs:hdr

55 		ng_l2cap_cmd_hdr_t	 hdr;				\
65 c->hdr.code = NG_L2CAP_CMD_REJ; \
66 c->hdr.ident = (_ident); \
67 c->hdr.length = sizeof(c->param); \
73 c->hdr.length += sizeof(c->data.mtu); \
77 c->hdr.length += sizeof(c->data.cid); \
80 (_m)->m_pkthdr.len = (_m)->m_len = sizeof(c->hdr) + \
81 c->hdr.length; \
83 c->hdr.length = htole16(c->hdr.length); \
90 ng_l2cap_cmd_hdr_t hdr; \
101 c->hdr.code = NG_L2CAP_CON_REQ; \
102 c->hdr.ident = (_ident); \
103 c->hdr.length = htole16(sizeof(c->param)); \
113 ng_l2cap_cmd_hdr_t hdr; \
124 c->hdr.code = NG_L2CAP_CON_RSP; \
125 c->hdr.ident = (_ident); \
126 c->hdr.length = htole16(sizeof(c->param)); \
138 ng_l2cap_cmd_hdr_t hdr; \
151 c->hdr.code = NG_L2CAP_CFG_REQ; \
152 c->hdr.ident = (_ident); \
153 c->hdr.length = sizeof(c->param); \
161 c->hdr.length += l; \
165 c->hdr.length = htole16(c->hdr.length); \
172 ng_l2cap_cmd_hdr_t hdr; \
185 c->hdr.code = NG_L2CAP_CFG_RSP; \
186 c->hdr.ident = (_ident); \
187 c->hdr.length = sizeof(c->param); \
196 c->hdr.length += l; \
200 c->hdr.length = htole16(c->hdr.length); \
206 ng_l2cap_cmd_hdr_t hdr; \
215 c->hdr.code = NG_L2CAP_CMD_PARAM_UPDATE_RESPONSE; \
216 c->hdr.ident = (_ident); \
217 c->hdr.length = sizeof(c->result); \
236 ng_l2cap_cfg_opt_t hdr; \
241 o->hdr.type = NG_L2CAP_OPT_MTU; \
242 o->hdr.length = sizeof(o->val); \
251 ng_l2cap_cfg_opt_t hdr; \
256 o->hdr.type = NG_L2CAP_OPT_FLUSH_TIMO; \
257 o->hdr.length = sizeof(o->val); \
266 ng_l2cap_cfg_opt_t hdr; \
271 o->hdr.type = NG_L2CAP_OPT_QOS; \
272 o->hdr.length = sizeof(o->val); \
300 ng_l2cap_cmd_hdr_t hdr; \
311 c->hdr.code = NG_L2CAP_DISCON_REQ; \
312 c->hdr.ident = (_ident); \
313 c->hdr.length = htole16(sizeof(c->param)); \
323 ng_l2cap_cmd_hdr_t hdr; \
334 c->hdr.code = NG_L2CAP_DISCON_RSP; \
335 c->hdr.ident = (_ident); \
336 c->hdr.length = htole16(sizeof(c->param)); \
370 ng_l2cap_cmd_hdr_t hdr; \
381 c->hdr.code = NG_L2CAP_INFO_REQ; \
382 c->hdr.ident = (_ident); \
383 c->hdr.length = htole16(sizeof(c->param)); \
392 ng_l2cap_cmd_hdr_t hdr; \
402 c->hdr.code = NG_L2CAP_INFO_RSP; \
403 c->hdr.ident = (_ident); \
404 c->hdr.length = sizeof(c->param); \
413 c->hdr.length += sizeof((c->data.mtu.mtu)); \
418 (_m)->m_pkthdr.len = (_m)->m_len = sizeof(c->hdr) + \
419 c->hdr.length; \
421 c->hdr.length = htole16(c->hdr.length); \