Socket Programming IPSec

From: Babar Qaisrani (babarq_at_gmail.com)
Date: 06/28/04

  • Next message: His: "Have you ever thought secretly about The Simpsons nude?"
    Date: 27 Jun 2004 15:10:50 -0700
    
    

    Hi
    I have a query regarding socket programming . im trying to create a
    dummy IPSec (ESP)header Packet . My Packet looks like
    <code>
    struct mypkt
    {
      struct iphdr ip;
      struct _myesp esp;
      struct tcphdr tcp;
    };
    and
    struct _myesp {
      u_int32_t esp_spi; /* ESP */
      u_int32_t esp_seq; /* Sequence number */
      u_int32_t esp_iv; /* Sequence number */
      u_int8_t esp_padsize;
      u_int8_t esp_next;
      u_int32_t esp_ah; /* Sequence number */
    };
    </code>

    But the problem is that when i send a socket using RAW socket , in
    ethereal it shows IP -ESP ONLY . doesnt shows up the TCP header .
    while testing a Normal IPSec implementation shows up all three layers.

    Lemme know if i should paste complete code.
    Any help is appreciated
    Thanks
    Bob


  • Next message: His: "Have you ever thought secretly about The Simpsons nude?"

    Relevant Pages

    • sosend/soreceive consistency improvements
      ... There's another side to the pluggability, however -- the socket consumers in the kernel, of which there are quite a few -- obviously the socket system calls, but also netgraph, distributed file systems, etc. ... +sosend_generic(so, addr, uio, top, control, flags, td) ... struct sockaddr *addr; ...
      (freebsd-arch)
    • [RFC] Use RCU for tcp_ehash lookup
      ... RCU technique. ... This could possibly be because the hash table size on the machines I was ... parallel to socket input packet processing. ... struct sk_buff *skb); ...
      (Linux-Kernel)
    • Sockets data errors
      ... array, send it over the socket, and then deserialize it. ... the struct, is a value, corresponding to a specific struct. ... of the data (a packet if you will). ...
      (microsoft.public.dotnet.framework)
    • RE: [PATCHv9 3/3] vhost_net: a kernel-level virtio server
      ... Is it the result from the raw socket or through tap? ... struct vhost_dev dev; ... int err, wmem; ... unsigned int next; ...
      (Linux-Kernel)
    • Re: kevent behavior with TCP socket
      ... struct sockaddr_in addr; ... struct kevent sChange; ... printf("Server socket error\n"); ... printf ("Server listen error \n"); ...
      (freebsd-net)