Re: Question on SOCK_RAW, implement a bpf->other host tee

From: Bruce M Simpson (bms_at_spc.org)
Date: 07/19/04

  • Next message: Robert Watson: "Re: Question on SOCK_RAW, implement a bpf->other host tee"
    Date: Sun, 18 Jul 2004 23:19:25 +0100
    To: Robert Watson <rwatson@freebsd.org>
    
    

    On Sun, Jul 18, 2004 at 05:38:22PM -0400, Robert Watson wrote:
    > > I have swapped the ip_len, ip_off fields.
    >
    > Are you sure you need to do this? I thought BPF/PCAP provided those
    > fields in network byte order already, in which case you shouldn't need to
    > touch these fields unless you need to adjust them.

    I think Don is referring to the fact that IP_HDRINCL in our stack expects
    to see these fields in host byte order (as per my update of the ip(4) manual
    page quite recently). Raw socket stuff being different from bpf stuff.

    BMS
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Robert Watson: "Re: Question on SOCK_RAW, implement a bpf->other host tee"

    Relevant Pages

    • RE: Ethernet & DHCP Fails on Cable Modem to Internet
      ... > When I try to activate eth0 using the Network ... > Do you Yahoo!? ...
      (RedHat)
    • RE: How do I max a 6Mbps link
      ... A common way to speed up transfers is to tune your ... but I would start with testing your network. ... To unsubscribe, ...
      (freebsd-isp)
    • RE: How do I max a 6Mbps link
      ... A common way to speed up transfers is to tune your ... but I would start with testing your network. ... To unsubscribe, ...
      (freebsd-questions)
    • Re: problem with netinstall of AMD64 Etch.....
      ... if you receive packets - that's still good -> your internet connection ... if you get an errormessage about interfaceinformation, than you network ... I fired it up and it read in the net install CD for Debian ... To UNSUBSCRIBE, email to debian-user-REQU...@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: Frequent loss of contact with ISP
      ... > unusual error messages. ... Copy /etc/resolv.conf to your home dir: this contains your DNS ... is somewhere in the network config, ... To unsubscribe, ...
      (freebsd-questions)