p80211metamsg.c
来自「Linux的无线局域网方案是一个Linux设备驱动程序和子系统 一揽子方案的用」· C语言 代码 · 共 2,183 行 · 第 1/5 页
C
2,183 行
/* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint}}; /* end of dot11req_scan_results metadata list */UINT32 MKREQMETASIZE(dot11req_scan_results) = sizeof(MKREQMETANAME(dot11req_scan_results))/sizeof(p80211meta_t);/*--------------------------------------------------------------------*//* metadata for the dot11req_join request message arguments */extern UINT32 MKREQMETASIZE(dot11req_join);p80211meta_t MKREQMETANAME(dot11req_join)[] = {{ /* name */ (char *)&(MKREQMETASIZE(dot11req_join)), /* did */ 0, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ NULL, /* fromtextptr */ NULL, /* validfunptr */ NULL},{ /* name */ MKITEMNAME("bssid"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(ISREQUIRED, ISREQUEST, 0UL), /* min */ 0, /* max */ 0, /* maxlen */ MAXLEN_PSTR6, /* minlen */ MAXLEN_PSTR6, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_octetstr, /* fromtextptr */ p80211_fromtext_octetstr, /* validfunptr */ p80211_isvalid_octetstr},{ /* name */ MKITEMNAME("joinfailuretimeout"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(ISREQUIRED, ISREQUEST, 0UL), /* min */ 1, /* max */ UINT32_MAX, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("basicrate1"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(ISREQUIRED, ISREQUEST, 0UL), /* min */ 2, /* max */ 127, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("basicrate2"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(0UL, ISREQUEST, 0UL), /* min */ 2, /* max */ 127, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("basicrate3"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(0UL, ISREQUEST, 0UL), /* min */ 2, /* max */ 127, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("basicrate4"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(0UL, ISREQUEST, 0UL), /* min */ 2, /* max */ 127, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("basicrate5"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(0UL, ISREQUEST, 0UL), /* min */ 2, /* max */ 127, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("basicrate6"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(0UL, ISREQUEST, 0UL), /* min */ 2, /* max */ 127, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("basicrate7"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(0UL, ISREQUEST, 0UL), /* min */ 2, /* max */ 127, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("basicrate8"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(0UL, ISREQUEST, 0UL), /* min */ 2, /* max */ 127, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("operationalrate1"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(ISREQUIRED, ISREQUEST, 0UL), /* min */ 2, /* max */ 127, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("operationalrate2"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(0UL, ISREQUEST, 0UL), /* min */ 2, /* max */ 127, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("operationalrate3"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(0UL, ISREQUEST, 0UL), /* min */ 2, /* max */ 127, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("operationalrate4"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(0UL, ISREQUEST, 0UL), /* min */ 2, /* max */ 127, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("operationalrate5"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(0UL, ISREQUEST, 0UL), /* min */ 2, /* max */ 127, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("operationalrate6"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(0UL, ISREQUEST, 0UL), /* min */ 2, /* max */ 127, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("operationalrate7"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(0UL, ISREQUEST, 0UL), /* min */ 2, /* max */ 127, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("operationalrate8"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(0UL, ISREQUEST, 0UL), /* min */ 2, /* max */ 127, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("resultcode"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(ISREQUIRED, 0UL, ISCONFIRM), /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ &MKENUMNAME(resultcode), /* collptr */ NULL, /* totextptr */ p80211_totext_enumint, /* fromtextptr */ p80211_fromtext_enumint, /* validfunptr */ p80211_isvalid_enumint}}; /* end of dot11req_join request message metadata list */UINT32 MKREQMETASIZE(dot11req_join) = sizeof(MKREQMETANAME(dot11req_join))/sizeof(p80211meta_t);/*--------------------------------------------------------------------*//* metadata for the dot11req_authenticate request message arguments */extern UINT32 MKREQMETASIZE(dot11req_authenticate);p80211meta_t MKREQMETANAME(dot11req_authenticate)[] = {{ /* name */ (char *)&(MKREQMETASIZE(dot11req_authenticate)), /* did */ 0, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ NULL, /* fromtextptr */ NULL, /* validfunptr */ NULL},{ /* name */ MKITEMNAME("peerstaaddress"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(ISREQUIRED, ISREQUEST, ISCONFIRM), /* min */ 0, /* max */ 0, /* maxlen */ MAXLEN_PSTR6, /* minlen */ MAXLEN_PSTR6, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_octetstr, /* fromtextptr */ p80211_fromtext_octetstr, /* validfunptr */ p80211_isvalid_octetstr},{ /* name */ MKITEMNAME("authenticationtype"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(ISREQUIRED, ISREQUEST, ISCONFIRM), /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ &MKENUMNAME(authalg), /* collptr */ NULL, /* totextptr */ p80211_totext_enumint, /* fromtextptr */ p80211_fromtext_enumint, /* validfunptr */ p80211_isvalid_enumint},{ /* name */ MKITEMNAME("authenticationfailuretimeout"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(ISREQUIRED, ISREQUEST, 0UL), /* min */ 1, /* max */ UINT32_MAX, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_boundedint, /* fromtextptr */ p80211_fromtext_boundedint, /* validfunptr */ p80211_isvalid_boundedint},{ /* name */ MKITEMNAME("resultcode"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(ISREQUIRED, 0UL, ISCONFIRM), /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ &MKENUMNAME(resultcode), /* collptr */ NULL, /* totextptr */ p80211_totext_enumint, /* fromtextptr */ p80211_fromtext_enumint, /* validfunptr */ p80211_isvalid_enumint}}; /* end of dot11req_authenticate request message metadata list */UINT32 MKREQMETASIZE(dot11req_authenticate) = sizeof(MKREQMETANAME(dot11req_authenticate))/sizeof(p80211meta_t);/*--------------------------------------------------------------------*//* metadata for the dot11req_deauthenticate request message arguments */extern UINT32 MKREQMETASIZE(dot11req_deauthenticate);p80211meta_t MKREQMETANAME(dot11req_deauthenticate)[] = {{ /* name */ (char *)&(MKREQMETASIZE(dot11req_deauthenticate)), /* did */ 0, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ NULL, /* fromtextptr */ NULL, /* validfunptr */ NULL},{ /* name */ MKITEMNAME("peerstaaddress"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(ISREQUIRED, ISREQUEST, ISCONFIRM), /* min */ 0, /* max */ 0, /* maxlen */ MAXLEN_PSTR6, /* minlen */ MAXLEN_PSTR6, /* enumptr */ NULL, /* collptr */ NULL, /* totextptr */ p80211_totext_octetstr, /* fromtextptr */ p80211_fromtext_octetstr, /* validfunptr */ p80211_isvalid_octetstr},{ /* name */ MKITEMNAME("reasoncode"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(ISREQUIRED, ISREQUEST, 0UL), /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ &MKENUMNAME(reason), /* collptr */ NULL, /* totextptr */ p80211_totext_enumint, /* fromtextptr */ p80211_fromtext_enumint, /* validfunptr */ p80211_isvalid_enumint},{ /* name */ MKITEMNAME("resultcode"), /* did */ 0, /* flags */ P80211ITEM_SETFLAGS(ISREQUIRED, 0UL, ISCONFIRM), /* min */ 0, /* max */ 0, /* maxlen */ 0,
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?