Lines Matching refs:dispatch
35 net_warn_ratelimited("%s: received unknown dispatch\n",
54 static inline bool lowpan_is_frag1(u8 dispatch)
56 return (dispatch & LOWPAN_DISPATCH_FRAG_MASK) == LOWPAN_DISPATCH_FRAG1;
59 static inline bool lowpan_is_fragn(u8 dispatch)
61 return (dispatch & LOWPAN_DISPATCH_FRAG_MASK) == LOWPAN_DISPATCH_FRAGN;
122 static inline bool lowpan_is_esc(u8 dispatch)
124 return dispatch == LOWPAN_DISPATCH_ESC;
138 static inline bool lowpan_is_hc1(u8 dispatch)
140 return dispatch == LOWPAN_DISPATCH_HC1;
154 static inline bool lowpan_is_dff(u8 dispatch)
156 return dispatch == LOWPAN_DISPATCH_DFF;
170 static inline bool lowpan_is_bc0(u8 dispatch)
172 return dispatch == LOWPAN_DISPATCH_BC0;
186 static inline bool lowpan_is_mesh(u8 dispatch)
188 return (dispatch & LOWPAN_DISPATCH_FIRST) == LOWPAN_DISPATCH_MESH;
228 static inline bool lowpan_is_nalp(u8 dispatch)
230 return (dispatch & LOWPAN_DISPATCH_FIRST) == LOWPAN_DISPATCH_NALP;
233 /* Lookup for reserved dispatch values at:
238 static inline bool lowpan_is_reserved(u8 dispatch)
240 return ((dispatch >= 0x44 && dispatch <= 0x4F) ||
241 (dispatch >= 0x51 && dispatch <= 0x5F) ||
242 (dispatch >= 0xc8 && dispatch <= 0xdf) ||
243 dispatch >= 0xe8);
260 /* check if we can dereference the dispatch */