A little oddity about pcap filter sequences

A discusson on efnets #bsd-dk today revealed an oddity about the filter sequence that tcpdump uses when libpcap has been compiled with vlan support, and you are looking to filter vlans in or out of your output. It turns out that vlan statements should seemingly always be specified at the beginning of the statement, in the following fashion:

tcpdump -i trunk1 vlan 42 and not port 80

If the statement is reversed, ie. not port 80 and vlan 42, you can’t reliably expect an output on all systems.

Another interesting thing about this, is that while plenty of site demonstrate vlan support, the filter sequence is hardly ever brought up.

Thoughts on FreeBSD 10.1 x64, VirtualBox and Hyper-V

Today I had to do a bit of testing with FreeBSD and, since I wasn’t using my workstation for anything in particular, I threw FreeBSD 10.1 ×64 in VirtualBox. What’s interesting about this is that nowadays it only takes about 10 minutes to be up and running with XDM and xfce installed through pkg. Quite a pleasent surprise

One interesting issue I had was that because I had at one point installed and then removed Hyper-V, it appears that it isn’t completely removed and it is necessary to manually disable the VT-x locking that Hyper-V does at boot-time by running the following command:

bcdedit /set hypervisorlaunchtype off

Sushi, tonkatsu, and rice


A bit of a special treat with sushi, tonkatsu and rice.

Cinnamon cake with brown or white frosting


Cinnamon Cake

Here you have the recipe for how to make cinnamon cake, with white or brown sugar (24p), in three steps. First, we start with the cake


  • 250 gram butter
  • 800 gram sugar
  • 800 gram wheat flour
  • 8 teaspoons cinnamon
  • 4 teaspoons baking soda
  • 1 liter buttermilk

Melt and then cool the butter, then stir together with the sugar
Wheat-flour, cinnamon and baking soda are mixed and sifted into the sugar and butter while the buttermilk is poured in, in small amounts
Butter (or cover with baking paper) up a roasting pan, and spread the cake-mix evenly
Preheat oven and bake at 200°c in a conventional oven(or 180°c in a hot-air oven) for approximately 30 minutes
Now comes the most difficult part, choosing between brown or white chocolate frosting.

Brown chocolate frosting

  • 100 gram butter
  • 500 gram powdered sugar
  • 4 teaspoon vanilla
  • 2 spoon cocoa
  • (Optionally) 8 spoon hot coffee

Melt the butter and mix in the powered sugar
Mix in the vanilla and cocoa while stirring liberally
Spread evenly on the cake

White chocolate frosting

  • 60 gram butter
  • 450 gram sugar
  • 3/4 decilitre milk
  • 100 gram white chocolate
  • (Optionally) a couple of drops of lemon juice

Chop the chocolate semi-finely
Bring milk, sugar and butter to a simmer, then take the saucepan off the heat
Add the chopped white chocolate, and let it sit and melt for 4-5 minutes
Mix thoroughly.
It should be mailable once cooled until lukewarm were it can be spread evenly on the cake