Jump to content

Grayfm

Members
  • Posts

    7
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by Grayfm

  1. Sorry i think i phrased that wrong i meant ban the mac address of the "offenders" router, although i might not understanding correctly but wouldn't that be theoretically possible?
  2. Wow, very interesting thread responses, I do agree that any who can do at least a couple minutes of research can find out how to change there mac address on there computer. But doesn't everything that connects to the internet have a mac address, ie. routers?. And im guessing its harder to change the mac address on your router if not near impossible. Now i guess back to the question is it possible to get the routers mac address?
  3. I know there are methods in C/C++ to retrieve a mac address, but getting the mac address of someone connecting to you is a little harder I'm guessing. I'm guessing it would be hard to retrieve the actual mac address of the computer but at very least there might be a way to find the router's address, at least this is what i'm thinking as i could be absolutely wrong. While researching this topic i found the following code snippet. include <iostream> #include <stdio.h> #include <netdb.h> #include <netinet/if_ether.h> int _get_MAC(void) { int sock,sockfd, n, cnt; char buffer[2048]; unsigned char *iphead, *ethhead; struct ether_addr ether; if ( (sock=socket(PF_PACKET, SOCK_RAW,htons(ETH_P_IP)))<0){ perror("socket"); exit(1); } while (1) { if (n = recvfrom(sock,buffer,2048,0,NULL,NULL)== -1) { perror("recvfrom"); close(sock); exit(1); } ethhead = (unsigned char *)buffer; if (ethhead != NULL){ iphead = (unsigned char *)(buffer+14); // Skip Ethernet header printf("\\n--------------------------------------" "\\nMAC destino (server): " "%02x:%02x:%02x:%02x:%02x:%02x\\n", ethhead[0],ethhead[1],ethhead[2], ethhead[3],ethhead[4],ethhead[5]); printf("MAC origen (CAL30x): " "%02x:%02x:%02x:%02x:%02x:%02x\\n", ethhead[6],ethhead[7],ethhead[8], ethhead[9],ethhead[10],ethhead[11]); if (*iphead==0x45) { // Double check for IPv4 and no options present printf("IP destino (server): %d.%d.%d.%d\\n", iphead[12],iphead[13], iphead[14],iphead[15]); printf("IP origen (CAL30x): %d.%d.%d.%d\\n", iphead[16],iphead[17], iphead[18],iphead[19]); printf("Protocolo (UDP=11): %02x Hex\\n",iphead[9]); } } } return 0; } int main(int argc, char **argv) { _get_MAC(); return 0; } It's written in C and i think it would be very cool if this could be applied to the mangos server. I'm not sure if this is a question or a comment :lol:. I guess my question is with the method that the client connects to mangos is this possible or not. I'm sure I'm missing something but i just wanted to put it out there. Any comments, suggestion to point me in the write direction, or anything at all would appreciated.
  4. To use multi-cores to speed up the compilation just add the -j flag to your make command when compiling. This basically compile with multiple threads and utilizes the cores. An example of the command would be make -j2 for dual core make -j4 for quad core etc.
  5. Figured as much. Sounds like kind of a bigger project as you basically have to allow for objects to have HP. Any pointer or people who have been working on it already before i dive into it?
  6. I have been wondering what needs to be done to allow for destructible object such as Wintergrasp walls and such. Im sure some people have already noticed that even with the correct flag number in the object template the objects are still not destructible. Is there something I'm missing, or is it more of a core support issue. If its more the core support issue, could someone point me in the right direction as to where to start in allowing such support. Any help/answers are appreciated. I hope this is the right forum to post this in as well. Thanks, Grayfm
  7. This error is not caused by the vehicle patch. Most likely an error related to an unsupported ACE build, but could be wrong.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use