Search results

  1. D

    EEEPC - wpa_supplicant

    Hi, I have installed FreeBsd FreeBSD 8.3-RELEASE on eeepc 1005ha. I have a problem that wpa_supplicant works bad. Connection is stable only for five minutes then there is a disconnection and I have to reconnect manually. Is there something that I have to install? Bye enrico
  2. D

    Kqueue - Kevent

    Hi, What's that? A mailing list?
  3. D

    Kqueue - Kevent

    If something is not clear please post it. I didn't even find an answer to my question on the net!
  4. D

    Kqueue - Kevent

    Hi, I am Italian student, so sorry for my bad english. I would understand some things about functions in the title. I have to check if some ICMP Packets are arrived, so int kqueue_descr = kqueue(); /* Descriptor */ if( kqueue_descr == -1) { perror("Error in...
  5. D

    raw socket

    Sorry, but I have a new problem. If I compile the code above, with an old version of FreeBSD I receive this error : /usr/include/netinet/ip.h:160: error: syntax error before "n_long" /usr/include/netinet/ip.h:163: error: syntax error before "n_long" Why?
  6. D

    raw socket

    Solved: #ifndef __linux__ void spoofa(smurfina *p,smurfina *q) { const int PKT_LEN=9999; int sd; char buffer[PKT_LEN]; struct ip *ip = (struct ip *) buffer; struct udphdr *udp = (struct udphdr *) (buffer + sizeof(struct ip)); struct sockaddr_in sin; int one = 1; const int *val = &one...
  7. D

    raw socket

    Boyssssssss. Thanks a lot, followed your suggestions, I have corrected code and now it's ok! void spoofa(smurfina *p,smurfina *q) { const int PKT_LEN=9999; int sd; char buffer[PKT_LEN]; struct ip *ip = (struct ip *) buffer; struct udphdr *udp = (struct udphdr *) (buffer + sizeof(struct ip))...
  8. D

    raw socket

    Thanks, I have changed that fields but I receive error too: ./server.h:402: error: dereferencing pointer to incomplete type ./server.h:403: error: dereferencing pointer to incomplete type ./server.h:404: error: dereferencing pointer to incomplete type ./server.h:405: error: dereferencing...
  9. D

    raw socket

    Sorry but I'm not sure that I have understood! I should replace iphdr with ip, simply? So the code was not portable from BSD machine and linux machine, true?
  10. D

    raw socket

    I'm writing code about raw sockets. In linux this code is ok: void spoofa(smurfina *p,smurfina *q) { const int PKT_LEN=9999; int sd; char buffer[PKT_LEN]; struct iphdr *ip = (struct iphdr *) buffer; struct udphdr *udp = (struct udphdr *) (buffer + sizeof(struct iphdr)); struct sockaddr_in...
  11. D

    fstab and usb

    Sorry, I'm Italian, so sorry for my bad English. I wish to mount usb storage (4 gb Kingston) by normal user, not Super, it's possible? In linux,this is possibile using option users in /etc/fstab simply. In FreeBSD this is possible? I've tried, but system give me error if I use users option...
Back
Top