Skip to content

Commit

Permalink
larger buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
vanhauser-thc committed Apr 26, 2021
1 parent f059b37 commit 3e6b7ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion thc-ipv6-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ char *thc_pcap_close(pcap_t *pcap_link) {
/* wow, ugly, complicated work for something a standard linux library could do
* as well :-) */
void thc_notation2beauty(unsigned char *ipv6) {
char buf[40], buf2[40] = ":0:0:", *ptr, *ptr2 = NULL;
char buf[64], buf2[64] = ":0:0:", *ptr, *ptr2 = NULL;
int i, j, k = 0, l = 0;

if (ipv6[39] != 0 || strlen(ipv6) != 39) return;
Expand Down
2 changes: 1 addition & 1 deletion thcping6.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ int main(int argc, char *argv[]) {
buf2[1300] = "";
unsigned char *src6 = NULL, *dst6 = NULL, smac[16] = "", dmac[16] = "",
*srcmac = smac, *dstmac = dmac;
char string[255] = "ip6 and dst ", *interface, *d_opt = NULL, *h_opt = NULL,
char string[256] = "ip6 and dst ", *interface, *d_opt = NULL, *h_opt = NULL,
*oo, *ol, *ov;
int pkt1_len = 0, flags = 0, frag = 0, alert = 0, quick = 0, route = 0,
ttl = 255, label = 0, class = 0, i, j, k, ether = -1, xl = 0,
Expand Down

0 comments on commit 3e6b7ef

Please sign in to comment.