def METHOD_NAME(args):
	ext = None
	# XXX-TODO Try to put them in an order which could make sense
	# in real life packets and according to the RFCs.
	if args.hbh:
		hbh = sp.IPv6ExtHdrHopByHop(options = \
		    sp.PadN(optdata="\x00\x00\x00\x00\x00\x00"))
		ext = addExt(ext, hbh)
	if args.rh:
		rh = sp.IPv6ExtHdrRouting(type = 0)
		ext = addExt(ext, rh)
	if args.frag6:
		frag6 = sp.IPv6ExtHdrFragment(offset=0, m=0, id=0x1234)
		ext = addExt(ext, frag6)
	if args.esp:
		# XXX TODO
		esp = None
		ext = addExt(ext, esp)
	if args.ah:
		# XXX TODO
		ah = None
		ext = addExt(ext, ah)
	if args.dest:
		dest = sp.IPv6ExtHdrDestOpt(options = \
		    sp.PadN(optdata="\x00\x00\x00\x00\x00\x00"))
		ext = addExt(ext, dest)
	if args.mobi:
		# XXX TODO
		mobi = None
		ext = addExt(ext, mobi)
	if args.hip:
		# XXX TODO
		hip = None
		ext = addExt(ext, hip)
	if args.shim6:
		# XXX TODO
		shim6 = None
		ext = addExt(ext, shim6)
	if args.proto253:
		# XXX TODO
		tft = None
		ext = addExt(ext, tft)
	if args.proto254:
		# XXX TODO
		tff = None
		ext = addExt(ext, tff)
	if args.hbhbad:
		hbhbad = sp.IPv6ExtHdrHopByHop(options = \
		    sp.PadN(optdata="\x00\x00\x00\x00\x00\x00"))
		ext = addExt(ext, hbhbad)
	return ext