Re: freebsd-hackers Digest, Vol 42, Issue 6
On Fri, Jan 09, 2004 at 03:57:07PM +, YACINE GHANJAOUI wrote: > when trying to intercept UDP packet after changing the protocol number > from 17 to a user one (99) in the ip_input.c file. when trying to > regenrate the packet after inserting some bit errors an error message > appears in the reciever telling that The udp checksum is incorrect even if > i just change the ip Header. > What do you think the problem is? You didn't read how UDP checksums were calculated, did you? Here is one free clue: Look at the definition of in_pseudo() and where it is used. Use the source. look! BMS ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd-hackers Digest, Vol 42, Issue 6
On Freitag, 9. Januar 2004 14:04, Josef El-Rayes wrote: > Robert Klein <[EMAIL PROTECTED]> wrote: > have you noticed that i am _not_ using the '-'? > tar xvfj file.tar.bz2 <- > > if you leave the '-' away then tar does not care > about the order of the parameters. > > when you are using the dash before the arguments > than the 'f' has to be just before the filename. > tar -xvjf file.tar.bz2 <- Oops, sorry. I didn't notice the dash left out. I stand corrected. Best regards, Robert ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd-hackers Digest, Vol 42, Issue 6
Hi, when trying to intercept UDP packet after changing the protocol number from 17 to a user one (99) in the ip_input.c file. when trying to regenrate the packet after inserting some bit errors an error message appears in the reciever telling that The udp checksum is incorrect even if i just change the ip Header. What do you think the problem is? Thanks in Advance, ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd-hackers Digest, Vol 42, Issue 6
YACINE GHANJAOUI writes: > Anyone help me how to untar a file with this extention file.tar.bz2 ? > Thanks, This is really questions@ material, but... $ tar -y M -- Mark Murray iumop ap!sdn w,I idlaH ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd-hackers Digest, Vol 42, Issue 6
On Fri, 9 Jan 2004, Markus Brueffer wrote: MB>On Friday 09 January 2004 11:27, Robert Klein wrote: MB>> On Freitag, 9. Januar 2004 10:33, Josef El-Rayes wrote: MB>> > Lukas Ertl <[EMAIL PROTECTED]> wrote: MB>> > > On Fri, 9 Jan 2004, Josef El-Rayes wrote: MB>> > > > tar xvfj file.tar.bz2 MB>> > > MB>> > > tar xvjf MB>> > MB>> > i do not think that the order of the parameters MB>> > have any influence on the result. MB>> MB>> No, but the filename has to be right after the f. The following MB>> commands work, and both have the same result: MB>> MB>> tar -jxvf file.tar.bz2 MB>> tar -jxf file.tar.bz2 -v MB>> MB>> but the following does not work as you expect: MB>> MB>> tar -jxfv file.tar.bz2 MB>> MB>> In this command tar(1) tries to extract the file "v". MB>> MB>> Example error message: MB>> $ tar -jtfv xfce-4.0.1-src.tar.bz2 MB>> tar (child): v: Cannot open: No such file or directory MB>> tar (child): Error is not recoverable: exiting now MB>> tar: Child returned status 2 MB>> tar: xfce-4.0.1-src.tar.bz2: Not found in archive MB>> tar: Error exit delayed from previous errors MB>> $ MB> MB>Remove the "-" from the front of the options-list and it will work in your MB>last example. So Josefs statement was correct. MB> MB>What I'm asking me, is why the "-" makes a difference, though I haven't looked MB>at the sources, yet. The manpage states, that the "-" is only optional, so MB>"tar -jxfv" and "tar jxvf" should be equivalent, but obviously they are not. Old tar (v7) and Posix (well, SUSv2) have no dash before the key (the first argument to tar). They take option values from the next arguments in the order the options appear in the key string: tar xfbv file.tar 2 x - no arg f - take next arg (file.tar) b - take next arg (2) v - no arg. Using a dash is a gnu-ism and should be avoided in scripts. harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private [EMAIL PROTECTED], [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd-hackers Digest, Vol 42, Issue 6
On Friday 09 January 2004 11:27, Robert Klein wrote: > On Freitag, 9. Januar 2004 10:33, Josef El-Rayes wrote: > > Lukas Ertl <[EMAIL PROTECTED]> wrote: > > > On Fri, 9 Jan 2004, Josef El-Rayes wrote: > > > > tar xvfj file.tar.bz2 > > > > > > tar xvjf > > > > i do not think that the order of the parameters > > have any influence on the result. > > No, but the filename has to be right after the f. The following > commands work, and both have the same result: > > tar -jxvf file.tar.bz2 > tar -jxf file.tar.bz2 -v > > but the following does not work as you expect: > > tar -jxfv file.tar.bz2 > > In this command tar(1) tries to extract the file "v". > > Example error message: > $ tar -jtfv xfce-4.0.1-src.tar.bz2 > tar (child): v: Cannot open: No such file or directory > tar (child): Error is not recoverable: exiting now > tar: Child returned status 2 > tar: xfce-4.0.1-src.tar.bz2: Not found in archive > tar: Error exit delayed from previous errors > $ Remove the "-" from the front of the options-list and it will work in your last example. So Josefs statement was correct. What I'm asking me, is why the "-" makes a difference, though I haven't looked at the sources, yet. The manpage states, that the "-" is only optional, so "tar -jxfv" and "tar jxvf" should be equivalent, but obviously they are not. Markus ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd-hackers Digest, Vol 42, Issue 6
Robert Klein <[EMAIL PROTECTED]> wrote: > > > On Fri, 9 Jan 2004, Josef El-Rayes wrote: > > i do not think that the order of the parameters > > have any influence on the result. > > No, but the filename has to be right after the f. The following > commands work, and both have the same result: > In this command tar(1) tries to extract the file "v". have you noticed that i am _not_ using the '-'? tar xvfj file.tar.bz2 <- if you leave the '-' away then tar does not care about the order of the parameters. when you are using the dash before the arguments than the 'f' has to be just before the filename. tar -xvjf file.tar.bz2 <- why this is the case i have not found out, perhaps it is a features, or just a bug :) -josef pgp0.pgp Description: PGP signature
Re: freebsd-hackers Digest, Vol 42, Issue 6
On Freitag, 9. Januar 2004 10:33, Josef El-Rayes wrote: > Lukas Ertl <[EMAIL PROTECTED]> wrote: > > On Fri, 9 Jan 2004, Josef El-Rayes wrote: > > > tar xvfj file.tar.bz2 > > tar xvjf > i do not think that the order of the parameters > have any influence on the result. No, but the filename has to be right after the f. The following commands work, and both have the same result: tar -jxvf file.tar.bz2 tar -jxf file.tar.bz2 -v but the following does not work as you expect: tar -jxfv file.tar.bz2 In this command tar(1) tries to extract the file "v". Example error message: $ tar -jtfv xfce-4.0.1-src.tar.bz2 tar (child): v: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: xfce-4.0.1-src.tar.bz2: Not found in archive tar: Error exit delayed from previous errors $ Regards, Robert ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd-hackers Digest, Vol 42, Issue 6
Lukas Ertl <[EMAIL PROTECTED]> wrote: > On Fri, 9 Jan 2004, Josef El-Rayes wrote: > > tar xvfj file.tar.bz2 > tar xvjf i do not think that the order of the parameters have any influence on the result. -josef pgp0.pgp Description: PGP signature
Re: freebsd-hackers Digest, Vol 42, Issue 6
On Fri, 9 Jan 2004, Josef El-Rayes wrote: > YACINE GHANJAOUI <[EMAIL PROTECTED]> wrote: > > Anyone help me how to untar a file with this extention file.tar.bz2 ? > > tar xvfj file.tar.bz2 tar xvjf regards, le -- Lukas Ertl eMail: [EMAIL PROTECTED] UNIX Systemadministrator Tel.: (+43 1) 4277-14073 Vienna University Computer Center Fax.: (+43 1) 4277-9140 University of Vienna http://mailbox.univie.ac.at/~le/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd-hackers Digest, Vol 42, Issue 6
YACINE GHANJAOUI <[EMAIL PROTECTED]> wrote: > Anyone help me how to untar a file with this extention file.tar.bz2 ? tar xvfj file.tar.bz2 see man tar for details. greets, josef pgp0.pgp Description: PGP signature
Re: freebsd-hackers Digest, Vol 42, Issue 6
Anyone help me how to untar a file with this extention file.tar.bz2 ? Thanks, ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"