dear all,
i found that igmp, rsvp uses ip options.
which other protocols use the ip options ..
protocols between 0 to 60 (ip protocol number)
would be fine to know about.
any pointers would be highly valuable to me.
thanks,
kamal
__
Do You Yahoo
--- Gleb Smirnoff <[EMAIL PROTECTED]> wrote:
> On Thu, Feb 02, 2006 at 10:20:46PM -0800, kamal kc wrote:
> k> i want to offload ip checksum calculation to the NIC.
> k> I use 3Com 3c905B-TX NIC cards.
> k>
> k> I found that there are variables::>>
&
dear all,
i want to offload ip checksum calculation to the NIC.
I use 3Com 3c905B-TX NIC cards.
I found that there are variables::>>
int csum_flags; /* flags regarding checksum */
int csum_data; /* data field used by csum routines */
in struct pk
>
> > i don't want to fragment the packet as i think
> > that is too much overhead for 2 bytes. rather i
> > want to increase the mtu.
>
> why increase the mtu when you can decrease it? one
> good example is the
> PPPoE... default mtu size of pppoe is 1492 because
> of the 6 bytes pppoe
> heade
--- Richard A Steenbergen <[EMAIL PROTECTED]> wrote:
> On Fri, Jan 06, 2006 at 10:02:07AM -0800, John-Mark
> Gurney wrote:
> > Nope, for pre-gige, only 1500 MTU is supported...
> This was extended
> > slightly to support vlan tagging, but I believe
> many of the drivers to
> > If you have a good
dear everbody,
i have working to compress/decompress the packets.
i know there are various schemes and facilities to
do so in the freebsd, i have developed the
compression facility myself.
i am just a beginner in freebsd programming and
overall
in network programming.
since i compress packet
> dear everybody,
>
> i modified the bridge.c file and added a routine to
> compress/decompress
sorry everbody the top output was garbled.
a clearer view is below:
top output:
-
last pid: 58610; load averages: 0.06, 0.17, 0.13
up 16+02:58:40 16:23:31
83 processes: 4 runni
dear everybody,
i modified the bridge.c file and added a routine to
compress/decompress
ip packet. i put my code in bdg_forward(). And ran the
pc in bridge mode.
The modified kernel is deployed in network where the
datarate is
about 4 to 6 Mbps. One thing to be noted is that the
pc receives
co
> > for my compression/decompression i use string
> tables and temporary
> > buffers which take about 14KB of memory per
> packet.
>
> If you're allocating 14 KB of data just to send
> (approximately) 1.4 KB
> and then you throw away the 14 KB immediately, it
> sounds terrible.
yes that's true.
dear everybody,
i am trying to compress/decompress ip packets.
for this i have implemented the adaptive lzw compression.
i put the code in the ip_output.c and do my compression/decompression
just before the if_output() function call so that i won't interfere with
the ip processing of the kernel.
dear all,
i have put sshd_enable="YES"
and inetd_enable="YES"
in /etc/rc.conf.
netstat -an also shows that the port numbers
21 and 22 are in listen state
ftp is uncommented in /etc/inetd.conf
but still the ssh/ftp services does not work.
when i ftp from another computer the netstat
shows conne
hello everybody,
i am new to kernel programming.
i am developing a compression/decompression
functionality in the ip layer.
i want to compile the kernel faster.
it would
be ok if the kernel doesn't have support for sound
devices, or other devices like scsi,usb etc. because
i would be using the
> > void copy_the_memorybuffer(struct mbuf **m)
> > {
> >struct mbuf *mbuf_pointer=*m;
> >struct mbuf **next_packet;
> >
> >next_packet=&mbuf_pointer;
> >
> >struct ip *my_ip_hdr;
> >my_ip_hdr=mtod((*next_packet),struct ip *);
> >my_ip_hdr->ip_tos=64;
> >my_ip_hdr->ip_s
> > void copy_the_memorybuffer(struct mbuf **m)
> > {
> >struct mbuf *mbuf_pointer=*m;
> >struct mbuf **next_packet;
> >
> >next_packet=&mbuf_pointer;
> >
> >struct ip *my_ip_hdr;
> >my_ip_hdr=mtod((*next_packet),struct ip *);
> >my_ip_hdr->ip_tos=64;
> >my_ip_hdr->ip_s
> > i changed the ip_tos field of the struct ip and
> computed the checksum
> > by using in_cksum().
> >
> > when the packet uses only one mbuf the computed
> checksum is ok but
> > when the packet uses more than one mbuf then the
> computed checksum is
> > wrong.
>
> Note that the IP header conta
i come across this unusual problem.
i changed the ip_tos field of the struct ip and
computed
the checksum by using in_cksum().
when the packet uses only one mbuf the computed
checksum is ok but when the packet uses more than one
mbuf then the computed checksum is wrong.
eg. pinging with payloa
dear everybody,
i have encountered a problem big enough for me to
handle.
Actually i am trying to compress the data contained
in the ip packets.
i see that the data to be passed by ip to link layer
output routine is contained in mbuf *m.
Now what i tried to do is I tried to copy the original
m
> > sys/malloc.h has function prototypes for malloc()
> > kern/kern_malloc.c defines the malloc()
> >
> > the malloc() definition is
> >
> > void *
> > malloc(size, type, flags)
> > unsigned long size;
> > struct malloc_type *type;
> > int flags;
> >
> > i understand the size and fla
this may be a trivial question for many of you
but i am confused in doing memory allocation in the
kernel.
sys/malloc.h has function prototypes for malloc()
kern/kern_malloc.c defines the malloc()
the malloc() definition is
void *
malloc(size, type, flags)
unsigned long size;
st
--- det_re <[EMAIL PROTECTED]> wrote:
> has anyone seen or implemented packet generator
> capable of reading tcpdump trace file and resend the
> packets back into the wire through bpf in freebsd
> box?
if you are talking about capturing packets by
writing a program then you could use libpcap.a
th
t; ip_input.c and ip_output.c
>
> If you read the book:
> The Implementation (TCP/IP Illustrated, Volume 2)
> by Gary R. Wright, W. Richard Stevens
> You will understand how each and every line of code
> works.
>
> -vaibhave
>
> On Sun, 25 Sep 2005, kamal kc wro
does anybody know
where to start on /usr/src for tcp/ip hack
i need it urgently
any resources, links will be appreciated
thanks,
kamal
__
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
I have made a bridge using the Packet Capture Library
I set the two nics to promiscous mode and transfer packet
between the two packet capture handles
A piece of the code I use for initializing the packet capture device descriptor---
.
pcap_t *pd;
pd = (pcap_t *)malloc(sizeof(*pd));
if (pd ==
i have run into a mysterious problem.
The thing is that i wanted to configure to NIC cards.
I just put the card in the slot and booted FreeBSD. The
card was detected. When i wanted to configure the nic card using the
ifconfig command the following error message was reported.
ifconfig: ioctl (SIOC
i problem i state here is not particularly about freebsd but it's still related to
network
and has recently made me very much confused.
the problem is when i try to put two computers with cyrix 6x86 and intel pentium 4
in the same network there is no communication between the computers.
-
w
first of all thanks for solving my previous problem.
my previous problem was about the ip and ethernet header.
this is how i solved it:
char *sender,*dest;
char *ptr;
struct ether_header eth;
ptr=pcap_next(..);
sender=ether_ntoa(ether->s_host);
printf("%s", sender);
dest=ether_ntoa(ether->
Hi i am new to this mailing list.
I have written a program to capture packets using pcap library routines. I have a
FreeBSD 5.1. The problem I faced was I successfully captured packets and parsed to
ethernet header and ip header.
i present a section of code how i did it.
--
char *ptr;
ptr=p
27 matches
Mail list logo