Beispiel #1
0
int main()
{
  u_int8_t buf [BUFSZ];
  u_int8_t ie [IESZ];
  char leader [LEADERSZ];

  encode_ie (buf, BUFSZ,
             ie, IESZ,
             leader, LEADERSZ);

  return 0;
}
static int
giwscan_cb(const struct ieee80211_scan_entry *se)
{
  u_int8_t buf[BUFSZ];
  char rsn_leader [LEADERSZ];

  /* Everything up to this point seems irrelevant to the following. */

  if (se->se_rsn_ie != NULL) {
    if (se->se_rsn_ie[0] == IEEE80211_ELEMID_RSN)
      encode_ie(buf, sizeof(buf),
                se->se_rsn_ie, se->se_rsn_ie[1] + 2,
                rsn_leader, sizeof(rsn_leader));
  }
  
  return 0;
}
static int giwscan_cb(struct ieee80211_scan_entry  const  *se ) 
{ u_int8_t buf[(256 + 1) + 2] ;
  char rsn_leader[1] ;
  int __retres ;
  
  {if (se->se_rsn_ie != (void *)0) {if ((int )*(se->se_rsn_ie + 0) == 200) {
                                      encode_ie((void *)(buf), sizeof(buf),
                                                (u_int8_t const   *)se->se_rsn_ie,
                                                (unsigned int )((int )*(
                                                                se->se_rsn_ie + 1) + 2),
                                                (char const   *)(rsn_leader),
                                                sizeof(rsn_leader) - 1U);}
     }
  
  __retres = 0;
  return (__retres);}

}