Tags » Packet

Capturing First Packet using C code

http://yuba.stanford.edu/~casado/pcap/section2.html

/***************************************************
* file:     testpcap1.c
* Date:     Thu Mar 08 17:14:36 MST 2001 
* Author:   Martin Casado
* Location: LAX Airport (hehe)
*
* Simple single packet capture program
*****************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <pcap.h> /* if this gives you an error try pcap/pcap.h */
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netinet/if_ether.h> /* includes net/ethernet.h */

int main(int argc, char **argv)
{
    int i;
    char *dev; 
    char errbuf;
    pcap_t* descr;
    const u_char *packet;
    struct pcap_pkthdr hdr;     /* pcap.h */
    struct ether_header *eptr;  /* net/ethernet.h */

    u_char *ptr; /* printing out hardware header info */

    /* grab a device to peak into... 1,505 more words
Network

Miles to go...

After a delightful trek to Korigad near picturesque Lonavala, fatigued, my friend and I stepped into what appeared to be an outlandish world on Platform Number 6. 365 more words

People

B Day Math III Homework 11.5.14

For next class please complete the 2.4 packet and the 2.4 Check Your Understanding (CYU) at the end of each packet.

Math III Homework

A Day Math III Homework 11.3.14

For next class please complete the 2.4 and 2.5 Check Your Understandings (CYUs) at the end of each packet.

Math III Homework

Radiance

“Keep glowing always

Hope for best

Do the best

All around people begin glowing

The confidence of boss will reflect on their subordinates.

Confidence of relation reflects glow in members of family around” 207 more words