Skip to content

How to prevent kernel from passing packets to network layer?

Frames received by the network card will be handled by the driver and then passed to the upper layer of the protocol stack by the Linux kernel. Is there an easy way to prevent the kernel from passing packets to network layer? So that I can receive the frames from datalink layer and handle all the packets by m…

How to toggle case for text in a file [closed]

It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago. I want to know the …

Linux shell script to find and rename files to remove suffix?

I have some files named like this: file1.c.keep.apple file2.c.keep.apple I am trying to write a shell script so that I pass in the suffix as an argument (in this case, apple) and it will rename all of the files removing the .keep.apple. Example execution: script.sh apple results in the files above being renam…

ant: warning: unmappable character for encoding UTF8

I have seen numerous of questions like mine but they don’t answer my question because I’m using ant and I’m not using eclipse. I run this code: ant clean dist and it tells me numerous times that warning: unmappable character for encoding UTF8. I see on the Java command that there is a -encod…