| 1 | /* |
| 2 | * Copyright (C) 2006-2018 Thomas d'Otreppe <[email protected]> |
| 3 | * Copyright (C) 2006-2009 Martin Beck <[email protected]> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
| 18 | * |
| 19 | * |
| 20 | * In addition, as a special exception, the copyright holders give |
| 21 | * permission to link the code of portions of this program with the |
| 22 | * OpenSSL library under certain conditions as described in each |
| 23 | * individual source file, and distribute linked combinations |
| 24 | * including the two. |
| 25 | * You must obey the GNU General Public License in all respects |
| 26 | * for all of the code used other than OpenSSL. * If you modify |
| 27 | * file(s) with this exception, you may extend this exception to your |
| 28 | * version of the file(s), but you are not obligated to do so. * If you |
| 29 | * do not wish to do so, delete this exception statement from your |
| 30 | * version. * If you delete this exception statement from all source |
| 31 | * files in the program, then also delete it here. |
| 32 | */ |
| 33 | |
| 34 | #ifdef HAVE_CONFIG_Hcxx . . $ `<built-in>:411:9`! |
| 35 | #include "config.h"cxx . . $ `<file>/config.h`/ |
| 36 | #endif |
| 37 | |
| 38 | #include <string.h> |
| 39 | #include <stdlib.h> |
| 40 | #include <stdio.h> |
| 41 | #include <errno.h> |
| 42 | #include <time.h> |
| 43 | #include <sys/time.h> |
| 44 | |
| 45 | #include "aircrack-ng/defs.h"cxx . . $ `<file>/include/aircrack-ng/defs.h`/ |
| 46 | #include "aircrack-ng/support/common.h"cxx . . $ `<file>/include/aircrack-ng/support/common.h`/ |
| 47 | #include "aircrack-ng/support/fragments.h"cxx . . $ `<file>/include/aircrack-ng/support/fragments.h`/ |
| 48 | #include "aircrack-ng/crypto/crypto.h"cxx . . $ `<file>/include/aircrack-ng/crypto/crypto.h`/ |
| 49 | |
| 50 | extern pFrag_tcxx . . $ pFrag_t# rFragmentcxx . . $ rFragment.; |
| 51 | |
| 52 | int addFragcxx . . $ addFrag(bbf16a83cb26c2bb).(unsigned char * packet, |
| 53 | unsigned char * smac, |
| 54 | int len, |
| 55 | int crypt, |
| 56 | unsigned char * wepkey, |
| 57 | int weplen) |
| 58 | { |
| 59 | pFrag_tcxx . . $ pFrag_t# cur = rFragmentcxx . . $ rFragment.; |
| 60 | int seq, frag, wep, z, i; |
| 61 | unsigned char frame[4096]; |
| 62 | unsigned char K[128]; |
| 63 | |
| 64 | if (packet == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) return (-1); |
| 65 | if (smac == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) return (-1); |
| 66 | if (len <= 32 || len > 2000) return (-1); |
| 67 | if (rFragmentcxx . . $ rFragment. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) return (-1); |
| 68 | |
| 69 | memsetcxx . . $ memset(d1de1e4fb215f1c6).(frame, 0, sizeof(frame)); |
| 70 | memcpycxx . . $ memcpy(cc817cb175f282d).(frame, packet, (size_t) len); |
| 71 | |
| 72 | z = ((frame[1] & 3) != 3) ? 24 : 30; |
| 73 | frag = frame[22] & 0x0F; |
| 74 | seq = (frame[22] >> 4) | (frame[23] << 4); |
| 75 | wep = (frame[1] & 0x40) >> 6; |
| 76 | |
| 77 | ALLEGEcxx . . $ `include/aircrack-ng/defs.h:42:9`!(frag >= 0 && frag <= 15); //-V560 |
| 78 | |
| 79 | if (wep && crypt != CRYPT_WEPcxx . . $ `include/aircrack-ng/crypto/crypto.h:81:9`!) return (-1); |
| 80 | |
| 81 | if (wep) |
| 82 | { |
| 83 | // decrypt it |
| 84 | memcpycxx . . $ memcpy(cc817cb175f282d).(K, frame + z, 3); |
| 85 | memcpycxx . . $ memcpy(cc817cb175f282d).(K + 3, wepkey, (size_t) weplen); |
| 86 | |
| 87 | if (decrypt_wepcxx . . $ decrypt_wep(ba07669c0fa85ec5).(frame + z + 4, len - z - 4, K, 3 + weplen) == 0 |
| 88 | && (len - z - 4 > 8)) |
| 89 | { |
| 90 | printfcxx . . $ printf(581fddd72a8db8fc).("error decrypting... len: %d\n", len - z - 4); |
| 91 | return (-1); |
| 92 | } |
| 93 | |
| 94 | /* WEP data packet was successfully decrypted, * |
| 95 | * remove the WEP IV & ICV and write the data */ |
| 96 | |
| 97 | len -= 8; |
| 98 | |
| 99 | memcpycxx . . $ memcpy(cc817cb175f282d).(frame + z, frame + z + 4, (size_t) len - z); |
| 100 | |
| 101 | frame[1] &= 0xBF; |
| 102 | } |
| 103 | |
| 104 | while (cur->nextcxx . . $ Fragment_list#next. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 105 | { |
| 106 | cur = cur->nextcxx . . $ Fragment_list#next.; |
| 107 | if ((memcmpcxx . . $ memcmp(36f949851efa3055).(smac, cur->sourcecxx . . $ Fragment_list#source., 6) == 0) && (seq == cur->sequencecxx . . $ Fragment_list#sequence.) |
| 108 | && (wep == cur->wepcxx . . $ Fragment_list#wep.)) |
| 109 | { |
| 110 | // entry already exists, update |
| 111 | if (cur->fragmentcxx . . $ Fragment_list#fragment.[frag] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) return (0); |
| 112 | |
| 113 | if ((frame[1] & 0x04) == 0) |
| 114 | { |
| 115 | cur->fragnumcxx . . $ Fragment_list#fragnum. = (char) frag; // no higher frag number possible |
| 116 | } |
| 117 | cur->fragmentcxx . . $ Fragment_list#fragment.[frag] = (unsigned char *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64).((size_t) len - z); |
| 118 | ALLEGEcxx . . $ `include/aircrack-ng/defs.h:42:9`!(cur->fragment[frag] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 119 | memcpycxx . . $ memcpy(cc817cb175f282d).(cur->fragmentcxx . . $ Fragment_list#fragment.[frag], frame + z, (size_t) len - z); |
| 120 | cur->fragmentlencxx . . $ Fragment_list#fragmentlen.[frag] = (short) (len - z); |
| 121 | gettimeofdaycxx . . $ gettimeofday(ee8865a94200b3d6).(&cur->accesscxx . . $ Fragment_list#access., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 122 | |
| 123 | return (0); |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | // new entry, first fragment received |
| 128 | // alloc mem |
| 129 | cur->nextcxx . . $ Fragment_list#next. = (pFrag_tcxx . . $ pFrag_t#) malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(sizeof(struct Fragment_listcxx . . $ Fragment_list#)); |
| 130 | ALLEGEcxx . . $ `include/aircrack-ng/defs.h:42:9`!(cur->next != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 131 | cur = cur->nextcxx . . $ Fragment_list#next.; |
| 132 | |
| 133 | for (i = 0; i < 16; i++) |
| 134 | { |
| 135 | cur->fragmentcxx . . $ Fragment_list#fragment.[i] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 136 | cur->fragmentlencxx . . $ Fragment_list#fragmentlen.[i] = 0; |
| 137 | } |
| 138 | |
| 139 | if ((frame[1] & 0x04) == 0) |
| 140 | { |
| 141 | cur->fragnumcxx . . $ Fragment_list#fragnum. = (char) frag; // no higher frag number possible |
| 142 | } |
| 143 | else |
| 144 | { |
| 145 | cur->fragnumcxx . . $ Fragment_list#fragnum. = 0; |
| 146 | } |
| 147 | |
| 148 | // remove retry & more fragments flag |
| 149 | frame[1] &= 0xF3; |
| 150 | // set frag number to 0 |
| 151 | frame[22] &= 0xF0; |
| 152 | memcpycxx . . $ memcpy(cc817cb175f282d).(cur->sourcecxx . . $ Fragment_list#source., smac, 6); |
| 153 | cur->sequencecxx . . $ Fragment_list#sequence. = (uint16_tcxx . . $ uint16_t#) seq; |
| 154 | cur->headercxx . . $ Fragment_list#header. = (unsigned char *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64).((size_t) z); |
| 155 | ALLEGEcxx . . $ `include/aircrack-ng/defs.h:42:9`!(cur->header != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 156 | memcpycxx . . $ memcpy(cc817cb175f282d).(cur->headercxx . . $ Fragment_list#header., frame, (size_t) z); |
| 157 | cur->headerlencxx . . $ Fragment_list#headerlen. = (int16_tcxx . . $ int16_t#) z; |
| 158 | cur->fragmentcxx . . $ Fragment_list#fragment.[frag] = (unsigned char *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64).((size_t) len - z); |
| 159 | ALLEGEcxx . . $ `include/aircrack-ng/defs.h:42:9`!(cur->fragment[frag] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 160 | memcpycxx . . $ memcpy(cc817cb175f282d).(cur->fragmentcxx . . $ Fragment_list#fragment.[frag], frame + z, len - z); |
| 161 | cur->fragmentlencxx . . $ Fragment_list#fragmentlen.[frag] = (int16_tcxx . . $ int16_t#)(len - z); |
| 162 | cur->wepcxx . . $ Fragment_list#wep. = (int8_tcxx . . $ int8_t#) wep; |
| 163 | gettimeofdaycxx . . $ gettimeofday(ee8865a94200b3d6).(&cur->accesscxx . . $ Fragment_list#access., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 164 | |
| 165 | cur->nextcxx . . $ Fragment_list#next. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 166 | |
| 167 | return (0); |
| 168 | } |
| 169 | |
| 170 | int timeoutFragcxx . . $ timeoutFrag(b126dc7c1de90089).(void) |
| 171 | { |
| 172 | pFrag_tcxx . . $ pFrag_t# old, cur = rFragmentcxx . . $ rFragment.; |
| 173 | struct timevalcxx . . $ timeval# tv; |
| 174 | int64_tcxx . . $ int64_t# timediff; |
| 175 | int i; |
| 176 | |
| 177 | if (rFragmentcxx . . $ rFragment. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) return (-1); |
| 178 | |
| 179 | gettimeofdaycxx . . $ gettimeofday(ee8865a94200b3d6).(&tv, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 180 | |
| 181 | while (cur->nextcxx . . $ Fragment_list#next. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 182 | { |
| 183 | old = cur->nextcxx . . $ Fragment_list#next.; |
| 184 | timediff = (tv.tv_seccxx . . $ timeval#tv_sec. - old->accesscxx . . $ Fragment_list#access..tv_seccxx . . $ timeval#tv_sec.) * 1000000UL |
| 185 | + (tv.tv_useccxx . . $ timeval#tv_usec. - old->accesscxx . . $ Fragment_list#access..tv_useccxx . . $ timeval#tv_usec.); |
| 186 | if (timediff > FRAG_TIMEOUTcxx . . $ `include/aircrack-ng/support/fragments.h:41:9`!) |
| 187 | { |
| 188 | // remove captured fragments |
| 189 | if (old->headercxx . . $ Fragment_list#header. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) freecxx . . $ free(5d22bdacc48458e8).(old->headercxx . . $ Fragment_list#header.); |
| 190 | for (i = 0; i < 16; i++) |
| 191 | if (old->fragmentcxx . . $ Fragment_list#fragment.[i] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) freecxx . . $ free(5d22bdacc48458e8).(old->fragmentcxx . . $ Fragment_list#fragment.[i]); |
| 192 | |
| 193 | cur->nextcxx . . $ Fragment_list#next. = old->nextcxx . . $ Fragment_list#next.; |
| 194 | freecxx . . $ free(5d22bdacc48458e8).(old); |
| 195 | } |
| 196 | cur = cur->nextcxx . . $ Fragment_list#next.; |
| 197 | } |
| 198 | |
| 199 | return (0); |
| 200 | } |
| 201 | |
| 202 | int delFragcxx . . $ delFrag(7405b416d0535413).(unsigned char * smac, int sequence) |
| 203 | { |
| 204 | pFrag_tcxx . . $ pFrag_t# old, cur = rFragmentcxx . . $ rFragment.; |
| 205 | int i; |
| 206 | |
| 207 | if (rFragmentcxx . . $ rFragment. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) return (-1); |
| 208 | if (smac == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) return (-1); |
| 209 | if (sequence < 0) return (-1); |
| 210 | |
| 211 | while (cur->nextcxx . . $ Fragment_list#next. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 212 | { |
| 213 | old = cur->nextcxx . . $ Fragment_list#next.; |
| 214 | if (memcmpcxx . . $ memcmp(36f949851efa3055).(smac, old->sourcecxx . . $ Fragment_list#source., 6) == 0 && old->sequencecxx . . $ Fragment_list#sequence. == sequence) |
| 215 | { |
| 216 | // remove captured fragments |
| 217 | if (old->headercxx . . $ Fragment_list#header. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) freecxx . . $ free(5d22bdacc48458e8).(old->headercxx . . $ Fragment_list#header.); |
| 218 | for (i = 0; i < 16; i++) |
| 219 | if (old->fragmentcxx . . $ Fragment_list#fragment.[i] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) freecxx . . $ free(5d22bdacc48458e8).(old->fragmentcxx . . $ Fragment_list#fragment.[i]); |
| 220 | |
| 221 | cur->nextcxx . . $ Fragment_list#next. = old->nextcxx . . $ Fragment_list#next.; |
| 222 | freecxx . . $ free(5d22bdacc48458e8).(old); |
| 223 | |
| 224 | return (0); |
| 225 | } |
| 226 | cur = cur->nextcxx . . $ Fragment_list#next.; |
| 227 | } |
| 228 | |
| 229 | return (0); |
| 230 | } |
| 231 | |
| 232 | unsigned char * getCompleteFragcxx . . $ getCompleteFrag(b486f6ec697a5750).(unsigned char * smac, |
| 233 | int sequence, |
| 234 | size_t * packetlen, |
| 235 | int crypt, |
| 236 | unsigned char * wepkey, |
| 237 | int weplen) |
| 238 | { |
| 239 | pFrag_tcxx . . $ pFrag_t# old, cur = rFragmentcxx . . $ rFragment.; |
| 240 | int i, len = 0; |
| 241 | unsigned char * packet = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 242 | unsigned char K[128]; |
| 243 | |
| 244 | if (rFragmentcxx . . $ rFragment. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) return (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 245 | if (smac == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) return (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 246 | |
| 247 | while (cur->nextcxx . . $ Fragment_list#next. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 248 | { |
| 249 | old = cur->nextcxx . . $ Fragment_list#next.; |
| 250 | if (memcmpcxx . . $ memcmp(36f949851efa3055).(smac, old->sourcecxx . . $ Fragment_list#source., 6) == 0 && old->sequencecxx . . $ Fragment_list#sequence. == sequence) |
| 251 | { |
| 252 | // check if all frags available |
| 253 | if (old->fragnumcxx . . $ Fragment_list#fragnum. == 0) return (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 254 | |
| 255 | for (i = 0; i <= old->fragnumcxx . . $ Fragment_list#fragnum.; i++) |
| 256 | { |
| 257 | if (old->fragmentcxx . . $ Fragment_list#fragment.[i] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) return (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 258 | len += old->fragmentlencxx . . $ Fragment_list#fragmentlen.[i]; |
| 259 | } |
| 260 | |
| 261 | if (len > 2000) return (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 262 | |
| 263 | if (old->wepcxx . . $ Fragment_list#wep.) |
| 264 | { |
| 265 | if (crypt == CRYPT_WEPcxx . . $ `include/aircrack-ng/crypto/crypto.h:81:9`!) |
| 266 | { |
| 267 | packet = (unsigned char *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64).( |
| 268 | (size_t) len + old->headerlencxx . . $ Fragment_list#headerlen. + 8); |
| 269 | ALLEGEcxx . . $ `include/aircrack-ng/defs.h:42:9`!(packet != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 270 | K[0] = rand_u8cxx . . $ rand_u8(7c4be072098b358f).(); |
| 271 | K[1] = rand_u8cxx . . $ rand_u8(7c4be072098b358f).(); |
| 272 | K[2] = rand_u8cxx . . $ rand_u8(7c4be072098b358f).(); |
| 273 | K[3] = (uint8_tcxx . . $ uint8_t#)(0x00); |
| 274 | |
| 275 | memcpycxx . . $ memcpy(cc817cb175f282d).(packet, old->headercxx . . $ Fragment_list#header., (size_t) old->headerlencxx . . $ Fragment_list#headerlen.); |
| 276 | len = old->headerlencxx . . $ Fragment_list#headerlen.; |
| 277 | memcpycxx . . $ memcpy(cc817cb175f282d).(packet + len, K, 4); //-V512 |
| 278 | len += 4; |
| 279 | |
| 280 | for (i = 0; i <= old->fragnumcxx . . $ Fragment_list#fragnum.; i++) |
| 281 | { |
| 282 | memcpycxx . . $ memcpy(cc817cb175f282d).(packet + len, |
| 283 | old->fragmentcxx . . $ Fragment_list#fragment.[i], |
| 284 | (size_t) old->fragmentlencxx . . $ Fragment_list#fragmentlen.[i]); |
| 285 | len += old->fragmentlencxx . . $ Fragment_list#fragmentlen.[i]; |
| 286 | } |
| 287 | |
| 288 | /* write crc32 value behind data */ |
| 289 | if (add_crc32cxx . . $ add_crc32(7405b416d0535413).(packet + old->headerlencxx . . $ Fragment_list#headerlen. + 4, |
| 290 | len - old->headerlencxx . . $ Fragment_list#headerlen. - 4) |
| 291 | != 0) |
| 292 | return (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 293 | |
| 294 | len += 4; // icv |
| 295 | |
| 296 | memcpycxx . . $ memcpy(cc817cb175f282d).(K + 3, wepkey, (size_t) weplen); |
| 297 | |
| 298 | encrypt_wepcxx . . $ encrypt_wep(ba07669c0fa85ec5).(packet + old->headerlencxx . . $ Fragment_list#headerlen. + 4, |
| 299 | len - old->headerlencxx . . $ Fragment_list#headerlen. - 4, |
| 300 | K, |
| 301 | weplen + 3); |
| 302 | |
| 303 | packet[1] = (uint8_tcxx . . $ uint8_t#)(packet[1] | 0x40); |
| 304 | |
| 305 | // delete captured fragments |
| 306 | delFragcxx . . $ delFrag(7405b416d0535413).(smac, sequence); |
| 307 | *packetlen = (size_t) len; |
| 308 | return (packet); |
| 309 | } |
| 310 | else |
| 311 | return (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 312 | } |
| 313 | else |
| 314 | { |
| 315 | packet |
| 316 | = (unsigned char *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64).((size_t) len + old->headerlencxx . . $ Fragment_list#headerlen.); |
| 317 | ALLEGEcxx . . $ `include/aircrack-ng/defs.h:42:9`!(packet != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 318 | memcpycxx . . $ memcpy(cc817cb175f282d).(packet, old->headercxx . . $ Fragment_list#header., (size_t) old->headerlencxx . . $ Fragment_list#headerlen.); |
| 319 | len = old->headerlencxx . . $ Fragment_list#headerlen.; |
| 320 | for (i = 0; i <= old->fragnumcxx . . $ Fragment_list#fragnum.; i++) |
| 321 | { |
| 322 | memcpycxx . . $ memcpy(cc817cb175f282d).(packet + len, |
| 323 | old->fragmentcxx . . $ Fragment_list#fragment.[i], |
| 324 | (size_t) old->fragmentlencxx . . $ Fragment_list#fragmentlen.[i]); |
| 325 | len += old->fragmentlencxx . . $ Fragment_list#fragmentlen.[i]; |
| 326 | } |
| 327 | |
| 328 | // delete captured fragments |
| 329 | delFragcxx . . $ delFrag(7405b416d0535413).(smac, sequence); |
| 330 | *packetlen = (size_t) len; |
| 331 | return (packet); |
| 332 | } |
| 333 | } |
| 334 | |
| 335 | cur = cur->nextcxx . . $ Fragment_list#next.; |
| 336 | } |
| 337 | |
| 338 | return (packet); |
| 339 | } |